iTahhr
Well-Known Member
- Messages
- 248
- Reaction score
- 118
- Points
- 243
// Credits Go To Extinct \\
// Description \\
Dive on the ground and make an explosion
// Code \\
// Description \\
Dive on the ground and make an explosion
// Code \\
Code:
PHD_Perk()
{
if(self.PHD==false)
{
self.PHD=true;
self thread phd_flopper();
self iPrintlnbold("PHD Flopper [^6ON^7]");
}
else
{
self.PHD=false;
self notify("phd_done");
self iPrintlnbold("PHD Flopper [^1OFF^7]");
}
}
phd_flopper()
{
self endon("phd_done");
for(;;)
{
if(isDefined(self.divetoprone) && self.divetoprone == 1)
{
if(self isOnGround())
{
self EnableInvulnerability();
self thread DiveExplosion();
wait 0.9;
}
}
wait .1;
}
}
DiveExplosion()
{
self endon("phd_done");
self playsound( "exp_barrel" );
playfx(loadfx("maps/mp_maps/fx_mp_exp_rc_bomb"), self.origin);
Earthquake( 0.3, 1, self.origin, 90 );
RadiusDamage(self.origin, 350, 700, 350, self, "MOD_PROJECTILE_SPLASH");
wait .2;
if(!self.GM)
self DisableInvulnerability();
}
Last edited: