Auto Strafer

Posts 1–13 of 13 · Page 1 of 1
Auto Strafer
Any pAutoStrafer code for ayy memes???
Quote Originally Posted by Joplin View Post
learncpp.fom
kys
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
pAutoStrafer was not recognised, please try again
Quote Originally Posted by _ECX View Post
pAutoStrafer was not recognised, please try again
((
PERFECT AUTO STRAFER
Code:
void CMiscHacks::PerfectStrafe(CUserCmd *pCmd)
{
	IClientEntity* pLocal = hackManager.pLocal();

	bool bKeysPressed = true;
	if (GUI.GetKeyState(0x41) || GUI.GetKeyState(0x57) || GUI.GetKeyState(0x53) || GUI.GetKeyState(0x44)) bKeysPressed = false;

	if ((GetAsyncKeyState(VK_SPACE) && !(pLocal->GetFlags() & FL_ONGROUND)) && bKeysPressed)
	{
		if (pCmd->mousedx > 1 || pCmd->mousedx < -1) {
			pCmd->sidemove = pCmd->mousedx < 0.f ? -450.f : 450.f;
		}
		else {
			pCmd->forwardmove = (1800.f * 4.f) / pLocal->GetVelocity().Length2D();
			pCmd->sidemove = (pCmd->command_number % 2) == 0 ? -450.f : 450.f;
			if (pCmd->forwardmove > 450.f)
				pCmd->forwardmove = 450.f;
		}
	}
}
here take this. works for me, not perfect but faster then the normal.
from ayymemes too btw.
Quote Originally Posted by PastaKing View Post
Code:
void CMiscHacks::PerfectStrafe(CUserCmd *pCmd)
{
	IClientEntity* pLocal = hackManager.pLocal();

	bool bKeysPressed = true;
	if (GUI.GetKeyState(0x41) || GUI.GetKeyState(0x57) || GUI.GetKeyState(0x53) || GUI.GetKeyState(0x44)) bKeysPressed = false;

	if ((GetAsyncKeyState(VK_SPACE) && !(pLocal->GetFlags() & FL_ONGROUND)) && bKeysPressed)
	{
		if (pCmd->mousedx > 1 || pCmd->mousedx < -1) {
			pCmd->sidemove = pCmd->mousedx < 0.f ? -450.f : 450.f;
		}
		else {
			pCmd->forwardmove = (1800.f * 4.f) / pLocal->GetVelocity().Length2D();
			pCmd->sidemove = (pCmd->command_number % 2) == 0 ? -450.f : 450.f;
			if (pCmd->forwardmove > 450.f)
				pCmd->forwardmove = 450.f;
		}
	}
}
here take this. works for me, not perfect but faster then the normal.
from ayymemes too btw.
same as mine lmao
Quote Originally Posted by PastaKing View Post
Code:
void CMiscHacks::PerfectStrafe(CUserCmd *pCmd)
{
	IClientEntity* pLocal = hackManager.pLocal();

	bool bKeysPressed = true;
	if (GUI.GetKeyState(0x41) || GUI.GetKeyState(0x57) || GUI.GetKeyState(0x53) || GUI.GetKeyState(0x44)) bKeysPressed = false;

	if ((GetAsyncKeyState(VK_SPACE) && !(pLocal->GetFlags() & FL_ONGROUND)) && bKeysPressed)
	{
		if (pCmd->mousedx > 1 || pCmd->mousedx < -1) {
			pCmd->sidemove = pCmd->mousedx < 0.f ? -450.f : 450.f;
		}
		else {
			pCmd->forwardmove = (1800.f * 4.f) / pLocal->GetVelocity().Length2D();
			pCmd->sidemove = (pCmd->command_number % 2) == 0 ? -450.f : 450.f;
			if (pCmd->forwardmove > 450.f)
				pCmd->forwardmove = 450.f;
		}
	}
}
here take this. works for me, not perfect but faster then the normal.
from ayymemes too btw.
this is a horrible way of doing it and it will gain you basically no speed at all
Quote Originally Posted by 0x28 View Post
this is a horrible way of doing it and it will gain you basically no speed at all
lol?so....??
Quote Originally Posted by JuzzGamer View Post
same as mine lmao
Don't call it yours when it's the Whip AutoStrafer ffs
Quote Originally Posted by officialflaming View Post
Don't call it yours when it's the Whip AutoStrafer ffs
Okay...I won't do dat from now
Quote Originally Posted by JuzzGamer View Post
Any pAutoStrafer code for ayy memes???

Code:
void CMiscHacks::RageStrafe(CUserCmd *pCmd)
{
	IClientEntity* pLocal = hackManager.pLocal();

	bool bKeysPressed = true;
	if (GUI.GetKeyState(0x41) || GUI.GetKeyState(0x57) || GUI.GetKeyState(0x53) || GUI.GetKeyState(0x44)) bKeysPressed = false;

	if ((GetAsyncKeyState(VK_SPACE) && !(pLocal->GetFlags() & FL_ONGROUND)) && bKeysPressed)
	{
		if (pCmd->mousedx > 1 || pCmd->mousedx < -1) {
			pCmd->sidemove = pCmd->mousedx < 0.f ? -450.f : 450.f;
		}
		else {
			pCmd->upmove = 250.f;// for testing
			pCmd->forwardmove = (10000.f) / pLocal->GetVelocity().Length2D();
			pCmd->sidemove = (pCmd->command_number % 2) == 0 ? -450.f : 450.f;
		}
	}
}
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us