View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-05-2015 , 20:36   Re: Polymorph: Mod Manager
Reply With Quote #839

Quote:
Originally Posted by SamuelKPeter View Post
Hi Fysiks,
Is there any way to set up mods with cvars that are defined before the map changes?
An example: In Half-Life Deathmatch, there is a common cvar named "mp_teamplay" (0/1) which defines whether the match is played on teams or not. Of course, Once you change this cvar's value the server needs to be restarted in order for this to work.

Because of this, a teams-enabled mod running after a mod with it disabled will also run with it disabled. If Polymorph could set this cvar up at least during the server's chattime period, then it would work as intended. I know this sounds too specific, but there might be other cvars that work this way as well.
Ok, so here is a really quick "patch" to add this functionality. Create a file called "poly_preconfig#.cfg" where you replace the # with the number of the mod as shown in the output of the amx_nextmod command. The file should be in your mod directory (/cstrike/ for Counter-Strike).
Attached Files
File Type: sma Get Plugin or Get Source (polymorph.sma - 513 views - 26.7 KB)
__________________
fysiks is offline