I have 2 void functions and a main func.
But since first function has while(true) it works always and due to that second is not working. How to make it work all together at the same time?
void shoot()
{
*(DWORD*)(val.gameModule + offsets.ForceAttack, 5);
Sleep(5000);
*(DWORD*)(val.gameModule + offsets.ForceAttack, 4);
}
void bunny()
{
val.gameModule = (DWORD)GetModuleHandle("client_panorama.dll");
std::cout << (GetModuleHandle("client_panorama.dll")) << std::endl;;
val.localPlayer = *(DWORD*)(val.gameModule + offsets.lplayer);
while (true)
{
if (bunnyON == 1);
else
return;
val.flag = *(BYTE*)(val.localPlayer + offsets.flags);
if (isMoving())
if (GetAsyncKeyState(VK_SPACE) && val.flag & (1 << 0))
* (DWORD*)(val.gameModule + offsets.jump) = 6;
}
}
int main()
{
bunny();
shoot();
}
`
main()
and callshoot_step()
andbunny_step()
in the loop.