Example #1
0
 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;
     }
 }
Example #2
0
 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;
     }
 }