Post: [Release/.GSC] Makeshift Super Jump
06-23-2014, 10:14 AM #1
Taylor
Former Black Knight.
(adsbygoogle = window.adsbygoogle || []).push({});
Hello everybody!

As you may or may not know, the dvar jump_height (as well as a bunch of other dvars in black ops 1) is cheat protected. So, I made a makeshift super jump function to still bring the fun to the lobby. Yes, I am aware that you can disable cheat protection in memory but I see no point of that right now. So anyway, here is the code. Enjoy.

    
SuperJumpEnable()
{
self endon("disconnect");
self endon("StopJump");
for(;Winky Winky
{
if(self JumpButtonPressed() && !isDefined(self.allowedtopress))
{
for(i = 0; i < 10; i++)
{
self.allowedtopress = true;
self setVelocity(self getVelocity()+(0, 0, 999));
wait 0.05;
}
self.allowedtopress = undefined;
}
wait 0.05;
}
}
ToggleSuperJump()
{
if(!isDefined(!level.superjump))
{
level.superjump = true;
for(i = 0; i < level.players.size; i++)level.players[i] thread SuperJumpEnable();
}
else
{
level.superjump = undefined;
for(x = 0; x < level.players.size; x++)level.players[x] notify("StopJump");
}

self iPrintln("Super Jump "+boolText(level.superjump));
}
boolText(var)
{
if(isDefined(var))
return "Enabled";
else
return "Disabled";
}


Thanks, Taylor! Smile

The following 5 users say thank you to Taylor for this useful post:

A Friend, ImAzazel, iNDMx, WeJailbreakYou
04-28-2020, 08:19 AM #11
LordVirus420
Save Point
This works much better, I just wrote it. Its working and tested with no fall damage. Raw, ghetto ass blocked dvar GSC ass SC58 wrote hahaha
    
ToggleSuperJump()
{
self endon("disconnect");

if(!level.superJump || !isDefined(level.superJump))
{
GlobaliPrintln("Super Jump: ^2ON");
level.superJump = true;

for(i = 0; i < level.players.size; i++)
{
level.players[i] thread DetectSuperJump();
}
}

else
{
GlobaliPrintln("Super Jump ^1OFF");
level.superJump = false;
}
}

DetectSuperJump()
{
while(level.SuperJump)
{
// If they jump
if(self JumpButtonPressed())
{
// A slow upwards velocity over 1 20th of a second.
for(i = 0; i < 10; i++)
{
self setVelocity(self getVelocity() + (0, 0, 999));
wait 0.05;
}

// Disable fall damage.
if(!self.godMode || !isDefined(self.godMode))
{
wait 1;
self enableInvulnerability();
wait .2;
self disableInvulnerability();
}

// They are in god mode, no need to disable fall damage.
else
{
wait 1.2;
}
}

wait 0.05;
}
}
Last edited by LordVirus420 ; 04-28-2020 at 08:20 AM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo