shift-speed not working?

Posts 1–8 of 8 · Page 1 of 1
shift-speed not working?
Code:
	while (true) {
		if (GetAsyncKeyState(VK_SHIFT)) {
			*(float*)((reinterpret_cast<DWORD>(GetModuleHandle("CShell.dll")) + 0x1653130) + 0x8) = 2.0f;
		};
	};
inside of my hack base, made sure clientfx, cshell loaded.. go into game press shift and not speeding.

btw that simplifies to
Code:
*(float*)(BasicPlayerInfo + movementwalkrate) = 2.0f;
Quote Originally Posted by Goocolax View Post
Code:
	while (true) {
		if (GetAsyncKeyState(VK_SHIFT)) {
			*(float*)((reinterpret_cast<DWORD>(GetModuleHandle("CShell.dll")) + 0x1653130) + 0x8) = 2.0f;
		};
	};
inside of my hack base, made sure clientfx, cshell loaded.. go into game press shift and not speeding.

btw that simplifies to
Code:
*(float*)(BasicPlayerInfo + movementwalkrate) = 2.0f;
Really? You're not making a pointer to basicplayerinfo...
Quote Originally Posted by vaisefud3 View Post
Really? You're not making a pointer to basicplayerinfo...
void* you mean?
or do I need some sort of class/struct to cast it to?
1 . Just do what @vaisefud3 told you to do
2 . Optional - Stop using while on your hook
3 . you didn't need to check if shift is pressed to do this code
Quote Originally Posted by [K]akashi View Post
1 . Just do what @vaisefud3 told you to do
2 . Optional - Stop using while on your hook
3 . you didn't need to check if shift is pressed to do this code
2, 3 - okay thank you
1 - im not sure exactly what he is telling me any help?

edit:

this will work?

Code:
void BeginSpeedHackRoutine() {
	DWORD* CShell = (DWORD*)GetModuleHandle("CShell.dll");
	DWORD* BasicPlayerInfo = (DWORD*)(CShell + 0x1653130);
	*(float*)(BasicPlayerInfo + 0x8) = 2.0f;
};
he told you to create BasicPlayer pointer
should be like this
Code:
	DWORD* CShell = (DWORD*)GetModuleHandle("CShell.dll");
	DWORD* BasicPlayerInfo = (DWORD*)(CShell + 0x1653130);
then full code should be like this
Code:
void BeginSpeedHackRoutine() {
	DWORD CShell = (DWORD)GetModuleHandle("CShell.dll");
	DWORD BasicPlayerInfo = (DWORD)(CShell + 0x1653130);

	if ( BasicPlayerInfo != NULL )
	{
	*(float*)(BasicPlayerInfo + 0x8) = 2.0f;
	}
}
this must work on you
Code:
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pBasicPlayerInfo = *(DWORD*)(CShell + 0x1653130);
*(float*)(BasicPlayerInfo + 0x8) = 1.15; //Anything above that will give you client error
Also, take out the ; after the function closing bracket
Thank you guys for helping, I will test !
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us