public override void Impact(WalkingEntity hit) { Direction = Vector2.Zero; thrower = null; if (hit != null && hit.Alive) { hit.Health -= 300; hit.Bleeding = true; if (hit.Health <= 0 && hit.GetType() == typeof(Human)) { Achievements.Achieve("bulletkill"); if (firedManually) { Achievements.Achieve("manualbulletkill"); } if (hit.Grabbed) { Achievements.Achieve("killwithbulletswhileholding"); } } } DeleteMe = true; }
public virtual void Impact(WalkingEntity hit) { Direction = Vector2.Zero; thrower = null; if (hit != null && hit.Alive) { hit.Health -= 1000; if (hit.GetType() == typeof(Human)) { if (!hit.Alive) { World.score += score; if (meat) { Achievements.Achieve("killwithmeatcube"); } else { Achievements.Achieve("cratekill"); } } } } }