Example #1
0
 void OnTakeDamage(LSProjectile projectile)
 {
     if (IsShielding)
     {
         TakeRawDamage(projectile.CheckExclusiveDamage(Agent.Tag));
         projectile.Damage = 0;
     }
     timeUntilRegeneration = RegenerationDelay;
 }
Example #2
0
 public void TakeProjectile(LSProjectile projectile)
 {
     if (Agent.IsActive && HealthAmount >= 0) {
         if (OnTakeProjectile .IsNotNull ())
         {
             OnTakeProjectile (projectile);
         }
         TakeRawDamage (projectile.CheckExclusiveDamage (Agent.Tag));
     }
 }
Example #3
0
 public void TakeProjectile(LSProjectile projectile)
 {
     if (Agent.IsActive && HealthAmount >= 0)
     {
         if (OnTakeProjectile.IsNotNull())
         {
             OnTakeProjectile(projectile);
         }
         TakeDamage(projectile.CheckExclusiveDamage(Agent.Tag));
     }
 }
Example #4
0
 void OnTakeDamage(LSProjectile projectile)
 {
     if (IsShielding) {
         TakeRawDamage ( projectile.CheckExclusiveDamage (Agent.Tag));
         projectile.Damage = 0;
     }
     timeUntilRegeneration = RegenerationDelay;
 }