[Solved] Load rotation based on g_gametype?
Is it possible to make the server load different rotations based on what gametype is set?
Like "g_gametype 0" loads rotation0.txt "g_gametype 1" load rotation1.txt etc.
I have tried, but am failing miserably at scripting I am afraid...
BTW. Nice to meet you all
I discovered this great mod just recently and am trying to set up a private server for my friends to play.
yes, just edit callvote.txt:
gametype, g_gametype { 1 { // don't let them vote for the current gametype if ( $g_gametype != GT_FFA ) { ffa, deathmatch, 0 { // client might have used one of the alternatives like "ffa" // explicit use the number "0" instead of the variable "$" command = "set g_gametype 0; xp_rotation rotation0.txt"; } } // just the same for all other gametypes if ( $g_gametype != GT_DUEL ) { duel, tourney, tournament, 1 { command = "set g_gametype 1; xp_rotation rotation1.txt";
No way to do it without calling vote? Like checking variables and stuff?
I was hoping to be able to just start a server by using setting g_gamestyle and it loads the corresponding rotation file.
I have tried reading trough the docs and trying myself, but I suck at scripting and was hoping for someone to help me out.
I gave you an example...
and why bad callvote? any cause... else callvote.txt have commands for REF, You can make it there
if ( g_gametype == 3 ) { // TDM timelimit: 15 fraglimit: 200 capturelimit: 0 q3dm7 q3dm11 q3dm12 } else if ( g_gametype == 4 ) { // CTF timelimit: 15 fraglimit: 0 capturelimit: 10 q3ctf1 q3ctf2 q3ctf3 } else if ( g_gametype == 8 ) { // FREEZE timelimit: 15 fraglimit: 0 capturelimit: 0 q3dm11 overkill q3dm12 }
http://www.excessiveplus.net/documentation/server/rotation-system
After reading up on the syntax I came up with almost exactly that code myself.
But it will not start the rotation. It only loads the big box and not the maps on the list, no matter which g_gametype is set.
Make sure syntax is correct and no maps are missing,
Rotation should contain *.bsp names not *.pk3 names.
It may be stupid question but did you uploaded maps to root?
No way to do it without calling vote? Like checking variables and stuff?
I was hoping to be able to just start a server by using setting g_gamestyle and it loads the corresponding rotation file.
I have tried reading trough the docs and trying myself, but I suck at scripting and was hoping for someone to help me out.