Results 1 to 5 of 5

Thread: SD Big jump

  1. #1
    ... connecting ysniper's Avatar
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    26
    Thanked 1 Time in 1 Post

    SD Big jump

    How to make "bigjump On" in all rounds of SD ?
    because at start of each round I have to type /bigjump 1

    Code:
    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
    Code:
            thread maps\mp\gametypes\_spectating::init();
    	thread maps\mp\gametypes\_grenadeindicators::init();
    	thread maps\bigjump::init();				    // reading bigjump script

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    remove
    Code:
    	setcvar("bigjump", "0");
    at the start of
    Code:
    bigjump() 
    {
    	setcvar("bigjump", "0");
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    ... connecting ysniper's Avatar
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    26
    Thanked 1 Time in 1 Post
    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.

  4. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Also remove all
    Code:
    setcvar("bigjump", "");
    from your for(; loop (3x the same code)
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  5. The Following User Says Thank You to IzNoGoD For This Useful Post:

    ysniper (23rd March 2016)

  6. #5
    ... connecting ysniper's Avatar
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    26
    Thanked 1 Time in 1 Post
    It's all good now.
    Thx IzNoGoD.
    Click image for larger version. 

Name:	shot0009.jpg 
Views:	44 
Size:	171.9 KB 
ID:	1038
    Last edited by ysniper; 9th December 2018 at 00:59.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •