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.