PDA

View Full Version : SD Big jump



ysniper
23rd March 2016, 18:36
How to make "bigjump On" in all rounds of SD ?
because at start of each round I have to type /bigjump 1


init()
{
thread bigjump();
}

bigjump()
{
setcvar("bigjump", "0");

if(getCvar("bigjump")=="")
{
setCvar("bigjump", "0");
}

for(;;)
{
if(getcvar("bigjump")=="1")
{
setcvar("jump_height", 128);
setcvar("jump_ladderPushVel", 1024);
setcvar("jump_slowdownEnable", 0);
setcvar("jump_spreadAdd", 512);
setcvar("jump_stepSize", 64);
setcvar("bigjump", "");
IPrintLnBold( "^2B^7ig^2j^7ump ^2On" );
}
wait 0.05;

if(getcvar("bigjump")=="0")
{

setcvar("jump_height", 39);
setcvar("jump_ladderPushVel", 128);
setcvar("jump_slowdownEnable", 1);
setcvar("jump_spreadAdd", 64);
setcvar("jump_stepSize", 18);
setcvar("bigjump", "");
}
wait 0.05;

if(getcvar("bigjump")=="2")

{

setcvar("jump_height", 39);
setcvar("jump_ladderPushVel", 128);
setcvar("jump_slowdownEnable", 0);
setcvar("jump_spreadAdd", 64);
setcvar("jump_stepSize", 18);
setcvar("bigjump", "");
IPrintLnBold( "^2B^7ig^2j^7ump set to JUMPER mod" );
}
wait 0.05;
}
}
// Script MaDe by Stevo



thread maps\mp\gametypes\_spectating::init();
thread maps\mp\gametypes\_grenadeindicators::init();
thread maps\bigjump::init(); // reading bigjump script

IzNoGoD
23rd March 2016, 18:50
remove


setcvar("bigjump", "0");

at the start of



bigjump()
{
setcvar("bigjump", "0");

ysniper
23rd March 2016, 19:10
I removed it, but still back Off at the start of next round,
I have also tried to make var 1 in script but still same outcome.

IzNoGoD
23rd March 2016, 20:06
Also remove all


setcvar("bigjump", "");
from your for(;;) loop (3x the same code)

ysniper
24th March 2016, 17:01
It's all good now.
Thx IzNoGoD.
1038