/// <summary> /// Called when the map entity is hit /// </summary> /// <param name="hit">The weapon hitbox</param> public virtual void OnHit(WeaponHitStat hit) { }
/// <summary> /// Called when the entity is hit /// </summary> /// <param name="hit">The weapon hit that went through</param> public override void OnHit(WeaponHitStat hit) { this.CurrentHP -= hit.Damage; base.OnHit(hit); }
public void OnHit(WeaponHitStat hit) { }
/// <summary> /// Called when the entity is hit /// </summary> /// <param name="hit">The hit box</param> public override void OnHit(WeaponHitStat hit) { this.ApplyKnockback(hit.KnockBack, hit.Impact, hit.HitStunSeconds); base.OnHit(hit); }