HelpExternal Strafe Hack

Posts 1–15 of 17 · Page 1 of 2
External Strafe Hack
Hey. I ask to help me with strafe hack. I wrote a program, but it has significant disadvantages.
For example the fact that the keys "A" and "D" pressed out of the game and also pressed on the console, and chat.
Yet it is not entirely effective, often miss clicks.
I have some questions:
1) How to best emulated keystrokes to the game?
2) how to do it so the most efficient and that the console is in the chat and keys are not pressed?
here is my shit code:

Code:
void StrafeHack()
{
	if (StrafeHackEnable)
	{
		if (FirstTimeSH)
		{
			int Xc = GetSystemMetrics(SM_CXSCREEN);
			int Yc = GetSystemMetrics(SM_CYSCREEN);
			int _x = Xc / 2;
			int _y = Yc / 2;
			SetCursorPos(_x, _y);
			GetCursorPos(&CenterOfScreen);
			FirstTimeSH = false;
		}
		if (GetAsyncKeyState(VK_SPACE) & (1 << 15)) // & (1 << 15)
		{
			GetCursorPos(&CurrentPosition);
			if (CurrentPosition.x > CenterOfScreen.x)
			{
				SendKeyPress(0x20, true);
				Sleep(5);
				SendKeyPress(0x20, false);
			}
			else if (CurrentPosition.x < CenterOfScreen.x)
			{
				SendKeyPress(0x1e, true);
				Sleep(5);
				SendKeyPress(0x1e, false);
			}
		}
	}
}
Yo dude!, go internal, from UserCmd you can use MousedX!
Code:
                if ( Cmd->MousedX > 0 ) {
	                Cmd->ViewAngles.y += 1;
                    Cmd->SideMove = 450.f;
				}

                if ( Cmd->MousedX < 0 ) {
	                Cmd->ViewAngles.y -= 1;
                    Cmd->SideMove = -450.f;
				}
one of the simplest strafe cheats you could make, you could easily implement it into a bunnyhop cheat like i did.
Nex, i already do it. check it, here is my bhop hack and strafe hack:
utube /watch?v=BbyikODq_EY
Quote Originally Posted by nexcat View Post
go internal
with joy, but I do not have such knowledge
Quote Originally Posted by SP1K3CSGO View Post
snip~
oh sorry ;P, was just trying to give you an alternative to doing it externally, anyways, looks nice [ btw i didnt really look at the code ] the way you do it is similar to the way i suggested anyways, the way you do it seems to be good, is there any type of bugs to it?
yea, for example it work so good on local server, but on mm server or bhop server it work with miss clicks and loss rate. i can only guess that it's blame ping and speed of the program
Quote Originally Posted by SP1K3CSGO View Post
snip~
for clarification does (1 << 15) have something to do with velocity?
Quote Originally Posted by nexcat View Post
Yo dude!, go internal, from UserCmd you can use MousedX!
Code:
                if ( Cmd->MousedX > 0 ) {
	                Cmd->ViewAngles.y += 1;
                    Cmd->SideMove = 450.f;
				}

                if ( Cmd->MousedX < 0 ) {
	                Cmd->ViewAngles.y -= 1;
                    Cmd->SideMove = -450.f;
				}
one of the simplest strafe cheats you could make, you could easily implement it into a bunnyhop cheat like i did.
so, can u give me a full source code of this, if it is external, cuz i dont know how to make it, i cant found includes

- - - Updated - - -

Quote Originally Posted by nexcat View Post
for clarification does (1 << 15) have something to do with velocity?
i had hoped that this will reduce the load on the CPU, but this did not affect
Quote Originally Posted by SP1K3CSGO View Post
so, can u give me a full source code of this, if it is external, cuz i dont know how to make it, i cant found includes
so dude, you can get usercmd externally, or you could use +moveleft or +moveright instead of using global keypresses?
Quote Originally Posted by nexcat View Post
get usercmd
but how?
sorry for stupid questions ;/
Quote Originally Posted by SP1K3CSGO View Post
snip~
i don't know how to do it externally [ i know its possible though, people have done things like pSilent externally and stuff like that ], see now, if you were internal, it'd be much easier UserCmd in the sdk
Okay, I understand my problem is probably not solvable.
thank u for answers, nexcat
I made a strafe assist like this in my multi script. It only works when you hold down the bind and thus will not mess with the chat etc.
Just have to keep in mind that Csgo puts your mouse back to the center of the screen all the time.
order not to create new topic I ask here

how to conclude the value of the variable in the console so that if the variable is changed, the console is to be seen?
Is that SendKeyPress command custom or is it in c++ because it looks so simple
Check your velocity (e.g. don't strafe if you're standing still or walking) or IN_AIR bitflag.
To avoid making "A" & "D" unusable, just write via memory.
Posts 1–15 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?