Example #1
0
 /// <summary>
 /// Called when the map  entity is hit
 /// </summary>
 /// <param name="hit">The weapon hitbox</param>
 public virtual void OnHit(WeaponHitStat hit)
 {
 }
Example #2
0
 /// <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);
 }
Example #3
0
 public void OnHit(WeaponHitStat hit)
 {
 }
Example #4
0
 /// <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);
 }