High jump code for singleplayer/spec

JR_Junior

New Member
Messages
3
Reaction score
0
Points
1
Hello.
I'm trying to create a script to super jump in single player mode. someone help me?

Code:
highjump()
{
    if(self.HighJumpOn == 0)
    {
        self.HighJumpOn = 1;
        iPrintln("High jump enabled");
    }
    else
    {
        self.HighJumpOn = 0;
        iPrintln("High jump disabled");
    }
}
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Hello.
I'm trying to create a script to super jump in single player mode. someone help me?

Code:
highjump()
{
    if(self.HighJumpOn == 0)
    {
        self.HighJumpOn = 1;
        iPrintln("High jump enabled");
    }
    else
    {
        self.HighJumpOn = 0;
        iPrintln("High jump disabled");
    }
}
You could try to set the Dvar:

C++:
highjump()
{
    if(self.HighJumpOn == 0)
    {
        self.HighJumpOn = 1;
        setDvar("jump_height", 500); // I think 1000 is max
        iPrintln("High jump enabled");
    }
    else
    {
        self.HighJumpOn = 0;
        setDvar("jump_height",39);
        iPrintln("High jump disabled");
    }
}
 

JR_Junior

New Member
Messages
3
Reaction score
0
Points
1
You could try to set the Dvar:

C++:
highjump()
{
    if(self.HighJumpOn == 0)
    {
        self.HighJumpOn = 1;
        setDvar("jump_height", 500); // I think 1000 is max
        iPrintln("High jump enabled");
    }
    else
    {
        self.HighJumpOn = 0;
        setDvar("jump_height",39);
        iPrintln("High jump disabled");
    }
}
Not worked :disappointed:
 
Top