Can this map rotation be done?


(Pegger) #1

If the allies win map ‘A’, you then go on to play map ‘B’, but if the axis win, then you go on to play map ‘X’. Just thinking of a campaign, but trying to keep the “campaign story” on track.


(cremator) #2

Woah, I had the SAME EXACT idea a few days ago. Im curious to see if anyone from SD will answer this so I know…


(*[SfS]*OpTeRoN) #3

I’ve thought about this too, it would be real nice if it could be done.

Could it be possible to do something like this:

set d1 "set g_gametype 2 ; map oasis ; if wm_setwinner 0; set nextmap vstr d2; else set nextmap d5"
set d2 "set g_gametype 2 ; map battery ; if wm_setwinner 1; set nextmap vstr d3; else set nextmap d4"
set d3 "set g_gametype 2 ; map goldrush ; set nextmap vstr d4"
set d4 "set g_gametype 2 ; map radar ; set nextmap vstr d5"
set d5 "set g_gametype 2 ; map railgun ; set nextmap vstr d6"
set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d1"
vstr d1

The “if wm_setwinner 0” tells the game that the Axis won and should go to the second map.
I don’t know if that would work though.


(JIM_BOB7813) #4

I think I remember it being asked before, and Sock said it wasn’t possible.
Not 100% sure. :???:


(DeAtHmAsTeR) #5

ye he did say it wasnt possible. but i do not remember the reason why not.


(*[SfS]*OpTeRoN) #6

Probably because the engine wouldn’t understand it. :blah:


(redfella) #7

I dont see what the big prob is… How much simplier could a line of code be? IF this happens do this, OR IF this happens do this… Whats the prob?


(DeAtHmAsTeR) #8

i think it is something to do with the server rotation changing mid way throught a map cycle which is wrong, but i dont know.