ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.71k stars 626 forks source link

Add a function to detect the player game resolution. #2241

Open metita opened 5 years ago

metita commented 5 years ago

Title.

Nowadays, people has better monitors and with that Custom huds aren't being displayed correctly, with that, we can make more better looking hud positions.

afwn90cj93201nixr2e1re commented 5 years ago

+1, it's must be implemented. Add some svc/clc message to send current resolution to server-side.

2010kohtep commented 5 years ago

@shelru, this will require a protocol changes, which I consider redundant for such small features. I find that registering a variable by analogy with sv_version is simpler and safer, since the value of this variable can be retrieved using svc_sendcvarvalue messages.

afwn90cj93201nixr2e1re commented 5 years ago

sv_version

Yeah. Your solution is better.

2010kohtep commented 5 years ago

In addition. I believe that there should be another cvar flag that completely prohibits the change of variables by the client and server, which can be set for variables like sv_version. Many servers check the client's sv_version value to use the correct functionality, and if client changes sv_version value, server can do the wrong job for client.

metita commented 5 years ago

@mikela-valve is this possible?

metita commented 5 years ago

@mikela-valve Can this be considered to be implemented in the Next Release or at least considered to be added soon after that?