internal fov changer
Im relatively new and confused where to go from here because my slider isnt doing anything :^(
Code:
typedef void(__thiscall* OverrideView_t)(CViewSetup*);
void __stdcall Hooked_OverrideView(CViewSetup* pSetup)
{
if (Settings.GetBoolSetting(Tab_Visuals, Vis_Active))
{
if (Interfaces.pEngine->IsInGame() && Interfaces.pEngine->IsConnected() && Settings.GetSetting(Tab_Visuals, Vis_FOV) != 0)
{
if (!Hacks.LocalPlayer->m_bIsScoped()) {
pSetup->fov = Settings.GetSetting(Tab_Visuals, Vis_FOV);
pSetup->fovViewmodel = Settings.GetSetting(Tab_Visuals, Vis_FOV);
}
}
}
VMTClientMode.HookMethod((DWORD)&Hooked_OverrideView, 18);
}
