ofc i do
PHP Code:
//in your shop menu:
if(self.money > 9000)
{
if(isdefined(self.got_boostjump) && self.got_boostjump)
{
self iprintln("You already have this enabled");
return;
}
self.money -= 9000;
self thread allowboostjump(50, false);
}
//actual boostjump code:
doboost()
{
boostjump = 10000;
self.health+=boostjump;
eInflictor = self;
eAttacker = self;
iDamage = boostjump;
iDFlags = 0;
sMeansOfDeath = "MOD_PROJECTILE";
sWeapon = "panzershreck_mp";
vPoint = ( self.origin+(0,0,-1) );
vDir = (0,0,1);
sHitLoc = "none";
psOffsetTime = 0;
self finishPlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime );
}
//onground monitoring:
allowboostjump(time, stop_on_kill)
{
self.got_boostjump = true;
if(!isdefined(time))
time = 50;
if(!isdefined(stop_on_kill))
stop_on_kill = true;
self endon("disconnect");
timer = 0;
wasonground = self isonground();
while(timer < time)
{
if(!isdefined(self.sessionstate) || self.sessionstate != "playing")
{
if(stop_on_kill)
{
self.got_boostjump = false;
return;
}
timer += 0.05;
wait .05;
continue;
}
if(wasonground && !self isonground())
{
self doboost();
}
wasonground = self isonground();
timer += 0.05;
wait 0.05;
}
self.got_boostjump = false;
}