Ok, this is really starting to annoy me. I can't figure out how to make team attack / friendly fire work properly. By properly I mean like it would in a deathmatch, so attacking players who are supposedly on your team ( Ct attacking a Ct ), will do just as much damage as attacking an enemy ( Ct attack a T ).
First thing I've done is turned friendly fire on.
I want each hit to do 10 damage.
PHP Code:
RegisterHam( Ham_TakeDamage, "player", "hamTakeDamage" );
public hamTakeDamage( Victim, Inflictor, Attacker, Float:Damage, Damagebits )
{
I'm not exactly sure how I'm supposed to work it or what to return in the hook. I've played around with SetHamParamFloat() and a couple of other things and returns, but I'm still ending up with the "friendly fire" effect damage.
Please help me out. Thanks!
__________________