Quake3mods.net     [all categories]
  Coding
  Weapons that heal you?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Weapons that heal you?
neotrick
Junior Member

Posts: 3
Registered: Mar 2000

posted 03-08-2000 06:08 PM     Click Here to See the Profile for neotrick     Edit/Delete Message Reply w/Quote
Can anyone here make a quick guide to how one
could get a weapon that heals only your teammates but not yourself or the enemy, when you they are hit by one of its shots. thanks.
If anyone knows how to do this you are the man Thanks

------------------
NEOtrick

IP: Logged

Z
Member

Posts: 169
Registered: Feb 2000

posted 03-08-2000 10:08 PM     Click Here to See the Profile for Z   Click Here to Email Z     Edit/Delete Message Reply w/Quote
neg damage is the key for only team mates it would be something like this:
if ( targ != attacker && OnSameTeam
(targ, attacker) ) {
}

that statement is true when the attacor and inflictor are on the same team... good luck

------------------
~~TRITIUM MODS~~
join tritium mods today!
www.quake3mods.net/tritium

IP: Logged

All times are CT(US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Quake3mods.net

Powered by: Ultimate Bulletin Board, Version 5.43c
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.