mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
Attempt to make FOV behavior less weird (#159)
This commit is contained in:
parent
3d1f47da96
commit
59abe2eb8e
1 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
player_manager.RegisterClass("player_beatrun", PLAYER, "player_default")
|
||||
|
|
Loading…
Reference in a new issue