UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

how to fix phd?

broken avatar :(
Created 10 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
1,777 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Okay so i followed bamskaters tutorial on adding black ops perks, and every other perk works fine but i cant get phd to work, even if i have phd i still get the red indicator, and still get the red screen if i shoot myself with the ray gun and i get the dizzy effect after throwing a grenade at myself, how do i fix that and also get rid of the red indicator here is my zombie_mode code for phd
Code Snippet
Plaintext
if(self hasperk("specialty_detectexplosive") && (sMeansOfDeath == "MOD_PROJECTILE_SPLASH" || sMeansOfDeath == "MOD_FALLING" || sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE"))
{

iDamage = 0;
}

Marked as best answer by thezombiekilla6 10 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
Hey if you had tons of fun on playing my maps please DONATE :)

play ESTATE now, and claim your mansion back from the undead!
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
add

Code Snippet
Plaintext
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;
}

in _callbackglobal.gsc

in the function
Code Snippet
Plaintext
Callback_PlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime )
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
add

Code Snippet
Plaintext
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;
}

in _callbackglobal.gsc

in the function
Code Snippet
Plaintext
Callback_PlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime )

Nice, it works perfectly

 
Loading ...