
Posts
2,148
Respect
352Add +1
Forum Rank
King of the Zombies
Primary Group
Donator ♥
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
if(self hasperk("specialty_detectexplosive") && (sMeansOfDeath == "MOD_PROJECTILE_SPLASH" || sMeansOfDeath == "MOD_FALLING" || sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE"))
{
iDamage = 0;
}
if( (self hasperk("specialty_detectexplosive")) && (sMeansOfDeath == "MOD_GRENADE_SPLASH"
|| sMeansOfDeath == "MOD_GRENADE"
|| sMeansOfDeath == "MOD_EXPLOSIVE"
|| sMeansOfDeath == "MOD_PROJECTILE"
|| sMeansOfDeath == "MOD_PROJECTILE_SPLASH"
|| sMeansOfDeath == "MOD_BURNED" || sMeansOfDeath == "MOD_FALLING"))
{
self RevivePlayer();
if(self hasperk("specialty_armorvest"))
self.maxhealth = 320;
else
self.maxhealth = 160;
return;
}
Callback_PlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime )
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
add Code SnippetPlaintextif( (self hasperk("specialty_detectexplosive")) && (sMeansOfDeath == "MOD_GRENADE_SPLASH"
|| sMeansOfDeath == "MOD_GRENADE"
|| sMeansOfDeath == "MOD_EXPLOSIVE"
|| sMeansOfDeath == "MOD_PROJECTILE"
|| sMeansOfDeath == "MOD_PROJECTILE_SPLASH"
|| sMeansOfDeath == "MOD_BURNED" || sMeansOfDeath == "MOD_FALLING"))
{
self RevivePlayer();
if(self hasperk("specialty_armorvest"))
self.maxhealth = 320;
else
self.maxhealth = 160;
return;
}
in _callbackglobal.gsc
in the function Code SnippetPlaintextCallback_PlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime )