LongJump Auto-Strafing Script

Posts 1–15 of 43 · Page 1 of 3
LongJump Auto-Strafing Script
This .AHK script is used primarily for KreedZ (kz) servers.

Information about this script;

All it does is press A+D and move the mouse for you while you hold the key. I was able to do up to 292 longjumps on 128-tick servers. This particular configuration is for mouse sensitivity of 8. It's AutoHotkey based, bound to mouse4 by default:
Parameters to fiddle with are as follows: sleepInterval - time between mouse movements. moveCount - amount of times mouse is moved for 1 strafe. relativeMove - how far the mouse is moved by one tick.
It's made for right-sided prestrafe, but you can change it to left-sided by swapping the strafe() calls around. With a little more work put in it, it can be made to look pretty legit.
Script created by Rustykoc

A video demonstrating:



Code:
#NoEnv
SendMode, Input
SetBatchLines -1
CoordMode, Mouse, Screen


mouseXY(x, y)
{
    DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}

strafe(left)
{
  moveCount := 35
  sleepInterval := 2
  relativeMove := 6

  if (left)
  {
    key := "a"
    move := -relativeMove
  } else
  {
    key := "d"
    move := relativeMove
  }
  send {%key% down}
  DllCall("Sleep", "UInt", 5)
  Loop, %moveCount%
  {
    mouseXY(move, 0)
    DllCall("Sleep", "UInt", sleepInterval)
  }
  send {%key% up}
}

$XButton1::
while getkeystate("XButton1","P")
{
strafe(false)
strafe(true)
}
return
Looks good on the vid. I've been tinkering with this for a while now and could not get it to work looking "legit"

I hope this will help me with my script
I was on the rigt track apparently.
whats the key to press? if i dont have mouse4 :/
?
Quote Originally Posted by nerdplow View Post
whats the key to press? if i dont have mouse4 :/
?
for every "XButton1" in the script , change it to whatever key u want
Got it to work on bhops but not lj's
can someone tell em how?
i cant even make 260 please help
Can u help me out with this? i cant do more than 2 strafes per second but on vid it does like 10 per sec
Quote Originally Posted by JebnutyKokot View Post
Can u help me out with this? i cant do more than 2 strafes per second but on vid it does like 10 per sec
All your actually doing is holding mouse4 and shaking your mouse. Turn your in game sens up, this config was made for a sens of 8 in game.
why i cant do lj with this script ? help me
Nice script, but the problem is I use a sensitivity of 2.69 and a low DPI, so an 8 sensitivity is unplayable. Is there a way to change the script to work for my sens?
Quote Originally Posted by Lord Helios View Post
Nice script, but the problem is I use a sensitivity of 2.69 and a low DPI, so an 8 sensitivity is unplayable. Is there a way to change the script to work for my sens?
Just change it back all the time or make a bind if there is LOL
Posts 1–15 of 43 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us