mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-04-07 11:26:34 +05:00
Fix FOV...hopefully finally
This commit is contained in:
parent
5ef56f4d70
commit
6e24708ecd
1 changed files with 18 additions and 15 deletions
|
@ -568,7 +568,9 @@ hook.Add("PlayerSwitchWeapon", "BeatrunSwitchARC9FOVFix", function(ply)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
cvars.AddChangeCallback("Beatrun_FOV", function(convar, oldval, newval)
|
hook.Add("InitPostEntity", "FOVChangeFix", function()
|
||||||
|
-- FOV change fix, don't tinker with this unless you know what you're doing...
|
||||||
|
cvars.AddChangeCallback("Beatrun_FOV", function(convar, oldval, newval)
|
||||||
if CLIENT and game.SinglePlayer() then
|
if CLIENT and game.SinglePlayer() then
|
||||||
LocalPlayer():SetFOV(newval)
|
LocalPlayer():SetFOV(newval)
|
||||||
elseif CLIENT then
|
elseif CLIENT then
|
||||||
|
@ -585,6 +587,7 @@ cvars.AddChangeCallback("Beatrun_FOV", function(convar, oldval, newval)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if SERVER then
|
if SERVER then
|
||||||
|
|
Loading…
Add table
Reference in a new issue