fix: Accessed None 'Pawn' (ServerExtMut:NetDamage)
ScriptWarning: Accessed None 'Pawn' 011ServerExtMut KF-TrapLandAlter.TheWorld:PersistentLevel.ServerExtMut_0 011Function ServerExtMut.ServerExtMut:NetDamage:0344
This commit is contained in:
parent
f729eebe51
commit
de4b7ff714
@ -778,7 +778,7 @@ function NetDamage(int OriginalDamage, out int Damage, Pawn Injured, Controller
|
|||||||
HackSetHistory(KFPawn(Injured),Injured,Ext_T_MonsterPRI(InstigatedBy.PlayerReplicationInfo).OwnerController,Damage,HitLocation);
|
HackSetHistory(KFPawn(Injured),Injured,Ext_T_MonsterPRI(InstigatedBy.PlayerReplicationInfo).OwnerController,Damage,HitLocation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (KFPawn(InstigatedBy.Pawn).GetTeamNum() != KFPawn(Injured).GetTeamNum())
|
else if (InstigatedBy.Pawn != None && KFPawn(InstigatedBy.Pawn).GetTeamNum() != KFPawn(Injured).GetTeamNum())
|
||||||
{
|
{
|
||||||
Momentum = vect(0,0,0);
|
Momentum = vect(0,0,0);
|
||||||
Damage = 0;
|
Damage = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user