Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. function OnTakeDamage_Alive_Any(hVictim, hInflictor, hAttacker, hWeapon, fDamage, iDamageType, strAmmoName)
  2. {
  3.     if (hAttacker && hAttacker.GetClassname() == "asw_marine")
  4.         if (hVictim && ( hVictim.IsAlien() || hVictim.GetClassname() == "asw_marine" ) )
  5.             if (hInflictor)
  6.             {
  7.                 if (hInflictor.GetClassname() == "asw_flamer_projectile")
  8.                 {
  9.                     hAttacker.TakeDamage(fDamage, 64, null);
  10.                     return 0;
  11.                 }
  12.             }
  13.     return fDamage;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement