Q3A Server Map Rotation CFG. Need Help.

Locked
G-Stuff002
Posts: 55
Joined: Tue Oct 11, 2016 4:22 pm

Q3A Server Map Rotation CFG. Need Help.

Post by G-Stuff002 »

I wont to combining CTF & FFA maps in one CFG file for map rotation. How to do it ? And on CTF maps the blue and red team have 2 bot's auto join. Skill must be Hardcore. On FFA maps without bot's.

I make a script but it not work correctly. First map wtf-q3a-3 is CTF. Second map dc_map06 is FFA. They's loading incorrect and CTF map loading without bot's..

Someone help me ?

//0 = OFF
//1 = ON
//seta g_teamAutoJoin 1
//seta g_teamForceBalance 0
//seta g_gametype 4 // Capture the Flag
//seta g_gametype 0 // Free For All
//seta g_friendlyFire 0
//seta sv_maxclients 20

set d1 "map wtf-q3a-3; set g_gametype 4; capturelimit 5; set bot_enable 1; g_spskill 4; seta g_teamAutoJoin 1; set nextmap vstr d2"
set d2 "map dc_map06; set g_gametype 0; fraglimit 20; set nextmap vstr d1"
vstr d1
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Q3A Server Map Rotation CFG. Need Help.

Post by Eraser »

You'll need to set bot_minplayers 2 as well (I think that adds 2 bots per team, otherwise use 4)
G-Stuff002
Posts: 55
Joined: Tue Oct 11, 2016 4:22 pm

Re: Q3A Server Map Rotation CFG. Need Help.

Post by G-Stuff002 »

When i exec maprotation.cfg 1-st map loading as FFA but must should be loading as CTF
G-Stuff002
Posts: 55
Joined: Tue Oct 11, 2016 4:22 pm

Re: Q3A Server Map Rotation CFG. Need Help.

Post by G-Stuff002 »

Eraser PLEASE, can you edit correctly all my script ?
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Q3A Server Map Rotation CFG. Need Help.

Post by Eraser »

You'll need to put the map command last in each list of commands. They are executed in order, so now it'll load map wtf-q3a-3 and after loading the map, it changes the other vars. A change in gametype will only be applied when the map is changed, so you want to change the gametype first and then change the map:

set d1 "set g_gametype 4; capturelimit 5; set bot_enable 1; g_spskill 4; seta g_teamAutoJoin 1; map wtf-q3a-3; set nextmap vstr d2"
set d2 "set g_gametype 0; fraglimit 20; map dc_map06; set nextmap vstr d1"
G-Stuff002
Posts: 55
Joined: Tue Oct 11, 2016 4:22 pm

Re: Q3A Server Map Rotation CFG. Need Help.

Post by G-Stuff002 »

It's work! thx Eraser !! This is all script:

set d1 "set g_gametype 4; capturelimit 5; set bot_enable 1; set bot_minplayers 2; g_spskill 4; seta g_teamAutoJoin 1; map wtf-q3a-3; set nextmap vstr d2"
set d2 "set g_gametype 0; fraglimit 20; set bot_enable 0; map dc_map06; set nextmap vstr d1"
vstr d1
Locked