JonnyBro / beatrun

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

Fix FOV behavior for actual this time around #194

Closed LostTrackpad closed 3 months ago

LostTrackpad commented 3 months ago

Fixes #179. I think. (I lost hours of sleep over this, let's hope it does.)

"Fixes" FOV specifically after switching weapons by forcing FOV value to whatever Beatrun_FOV is set to for .8 seconds, pretty much.

Please test this carefully before merging. This wasn't thoroughly tested yet (just in 2 player multiplayer in P2P).

(Also includes a "fix" for the timer HUD in courses looking weird in some cases (bad addons) that I can't exclude because GitHub.)

It is literally 12AM as I make this PR, please excuse some of the language and also bad coding.

(Breaks HL2 crossbow zoom for ~1 second after switching to it, but I don't know how to fix that.)

JonnyBro commented 3 months ago

I'll add this to my reminds for good check on weekends, thanks.

LostTrackpad commented 3 months ago

Actually, hold on - there's some bugs I need to fix before this can be merged.

LostTrackpad commented 3 months ago

FOV changes no longer work in multiplayer without switching weapons/respawning. The only thing I can think of is to use the net library to make it work, but I'm not familiar in client-server stuff.

(Yes, this is a regression. Deal with it.)

LostTrackpad commented 3 months ago

FOV changes no longer work in multiplayer without switching weapons/respawning.

Fixed yesterday, at the cost of a <1 second (I don't remember exactly what it is) delay when changing FOV.

JonnyBro commented 3 months ago

Looks good to me!