Accessed None 'Killer' fix
This commit is contained in:
parent
3247720a46
commit
692b66b9a6
@ -536,16 +536,22 @@ simulated function NonRelevantSpeedupTick(float deltaTime){
|
||||
SetGroundSpeed(GetOriginalGroundSpeed());
|
||||
}
|
||||
}
|
||||
|
||||
// Kill zed if it has been bleeding long enough
|
||||
simulated function BleedOutTick(float deltaTick){
|
||||
if(Role < ROLE_Authority || !bDecapitated) return;
|
||||
if(BleedOutTime <= 0 || Level.TimeSeconds < BleedOutTime) return;
|
||||
if(LastDamagedBy != none)
|
||||
simulated function BleedOutTick(float deltaTick)
|
||||
{
|
||||
if (Role < ROLE_Authority || !bDecapitated)
|
||||
return;
|
||||
if (BleedOutTime <= 0 || Level.TimeSeconds < BleedOutTime)
|
||||
return;
|
||||
if (LastDamagedBy != none)
|
||||
Died(LastDamagedBy.Controller, class'DamTypeBleedOut', Location);
|
||||
// else we can say we killed ourselves, none -> self
|
||||
else
|
||||
Died(none, class'DamTypeBleedOut', Location);
|
||||
Died(self, class'DamTypeBleedOut', Location);
|
||||
BleedOutTime = 0;
|
||||
}
|
||||
|
||||
// FX-stuff TWI did in the tick, unchanged
|
||||
simulated function TWIFXTick(float deltaTime){
|
||||
if(Level.netMode == NM_DedicatedServer) return;
|
||||
|
Loading…
Reference in New Issue
Block a user