[CS 1.6][Feature]Server based client settings
I would like to see a server based config that clients will need to use for specific mods or server rules, for example, cl_minmodels 0, gamma and brighness for zombie servers and etc. They won't be changeable by clients. It would be very nice feature, because now the only way to do something like that is by slowhacking clients configs for permanent changes.
I guess if you're going to do a server mod that replaces models, you'll replace every model so it won't matter what the cl_minmodels value is anyway.
cl_minmodels just takes the team index and replaces the player models. It doesn't care if it was changed to a non-default player model or anything else for that matter, at least in its current form.
I know slow hacking is harmful but cl_minmodels is something that the server should be able to prevent. There are other mods like WC3 (where you can disguise as an enemy player) were server owners would have to kick everyone using minmodels when they lose the ability to override the client's settings.
really, the changes should just be temporary, that seems like the best solution. just make it not write to the config file, but instead keep the changed values in memory
@AnAkIn1 @Nextra We don't care about mods and addons there, just matter to offer settings to players
@InmanInman It has to be a cvar that is saved in config.cfg (if request is implemented).
Meh, I could agree about cl_minimodels, but I am using it :D Those mods models just slows down fps for me... and gamma and brightness, I dk, both settings depends on players screen settings, so it wil be annoying - to see almoust black screen, while somone will see normal colors etc.
Sry for my pure English :)
@ConnorMcLeod No, it doesn't have to be saved at all. In fact that's precisely what we don't want - servers being able to write to the configuration file and having players bind advertisements to keys or some nonsense.
I don't want slowhacking, it's just that cl_minmodels interferes badly with many server-side mods. In WC3 for example you can disguise as an opponent (so no fancy super-huge high polygon models, just one of the other team). With cl_minmodels 1 that change is simply overridden and the player sees the real model, making the effect worthless.
It would not be a problem to just kick everyone that uses cl_minmodels but right now it is more convenient for players to have the setting changed temporarily when they join a server that requires it to be off. Most players don't even notice it and/or know why the mod does that.
So this, once again, is an issue where not every server owner is a malicious slowhacker. Just like with connecting community servers with tools like xREDIRECT there is sometimes good, and more importantly player accepted, reason to change a certain client setting.
I don't think players want their settings changed, even temporarily. I wouldn't want a server to mess up with any of my settings tbh. I don't want to have to restart the game to find back my settings. I'm pretty sure there are lot of mods that work fine on the Source engine, which modify the player models, and they can't send any commands to the client.
It's a non-malicious and gameplay-required setting and players have accepted it for certain mods because it wouldn't work otherwise. I know for a fact because I run mod servers and have played on mod servers almost exclusively for the better part of the last seven years. There's a reason for the WC3 mod including a cl_minmodel detector, that wasn't a plot to slowly take over the world with setting cl_minmodels 0 on clients.
I don't know how it is handled on the Source Engine. Maybe mods like WC3 were never developed or omitted the disguise feature because of that, maybe cl_minmodels just behaves differently there.
I'd like to restate that I'm not endorsing or advertising malicious slowhacks ever. It is harmful to players and other server owners that have to deal with advertisements because players got their keys rebinded somewhere else. I'm just saying that there are cvars, and cl_minmodels would probably be one of the most prominent and least harmful, that are changed by mods for good reason.
That topic has valuable in other sphere of activity, for example rate cvars (cl_updaterate, cl_cmdrate, rate), interpolation cvars, to get equal conditions for the players. for fair play.
@r3n4m3 : No, cl_updaterate and rate are already limited with sv_minupdaterate/sv_maxupdaterate/sv_minrate/sv_maxrate.
what about interp?
Well, I was suggesting adding a temporary file or something like that, where server-client config would be stored, and when player joins server - it would be executed, when leaves - just his normal config as it wouldn't even be accesed. And those were only the examples I could think of that moment.
I was wrong about sv_mincmdrate/sv_maxcmdrate. See this thread: https://github.com/ValveSoftware/steam-for-linux/issues/1640
Maybe a different thread should be opened about interp. I don't think the server should be able to mess with the client interp tbh, but it would be better if interp would automatically be set to the correct value depending of cl_updaterate, and that the client wouldn't be able to change it. A lot of people are playing with the default interp and that cause people to feel that they've been shoot "behind walls".
EDIT: Interp: https://github.com/ValveSoftware/steam-for-linux/issues/1644
i don't really see your problem, @AnAkIn1
If they make it so that the settings don't write to the config and change back once you leave the server, everyone is happy and mods don't get broken which I agree is important.
Doesn't matter about gamma and brightness since you can edit such things on your gpu driver.
It seems that @alfred-valve will disallow server side changes of your client settings (actual harmless changes if you know how to setup correctly your config). So I would appreciate additional server side cvars which will overwrite client side cvars like sv_maxupdaterate and sv_minupdaterate does.
Settings which would be useful to have as server side limits: cl_cmdrate - sometimes it gets edited by servers to compensate lags on client side if requested ex_interp - sometimes it gets edited by servers to compensate lags on client side if requested rate - sometimes it gets edited by servers to compensate lags on client side if requested cl_minmodels - sometimes it must be disabled for some 3rd party plugins to work properly cl_weather - sometimes it must be enabled for some 3rd party plugins to work as intended hud_centerid - sometimes it must be disabled for some 3rd party plugins to work as intended net_graph - sometimes it gets edited by servers to prevent hints (mostly attached for eSport)
Probably there are more to be added, lets do some brainstorming.
OFFTOPIC: I give up. Its not that hard to edit your userconfig.cfg instead of config.cfg. Its very common that people are using cs default config, although you can read inside of the file.
// This file is overwritten whenever you change your user settings in the game.
// Add custom configurations to the file "userconfig.cfg".
As I stated in multiple requests/issues, I've had never an issue with slowhacking. There are at least two sorts of "slowhacking".
1 - the harmless changes: This includes server side changes of your client settings. A good coder will backup/store your settings regardless of your usage of the config.cfg although you should use an userconfig.cfg. If you gonna leave the server this backup will be executed. Well, there is a small risk that your connection get interrupted. That's not a big deal, just reload your userconfig.cfg (which includes all your default settings). If you wanna call this slowhack then the engine itself is slowhacking since it is changing your whole config.cfg. That's why people set it on read only.
Your settings get messed up by an evil admin? That's still harmless. Just reload your userconfig.cfg (which includes all your default settings).
2 - the harmful changes - the actual slowhack: This includes server side changes of your gamedir-files. So changes you can't return with a simple load of the userconfig.cfg. Some of this slowhacks will change your game menu in order to add hotlinks to their servers. I think that's the most common you will experience. Such changes can't be performed by the original mp.dll. You can't prevent this since the bad seed is using a modded mp.dll and they will continue.
According to my experience the majority of such a harmful slowhack comes from countries like Latvia and Russia. Well the modded mp.dll is part of the non-steam version, so it makes sense.
The best solution in my opinion is to add a new command like "load_defaults" (config_defaults.cfg). If you type this command in your console then all settings will be set to default values counter-strike comes with. Any changes you entered by yourself, should be addressed to your userconfig.cfg.
@AnAkIn1 it seems you are connecting to hundreds of (non-steam) servers every day. Are you from Russia? I just ask because there are really many many non-steam servers which will slowhack your gamedir-files.
And I want my settings changed automatically if its needed to experience the whole feeling of a mod. For example:
- ZombieMod with default ct/t skins? Great feeling ^^
- Winter themed maps without (random) snow? Great feeling ^^
- A bandwidth hungry server without even an optimizing for net settings? Great, I'm usually to lazy to change those mod specific settings manually. Some other guys don't know how to do it.
I call this "user friendly" if those settings gets restored to their previous values.
@mikela-valve this could use a look into. some client commands can be... problematic when running an specific mod, would be pretty useful.
Please god no, you are ruining the game. In fact they should do the opposite, add settings to prevent servers from changing your skins and obnoxious things like that.