Velocity Check

Posts 1–4 of 4 · Page 1 of 1
Velocity Check
I have been working on learning some C++ (coming from python) and have been attempting to get my bhop to work. I based it on another free one's source that I found somewhere. I got the hack working but when I am typing I still BHOP.

I have been trying to get my hack to not BHOP depending on my Velocity (I have heard of better ways of fixing my problem, but I don't want to yet because I am going to use the velocity in a future project).

I have all of the offsets needed in my Offsets header file
Code:
DWORD m_vecVelocity = 0x110
So below is the part that makes it work and it is using an if statement for the value of m_vecVelocity.

Code:
if (m_vecVelocity > 5) {
	if (GetAsyncKeyState(VK_SPACE) & 0x8000) {
		if (FlagsOfPlayer & (1 << 0)) {
			SetForceJump(5);
			Sleep(25);
			SetForceJump(4);
		}
	}
}
Why is the bunnyhop still working if my velocity is lower than 5?
You have to read value of vecVelocity.
It's just a memory offset ..
Client.dll + LocalPlayer + m_vecVelocity
Quote Originally Posted by Zaczero View Post
You have to read value of vecVelocity.
It's just a memory offset ..
Client.dll + LocalPlayer + m_vecVelocity
Code:
		if (Mem.Read<vector>(CDLL + m_dwLocalPlayer + m_vecVelocity) != 0) {
			if (GetAsyncKeyState(VK_SPACE) & 0x8000) {
				if (FlagsOfPlayer & (1 << 0)) {
					SetForceJump(5);
					Sleep(25);
					SetForceJump(4);
				}
			}
		}
What am I doing wrong here?

Code:
Source.cpp(251) : error C2109: subscript requires array or pointer type
Source.cpp(251) : error C2780: 'cData ProcMem::Read(DWORD,char *,BOOL)' : expects 3 arguments - 1 provided
        e:\csgo\cheats\poly\polyloader\hop_r\ProcMem.h(54) : see declaration of 'ProcMem::Read'
Source.cpp(251) : error C3206: 'ProcMem::Read' : invalid template argument for 'cData', missing template argument list on class template std::vector
        e:\csgo\cheats\poly\polyloader\hop_r\ProcMem.h(45) : see declaration of 'ProcMem::Read'
Quote Originally Posted by Lord Helios View Post
Code:
		if (Mem.Read<vector>(CDLL + m_dwLocalPlayer + m_vecVelocity) != 0) {
			if (GetAsyncKeyState(VK_SPACE) & 0x8000) {
				if (FlagsOfPlayer & (1 << 0)) {
					SetForceJump(5);
					Sleep(25);
					SetForceJump(4);
				}
			}
		}
What am I doing wrong here?

Code:
Source.cpp(251) : error C2109: subscript requires array or pointer type
Source.cpp(251) : error C2780: 'cData ProcMem::Read(DWORD,char *,BOOL)' : expects 3 arguments - 1 provided
        e:\csgo\cheats\poly\polyloader\hop_r\ProcMem.h(54) : see declaration of 'ProcMem::Read'
Source.cpp(251) : error C3206: 'ProcMem::Read' : invalid template argument for 'cData', missing template argument list on class template std::vector
        e:\csgo\cheats\poly\polyloader\hop_r\ProcMem.h(45) : see declaration of 'ProcMem::Read'
Do you even have a 3d vector class?
It looks like you are doing using namespace std and then the compiler thinks you're referring to std::vector (and not using the correct arguments for it).
std::vector is not a 3d vector class, it's a dynamic array class.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us