From 9d4e0e556acebce107565e7c79b4392bbba36449 Mon Sep 17 00:00:00 2001 From: UnderSet <80137504+UnderSet@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:57:46 +0700 Subject: [PATCH] Make FOV behavior...not janky? --- .../beatrun/gamemode/player_class/player_beatrun.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/player_class/player_beatrun.lua b/beatrun/gamemodes/beatrun/gamemode/player_class/player_beatrun.lua index d29f6b4..8bda35f 100644 --- a/beatrun/gamemodes/beatrun/gamemode/player_class/player_beatrun.lua +++ b/beatrun/gamemodes/beatrun/gamemode/player_class/player_beatrun.lua @@ -356,6 +356,9 @@ function PLAYER:CreateMove(cmd) end function PLAYER:CalcView(view) + if CLIENT then + view.fov = GetConVar("Beatrun_FOV"):GetFloat() + end if self.TauntCam:CalcView(view, self.Player, self.Player:IsPlayingTaunt()) then return true end end @@ -511,4 +514,4 @@ hook.Add("PlayerSpawn", "ResetStateTransition", function(ply, transition) end) end) -player_manager.RegisterClass("player_beatrun", PLAYER, "player_default") \ No newline at end of file +player_manager.RegisterClass("player_beatrun", PLAYER, "player_default")