siren doesn't spawn emitter on death

This commit is contained in:
Shtoyan 2022-01-20 18:58:10 +04:00
parent 132f4f2d2d
commit 0cb0b2842b

View File

@ -445,6 +445,32 @@ static simulated function PreCacheMaterials(LevelInfo myLevel)
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_T.siren_hair');
myLevel.AddPrecacheMaterial(Material'KF_Specimens_Trip_T.siren_hair_fb');
}
// DEAD sirens can NOT spawn scream emitter
simulated function PlayDying(class<DamageType> DamageType, vector HitLoc)
{
super.PlayDying(DamageType, HitLoc);
// yea, stop all animations on dead zed
StopAnimating();
}
state ZombieDying
{
ignores AnimEnd, Trigger, Bump, HitWall, HeadVolumeChange, PhysicsVolumeChange, Falling, BreathTimer, Died, RangedAttack;
simulated function BeginState()
{
// yea, stop all animations on dead zed
StopAnimating();
super.BeginState();
}
}
defaultproperties
{
screamTimings(0)=0.420000