protected override void PlayDeathEffect() { if (DamageLastFrame > SplatRequiredDamagePerc * MaxHitPoints) { PlaySplatDeathEffect(); Remove(); } else { Scene.Add(new Effects.BloodSplatter { Translation = Translation + Vector3.UnitZ }); var gs = new Props.GroundSplatterDecal { Translation = Translation }; EntityFader f = new EntityFader(gs); f.FadeoutTime = 1; f.AutoFadeoutTime = 10; Scene.Add(gs); removeDeadZombieTimer = 40; } }
protected override void PlayDeathEffect() { if (DamageLastFrame > SplatRequiredDamagePerc*MaxHitPoints) { PlaySplatDeathEffect(); Remove(); } else { Scene.Add(new Effects.BloodSplatter { Translation = Translation + Vector3.UnitZ }); var gs = new Props.GroundSplatterDecal { Translation = Translation }; EntityFader f = new EntityFader(gs); f.FadeoutTime = 1; f.AutoFadeoutTime = 10; Scene.Add(gs); removeDeadZombieTimer = 40; } }