Help on making hotkey hack (Noob Alert)
I just got NX Chams in my hotkey hack. The NX Chams work completely. So i tried adding more hacks but they don't work whenever I turn them on. I can't figure out why. I know the ptc commands that I am using work because they worked on a different hack. Also there are no errors when building it.
Here is the code for it. Thanks to msflames3 for giving me the hotkey source.
Here is the code for it. Thanks to msflames3 for giving me the hotkey source.
Code:
void main()
{
{
bool nxchams = false;
while(true)
if(GetAsyncKeyState(VK_NUMPAD1)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
nxchams = false;
} else {
PushToConsole("SkelModelStencil 1");
nxchams = true;
}
Sleep(200); //to make sure
}
bool boxes = false;
while(true)
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(boxes){
PushToConsole("ModelDebug_DrawBoxes 0");
boxes = false;
} else {
PushToConsole("ModelDebug_DrawBoxes 1");
boxes = true;
}
Sleep(200); //to make sure
}
bool nospread = false;
while(true)
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(nospread){
PushToConsole("PerturbRecoil 9.000000");
PushToConsole("PerturbRotationEffect 3.000000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("PerturbWalkPercent 9.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.500000");
PushToConsole("FireMovePerturb 9.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
PushToConsole("ZoomedFireMovePerturb 9.00000");
PushToConsole("ZoomedFireDuckPerturb 9.000000");
nospread = false;
} else {
PushToConsole("PerturbRecoil 0.000000");
PushToConsole("PerturbRotationEffect 0.000000");
PushToConsole("FireMovePerturb 0.000000");
PushToConsole("PerturbWalkPercent 0");
PushToConsole("PerturbDecreaseSpeed 0");
PushToConsole("PerturbIncreaseSpeed 0");
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000");
PushToConsole("ZoomedFireMovePerturb 0.000000 ");
PushToConsole("ZoomedFireDuckPerturb 0.000000");
nospread = true;
}
Sleep(200);
}
}
}
