It's open-source!
How about looking in the opengl.cpp file for key references or GetAsyncKeyState calls. You do not need C++ either. Just open the C++ files with notepad.
Code:
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
///////////////////////////////WireFrame Toggles//////////////////////////
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
if((GetAsyncKeyState(VK_NUMPAD1) & 0x8000) && wireframe==0)
{
wireframe = 1;
}
if((GetAsyncKeyState(VK_NUMPAD2) & 0x8000) && wireframe==1)
{
wireframe = 0;
}
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
/////////////////////////////NIGHT-Mode toggles//////////////////////////
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if((GetAsyncKeyState(VK_NUMPAD3) & 0x8000) && nightmode==0)
{
nightmode = 1;
}
if((GetAsyncKeyState(VK_NUMPAD4) & 0x8000) && nightmode==1)
{
nightmode = 0;
}
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///////////////////////////////NO-FOG Toggles////////////////////////////
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if((GetAsyncKeyState(VK_NUMPAD5) & 0x8000) && nofog==0)
{
nofog = 1;
}
if((GetAsyncKeyState(VK_NUMPAD6) & 0x8000) && nofog==1)
{
nofog = 0;
}
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///////////////////////////////Wallhack Toggles//////////////////////////
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if((GetAsyncKeyState(VK_NUMPAD7) & 0x8000) && wallhack==0)
{
wallhack = 1;
}
if((GetAsyncKeyState(VK_NUMPAD8) & 0x8000) && wallhack==1)
{
wallhack = 0;
}
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
//////////////////////////////Flashing model toggles/////////////////////
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if((GetAsyncKeyState(VK_NUMPAD7) & 0x8000) && fmodels==0)
{
fmodels = 1;
}
if((GetAsyncKeyState(VK_NUMPAD8) & 0x8000) && fmodels==1)
{
fmodels = 0;
}
if((GetAsyncKeyState(VK_F3) & 0x8000) && fmodels==0)
{
normalmodels = 1;
}
if((GetAsyncKeyState(VK_F4) & 0x8000) && normalmodels==1)
{
normalmodels = 0;
}
/*void APIENTRY moose_glViewport (GLint x, GLint y, GLsizei width, GLsizei height)
{
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///////////////////////////////NO-Recoil/////////////////////////////////
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if(GetAsyncKeyState(VK_LBUTTON))
{
recoil=true;
{
if((xrecoil > 20) && (xrecoil < 30))
{
MOUSEEVENTF_MOVE,0,3.0f,0,0;
}
if((xrecoil > 30) && (xrecoil < 40))
{
MOUSEEVENTF_MOVE,0,-0.5f,0,0;
}
if(xrecoil > 40)
recoil=false;
}
}
xrecoil++;
}*/
}
}
Assuming you have a compatible C++ compiler and want the recoil to be toggleable:
The recoil toggle is commented out so you will need to remove /* and */. After doing so and recompiling the hack, you should be able to toggle the recoil.
Bookmarks