JonnyBro / beatrun

Fork of infamous parkour addon for Garry's Mod
https://beatrun.jonnybro.ru
The Unlicense
232 stars 37 forks source link

Attempt to make FOV behavior less weird #159

Closed UnderSet closed 6 months ago

UnderSet commented 6 months ago

Got annoyed with how FOV with ARC9 weapons kind of freak out, so I did some poking in the code myself and figured out how the PLAYER:CalcView() function in player_beatrun.lua can be edited to make Beatrun's FOV changes be on the CalcView() function.

As a bonus, changing the Beatrun_FOV CVar now immediately applies the modified value, skipping having to respawn/switch weapons (yes it's switching weapons, that's in the code)

(Also yes I was tempted to make a PR for this so much I finally dealt with 2FA)

I didn't (more like haven't bothered) testing in MP mode. Not that it should break from 2+ players, but still.

JonnyBro commented 6 months ago

Thank you for your contribution!