Example #1
0
    protected override void ZombieCollision(Zombie_Base other)
    {
        other.GetHurt(2);

        if (Base.Physics.hspeed > 0)
          other.Physics.hspeed += 0.75f;
        else
          other.Physics.hspeed -= 0.75f;

        Base.DestroySelf();
    }
Example #2
0
    protected override void ZombieCollision(Zombie_Base other)
    {
        if (other.Sprite.IsPlaying("zombie_die"))
          return;

        if (GroundAttackSuccess(other)) {
          other.GetHurt();
          if (Base.Sprite.FacingRight)
        other.Physics.hspeed = other.Physics.hspeedMax;
          else
        other.Physics.hspeed = -other.Physics.hspeedMax;

          BounceOffEnemy(6, Kat.Is("Kicking"));
        }

        else if (Kat.Is("GroundPounding")) {
          other.GetHurt();

          if (other.Sprite.FacingLeft)
        other.Physics.hspeed = other.Physics.hspeedMax;
          else
        other.Physics.hspeed = -other.Physics.hspeedMax;

          BounceOffEnemy(8, false);
          Kat.Physics.hspeed = 0;
        }

        else if (Kat.Is("Uppercutting")) {
          other.GetHurt();

          if (Kat.x > other.x)
        other.Physics.hspeed = -other.Physics.hspeedMax;
          else
        other.Physics.hspeed = other.Physics.hspeedMax;

          BounceOffEnemy(12, false);
        }

        else if (!other.hurt && !Kat.Is("Invincible") && !Kat.Is("Hurt"))
          Kat.State("Hurt", new object[] { other.x > Kat.x ? -5 : 5 });
    }