- Jan 30, 2020
- 158
- 3,603
- 0
- Tutorial Link
- N/A
- How long you been coding/hacking?
- since early 2019
- Coding Language
- C++
Requirements:
- hooking CreateMove
- know what your UserCMD is for.
What is autostrafe?
Strafing in CSGO means pressing your left/right key when you are moving your mouse in-air. This gives you extra movement speed.
We are going to automate "pressing" your keys by manipulating the UserCMD accordingly.
Inside your CreateMove hook:
TODO:
- combine this with a nice Bhop hack
- be phoon
- hooking CreateMove
- know what your UserCMD is for.
What is autostrafe?
Strafing in CSGO means pressing your left/right key when you are moving your mouse in-air. This gives you extra movement speed.
We are going to automate "pressing" your keys by manipulating the UserCMD accordingly.
Inside your CreateMove hook:
C++:
bool __stdcall hooks::hkCreateMove(float flInputSampleTime, UserCMD* cmd)
{
if (IsOnGround) // check if FL_ONGROUND is set..
return;
if ((GetAsyncKeyState(VK_SPACE) & 0x8000))
{
if (cmd->mousedeltaX > 0)
cmd->sidemove = 450.0f; // strafe right
if (cmd->mousedeltaX < 0)
cmd->sidemove = -450.0f; // strafe left
}
return oCreateMove(flInputSampleTime, cmd);
}
- combine this with a nice Bhop hack
- be phoon