ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.67k stars 619 forks source link

[HL] HLTV FOV locked at 90. #2245

Open Darkvapour opened 5 years ago

Darkvapour commented 5 years ago

Hi,

In Half-Life Deathmatch the field of view for clients spectating a game via HLTV seems to be locked at 90 with no way to change the FOV. HLTV seems to ignore default_fov, so setting default_fov to 110 for instance does not achieve anything. As far as I can tell there's no other way to change the FOV.

DMC interestingly has cl_fov which DOES work to change HLTV FOV (provided you change it before you connect) however cl_fov is unique to DMC I believe.

Reproducing:

  1. Start a local dedicated server, perhaps with some fake clients.
  2. Start a HLTV server, connect it to the local server.
  3. Start Half-Life, set default_fov 110 and connect to the HLTV server.
  4. Observe, you still have 90 FOV.
  5. (Optional) Connect to the local dedicated server, you should have 110 FOV in-game.

This same problem effects HLTV demos too, with no way to change the FOV.

kisak-valve commented 5 years ago

Most likely related to #450.

JoelTroch commented 5 years ago

@kisak-valve This issue is partially related to #450.

The linked issue in a nutshell is basically a request to change the camera's FOV (default_fov) from a slider/input field in the options. Unless I'm mistaken, a change in <game>/user.scr and it's done.

This issue however is basically saying that the camera's FOV does not respect default_fov when you spectate a game through HLTV (DMC seems to be an exception with it's cl_fov CVAR).