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:


Messages In This Thread
h4x jump training script - by Mash - 11 Jun 15, 08:39AM
RE: h4x jump training script - by Vermi - 11 Jun 15, 10:08AM
RE: h4x jump training script - by |HP| - 11 Jun 15, 04:00PM
RE: h4x jump training script - by Undead - 11 Jun 15, 09:05PM