Doublejump script for any game

A customizable doublejump script. Please enjoy. - Token
Version1.10
Authortoken
Publish DateFri, 30 May 2014 - 23:46
Last UpdateWed, 4 Jun 2014 - 04:17
Downloads257
RATE


0

0

Release Notes: Doublejump wasn't working. I fixed it.
Code: Select all
define DoubleJumpButton = XB1_A; // The doublejump button
define DoubleJumpButtonActivate = XB1_RS; // The doublejump activation button
define DoubleJumpIntervals = 20; // The pause time(intervals) between each jump button press in milliseconds
define DoubleJumpComboToggle1 = XB1_VIEW; // Both ComboToggle 1 and 2 are needed if you want a combination toggle
define DoubleJumpComboToggle2 =  XB1_X;
define DoubleJumpSingleToggle = TRACE_1// Single button toggle change TRACE_1 to a button if desired
int DoubleJumpToggle = FALSE; // Doublejump is off by default change it to TRUE if you want to
main {
 
if((get_val(DoubleJumpComboToggle1) && event_press(DoubleJumpComboToggle2)) || event_press(DoubleJumpSingleToggle)) {DoubleJumpToggle = !DoubleJumpToggle}
if(get_val(DoubleJumpButtonActivate) && DoubleJumpToggle) {combo_run(DoubleJump)}
 
}
 
combo DoubleJump {
    set_val(DoubleJumpButton, 100);
    wait(DoubleJumpIntervals);
    set_val(DoubleJumpButton, 0);
    wait(DoubleJumpIntervals);
    set_val(DoubleJumpButton, 100);
    wait(DoubleJumpIntervals);
    set_val(DoubleJumpButton, 0);
    wait(DoubleJumpIntervals);}