Quote:
Originally Posted by fysiks
So, I set up something like this once before here.
P.S. If anyone cares, I've created a GitHub repo for this project where I've got branches for various branches for custom versions that I've created in this thread. Currently, the master branch includes some of the requested features and is actually newer than the one in the OP (even if it does have the same version number).
|
Hi fysiks, I suggest you to add in the preconfig branch, after
executing the preconfig, add the function
server_exec(), so the .cfg is executed immediatly. I been experiencing some side-effects on my Zombie Mod X plugin because of that (I getting an old value of the cvar mp_teamlist in
plugin_precache()).
It would be better to keep everything in the polymorph folder, so please change the location of poly_preconfig.cfg. Also, do not plus one to g_iNextMod to follow the same index of .cfg mods (e.g. 0_deathrun.ini, 1_zombie)
With all these modifications, the code will look like this.
PHP Code:
// Execute pre-config
get_configsdir(szMainFilePath, charsmax(szMainFilePath))
server_cmd("exec %s/polymorph/poly_preconfig%d.cfg", szMainFilePath, g_iNextMod)
server_exec();