h4x jump training script
#1
CubeScript is pretty ugly but it was one of those days I felt sorry for people who can't h4x jump. So that's why I scripted a stupid CubeScript script which tells you what you're doing wrong.
alias h4xtrainer 0
alias doingjc 0
alias doingh4x 0
alias doingfb 0
alias doinglr 0
alias tryjc [
  if ($doingjc) [
    alias jcend (millis)
    alias jcdiff (- $jcend $jcstart)
    alias doingjc 0
    if (<= $jcdiff 1) [
      echo "You triggerd a fake jump."
      alias doingh4x 1
    ] [
      echo "There was a" $jcdiff "millisecond gap between your crouch and your jump."
      tryjc
    ];
  ] [
    if ($doingstrafe) [
      alias doingjc 1
      alias jcstart (millis)
    ]
  ]
]
alias trycrouch [
  if ($h4xtrainer) [
    tryjc
  ]
]
alias tryjump [
  if ($h4xtrainer) [
    if ($doingh4x) [
      alias h4xtime (millis)
      alias h4xdiff (- $h4xtime $jcend)
      if (< $h4xdiff 250) [
        echo (c 3) "You did a h4x jump!"
        alias doingh4x 1
      ] [
        echo "There was a" $h4xdiff "millisecond gap between your fake jump and your jump. (It should be <250ms)"
      ];
      alias doingh4x 0
    ]
    tryjc
  ]
]
alias tryfb [
  alias doingfb 1
  trystrafe
  onrelease [
    alias doingfb 0
    trystrafe
  ]  
]
alias trylr [
  alias doinglr 1
  trystrafe
  onrelease [
    alias doinglr 0
    trystrafe
  ]
]
alias trystrafe [
  if (&& $doingfb $doinglr) [
    alias doingstrafe 1
  ] [
    alias doingstrafe 0
    if (|| $doingh4x $doingjc) [
        echo "You stopped strafing"
        alias doingh4x 0
        alias doingjc 0
    ]
  ]
]
alias toggleh4xtrainer [
 if ($h4xtrainer) [
   alias h4xtrainer 0
 ] [
   alias h4xtrainer 1
 ]
]
bind LSHIFT [crouch;trycrouch]
bind SPACE [jump;tryjump]
bind "W" [forward;tryfb]
bind "S" [backward;tryfb]
bind "A" [left;trylr]
bind "D" [right;trylr]

Note that this script is not really good but it kinda works. The messages are probably not that helpfull either. Good luck learning the h4x jump.

You can activate and deactivate the h4x jump trainer with /toggleh4xtrainer
Thanks given by:
#2
"felt sorry for people who can't h4x jump" ~ this guy
Thanks given by:
#3
This is not for the prejump version that was named the h4x jump! But nice idea/script anyway.
This could somehow detect bind users? AH, it would spam the console i guess.
Thanks given by:
#4
Wb!
Thanks given by:
#5
nice script.

it seems like it confirms my suspicion that you cant hit the hax jump 100% of the time, or your script is malfunctioning, idk. occasionally, it doesn't pick up when im hitting the hax jump; other times im doing everything necessary to hit the jump and it doesn't work.
Thanks given by: