-
Автор темы
- #1
hooks.h:
float changeSpeed = 0.2f;
float FOV = vars::misc::fov;
if (GetAsyncKeyState(vars::keys::zoom))
{
float oldFOV = ConVar::Graphics::_fov();
float newFOV = oldFOV + (15.f - oldFOV) * changeSpeed;
ConVar::Graphics::_fov() = newFOV;
}
else
{
float zoomfov = ConVar::Graphics::_fov();
float newFOV = zoomfov + (FOV - zoomfov) * changeSpeed;
ConVar::Graphics::_fov() = newFOV;
}