public override void Kill() { if (!Alive) { return; } Alive = false; //base.Kill(); CoalescingEffect.Stop(true); PepperField.Stop(); NegativeParticles.Stop(); Astronaut.PlayKillSound(2); MyRigidbody.bodyType = RigidbodyType2D.Dynamic; Astronaut.TheAstronaut.dropResistance(.4f / (1f + HitsDone), this.transform.position, Astronaut.Element.Fire); exploded = false; if (Astronaut.AggressionLevelF >= 1f) { if (this.MyState == State.Exploding) { premature = true; explode(); } } dontstopparticles = true; deathKnockback(); }
public override void Kill() { this.Alive = false; MyCollider.enabled = false; Astronaut.PlayKillSound(2); Astronaut.TheAstronaut.dropResistance(.4f / (1f + HitsDone), this.transform.position, Astronaut.Element.Grass); GameObject.Destroy(this.gameObject); //Emit }
public override void Kill() { if (!Alive) { return; } Alive = false; Astronaut.PlayKillSound(1); Health = 0f; }
public override void Kill() { if (!Alive) { return; } Alive = false; Astronaut.PlayKillSound(3); deathKnockback(); Astronaut.TheAstronaut.dropResistance(.4f / (1f + HitsDone), this.transform.position, Astronaut.Element.Grass); }
public override void Kill() { if (!Alive) { return; } Alive = false; //base.Kill(); Astronaut.PlayKillSound(2); Astronaut.TheAstronaut.dropResistance(0.4f / (1f + HitsDone), this.transform.position, Astronaut.Element.Void); deathKnockback(); MyVoidField.Deactivate(); MyVoidField.transform.SetParent(null); GameObject.Destroy(MyVoidField.gameObject, 4f); }
public override void Kill() { if (!Alive) { return; } Alive = false; Astronaut.PlayKillSound(3); NegativeParticles.Stop(); GameObject.Destroy(NegativeParticles.gameObject, 4f); deathKnockback(); Astronaut.TheAstronaut.dropResistance(.6f / (1f + HitsDone), this.transform.position, Astronaut.Element.Void); launchProjectiles(); MyVoidField.Deactivate(); MyVoidField.transform.SetParent(null); GameObject.Destroy(MyVoidField.gameObject, 4f); }
public override void Kill() { if (!Alive) { return; } Alive = false; //ReleaseSpores(false); //ReleaseSpores(false); Astronaut.PlayKillSound(1); deathKnockback(); Astronaut.TheAstronaut.dropResistance(.4f, this.transform.position, Astronaut.Element.Void); if (Astronaut.AggressionLevel > 1) { VoidField vf = GameObject.Instantiate <VoidField>(VoidExplosion, this.transform.position, VoidExplosion.transform.rotation); vf.Duration = (2f + (4f * Astronaut.AggressionLevelF)); } }