Page 1 of 1

exec mods 1

Posted: Wed Sep 14, 2005 6:31 pm
by Green Beret
I searched n searched n searched, And couldnt find it, But i know i seen it here.
How would i exec my mods by typing in a console command
IE... mods 1 , Then hit enter, Then restart, And bam mods are in.
And to take them back off, mods 0 , Then hit enter, Restart, And there off?

Code: Select all


if(level.gbmods == "1")
{
thread greensfix
}
end
level waittill spawn

if (level.gbmods == "0")
end
level.mapname = getcvar (mapname)

	switch ( level.mapname )
	{
	  case "dm/mohdm1":
		{
//Southern France...mods here
		}
end

Posted: Wed Sep 14, 2005 9:22 pm
by ViPER
in your map script get your cvar and thread your mod from it -

Code: Select all

if(int(getcvar mymod) == 1)
       thread mymod_thread

Posted: Thu Sep 15, 2005 8:11 pm
by Green Beret
Thank you, And i found the old post, I think it was one of your post actually :P

Posted: Fri Sep 16, 2005 12:37 am
by ViPER
maybe these? i run two spearhead servers with dynamic mod switching that bdbodger helped me set up- over a hundred mods in rotation and i have some mods that are selected depending on how many people are on the server at end of previous map.

ill be gone - but will be back in a bit and will help anybody who is interested in setting this up themselves

http://dynamic.gamespy.com/~map/mohaa/f ... highlight=

http://dynamic.gamespy.com/~map/mohaa/f ... highlight=

Posted: Fri Sep 16, 2005 10:33 pm
by Green Beret
EDIT*

I finally figured it out :wink: