fovmin reset fix
This commit is contained in:
parent
d5f8e8d937
commit
3dd28c1565
@ -72,7 +72,7 @@ namespace patches
|
|||||||
|
|
||||||
void set_client_dvar_from_server_stub(void* a1, void* a2, const char* dvar, const char* value)
|
void set_client_dvar_from_server_stub(void* a1, void* a2, const char* dvar, const char* value)
|
||||||
{
|
{
|
||||||
if (dvar == "cg_fov"s)
|
if (dvar == "cg_fov"s || dvar == "cg_fovMin"s)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -179,6 +179,7 @@ namespace patches
|
|||||||
// Make cg_fov and cg_fovscale saved dvars
|
// Make cg_fov and cg_fovscale saved dvars
|
||||||
dvars::override::register_float("cg_fov", 65.f, 40.f, 200.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
dvars::override::register_float("cg_fov", 65.f, 40.f, 200.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
||||||
dvars::override::register_float("cg_fovScale", 1.f, 0.1f, 2.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
dvars::override::register_float("cg_fovScale", 1.f, 0.1f, 2.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
||||||
|
dvars::override::register_float("cg_fovMin", 1.f, 1.0f, 90.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
||||||
|
|
||||||
// Allow kbam input when gamepad is enabled
|
// Allow kbam input when gamepad is enabled
|
||||||
utils::hook::nop(SELECT_VALUE(0x14018797E, 0x14024EF60), 2);
|
utils::hook::nop(SELECT_VALUE(0x14018797E, 0x14024EF60), 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user