Removes Friendly Fire from pets
This commit is contained in:
parent
aec79de0d4
commit
3d88b2edf2
@ -490,6 +490,12 @@ function NetDamage(int OriginalDamage, out int Damage, Pawn Injured, Controller
|
||||
ClearTimer('CheckDamageDone');
|
||||
CheckDamageDone();
|
||||
}
|
||||
if ( KFPawn_Monster(Injured) != None && InstigatedBy != none && InstigatedBy.GetTeamNum() == Injured.GetTeamNum() )
|
||||
{
|
||||
Momentum = vect(0,0,0);
|
||||
Damage = 0;
|
||||
return;
|
||||
}
|
||||
if( Damage>0 && InstigatedBy!=None )
|
||||
{
|
||||
if( KFPawn_Monster(Injured)!=None )
|
||||
|
Loading…
Reference in New Issue
Block a user