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
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