View Single Post
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 05-07-2012 , 01:36   Re: MapEnd 3cvars_reset
Reply With Quote #5

Hi,

It's true that this way, admins could put all the commands they would want in a cfg file to be executed at map end, instead of being restricted to the 3 cvars I chose/needed.
So I should do something like:
Code:
ServerCommand ("exec sourcemod/mapend_commands.cfg")
and provide an empty mapend_commands.cfg file that admins could edit.

But for now I don't know if the exec command can be called OnMapEnd. I have to test it.

I don't think admins would want to execute all commands written in server.cfg, or even just a few more commands than gravity, physcale and pushscale, at map end.
You have to keep in mind that the 3 cvars mentionned above are some of the few cvars (if not the only ones), causing pbs on CS:S.
It's kind of a "known bug": these cvars need to be set just before mapchange... All other cvars are set correctly at nextmap if they are in the server.cfg.

Last edited by St00ne; 05-07-2012 at 11:56.
St00ne is offline