// HEADER! .H
class CCheats
{
public:
CCheats();
struct stCheats
{
bool bNoSpread = false;
};
struct stNoRecoilSettings
{
float fCombatRecoil = 2.0f;
float fSawnOffRecoil = 2.0f;
float fColtRecoil = 5.0f;
float fTec9Recoil = 25.0f;
float fChromeShotgunRecoil = 2.0f;
float fSilencedRecoil = 3.0f;
float fM4Recoil = 25.0f;
float fDeagleRecoil = 5.0f;
float fUziRecoil = 5.0f;
float fMP5Recoil = 5.0f;
float fAK47Recoil = 25.0f;
};
struct stCheats newCheats;
struct stNoRecoilSettings noRecoilSettings;
void CheatProcess();
void NoRecoil(); // Works w/o problem.
private:
};
// CPP! SOURCE
CCheats::CCheats()
{
}
void CCheats::CheatProcess()
{
if (g_Cheats->newCheats.bNoSpread)
g_Cheats->NoRecoil();
}
void CCheats::NoRecoil()
{
//0xC8C680//combat pointer
//0xC8C610//sawn pointer/offset
*(float*)0xC8C680 = g_Cheats->noRecoilSettings.fCombatRecoil;
*(float*)0xC8C610 = g_Cheats->noRecoilSettings.fSawnOffRecoil;
*(float*)0xC8C450 = g_Cheats->noRecoilSettings.fColtRecoil;
*(float*)0xC8C8B0 = g_cheats->noRecoilSettings.fTec9Recoil;
*(float*)0xC8C5A0 = g_Cheats->noRecoilSettings.fChromeShotgunRecoil;
*(float*)0xC8C4C0 = g_Cheats->noRecoilSettings.fSilencedRecoil;
*(float*)0xC8C840 = g_Cheats->noRecoilSettings.fM4Recoil;
*(float*)0xC8C530 = g_Cheats->noRecoilSettings.fDeagleRecoil;
*(float*)0xC8C6F0 = g_Cheats->noRecoilSettings.fUziRecoil;
*(float*)0xC8C760 = g_Cheats->noRecoilSettings.fMP5Recoil;
*(float*)0xC8C7D0 = g_Cheats->noRecoilSettings.fAK47Recoil;
}