Internal BHop
Agh man I hate asking stupid questions... but
The problem is when you're holding space, the game is still holding +jump, so cmd->buttons |= IN_JUMP does nothing.
How do I get around this?
Code:
bool __stdcall CreateMove(float flInputSampleTime, CUserCmd *cmd) {
oCreateMove(flInputSampleTime, cmd);
/* BHOP */
CBaseEntity* pLocalPlayer = (CBaseEntity*)Interfaces->ClientEntList->GetClientEntity(Interfaces->Engine->GetLocalPlayer());
int groundflags[] = { 257, 259, 269, 233 };
if (GetAsyncKeyState(VK_SPACE))
{
for (int i = 0; i < 4; i++)
{
if (pLocalPlayer->GetFlags() == groundflags[i])
{
cmd->buttons |= IN_JUMP;
continue;
}
}
Msg("%s\n" "jump debug");
}
return true;
}
How do I get around this?

