Hello
I'd like to do a "No recoil" on an FPS an external cheat that doesn't touch the gamewith view angle, I've already seen stuff like this :
Code:
if (GetAsyncKeyState(VK_LBUTTON) & 0x8000)
{
float weapon_recoil_scale = 2.0f;
QAngle aimPunchAngle = s_pLocalPlayer->GetPunchAngle() * weapon_recoil_scale;
static QAngle aimPunchAngleOld = aimPunchAngle;
if (s_pLocalPlayer->m_iShotsFired > 1)
{
QAngle va;
engine->GetViewAngles(va);
va -= (aimPunchAngle - aimPunchAngleOld);
engine->SetViewAngles(va);
}
aimPunchAngleOld = aimPunchAngle;
}
Any tutorial or idea will be really appreciatteddd thx.