brxce / Gauntlet

NOTE - Currently on hiatus. L4D2 Coop with improved Special Infected AI. Inspired by PenPen's HardAlways configs
GNU General Public License v3.0
29 stars 27 forks source link

r, or other for change this values, because you mark this cvars FCVAR… #2

Closed Electr0 closed 7 years ago

Electr0 commented 7 years ago

This is fix imposible change values of dublicated cvars: l4d_ready_enabled l4d_ready_cfg_name

Error in console: Can't use cheat cvar l4d_ready_cfg_name in multiplayer, unless the server has sv_cheats set to .

Because you mark cvars FCVAR_CHEAT, this do error in server console while load other config after unload hard coop config. And other configs cannot change values of this cvars because by default they NOT use sm_cvar or confogl_addcvar for this cvars. I think this very bad error for servers with more 1 configs. I replaced your a compilier error fix with a neutral solution that does not cause problems for other configs.

brxce commented 7 years ago

I am going to use FCVAR_PLUGIN flags instead, following the convention of the readyup plugin I took the cvar from : https://github.com/MatthewClair/l4d2readyup/blob/master/readyup.sp. Thank you for bringing this issue up, it explains the server name locking on a friend's server running my config.