PDA

View Full Version : [L4D2] CVars resetted on server hibernation


Robotex
04-25-2016, 13:34
I own a l4d2 versus dedicated server which runs fine when there are players on it.
However when everyone lefts and server goes in hibernation, it seems to reset some cvars back to default, which is causing me troubles unless I restart the server or the map is forced to change from a new lobby game.
How I can prevent this?
Here are listed some of the cvars affected that I set in server.cfg:
sm_cvar sb_all_bot_game 1
sm_cvar z_spitter_health "300"
sm_cvar z_charger_health "1650"
sm_cvar z_jockey_health "960"
sm_cvar z_gas_health "744"
sm_cvar z_charge_duration "5"
sm_cvar z_hunter_max_pounce_bonus_damage "60"

Thanks in advance.

>Update:
I think I found the cause, commenting out sv_allow_lobby_connect_only 0 let the server.cfg load again even after hibernation.
But now I need help to block people from changing the server gamemode into else not in sv_gametypes, because I noticed if I pick a not allowed gamemode and select dedicated steam group server in lobby, the server loads that gamemode despite not being in sv_gametypes!