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