PDA

View Full Version : custom rotations?


imported_jjbean
03-12-2004, 09:18 PM
hi guys, i know this probly been asked a million times, atleat thats what everyone says in the other posts :? but i still yet to find out how to do the way id like to.

but i wanna make a custom map rotation script that runs my custom maps,

for instance, when in game typing in console " /rcon exec custommap.cfg"

to bring up my new rotation. . this is the script i have made in attempts with no prevail

set sv_mapRotationCurrent ""
set g_gametype sd //set this to first map of rotation gametype

set sv_mapRotationcurrent "gametype sd map MOH_berlin_beta gametype hq map mp_brawl2 gametype sd map mp_falaisevilla gametype sd map portvillage gametype sd map mp_cod_lolv2 gametype sd map vieuxville gametype sd map valley gametype sd map mittenwald gametype hq map nuenen gametype sd map sealion-para-beta gametype tdm map gunassault_v1.1 gametype tdm map keil gametype tdm map mosh_Berlin_Rus gametype tdm map mp_v2_ver1 gametype sd map the_hunt gametype sd map mp_streetwar"

map MOH_berlin_beta
map_rotate

all my custom maps are in the main directory ( i atleast know that much :smile: )

but anyway, if could achieve running a custom map rotation with out hacking up my map rotations in my server.cfg, that would be what im looking for

thanks in advance to anyone who can help

Anex
03-13-2004, 04:14 AM
hi guys, i know this probly been asked a million times, atleat thats what everyone says in the other posts :? but i still yet to find out how to do the way id like to.

Yes it has been answered many times, examples have even been given...which if you read you would see your error :P

Use this setup in your config, it WILL work:


//Clear the current map rotation
set sv_mapRotationCurrent ""

//Set the map rotation to use custom maps
set sv_mapRotation "gametype hq map mp_brawl2 gametype sd map mp_falaisevilla gametype sd map portvillage gametype sd map mp_cod_lolv2 gametype sd map vieuxville gametype sd map valley gametype sd map mittenwald gametype hq map nuenen gametype sd map sealion-para-beta gametype tdm map gunassault_v1.1 gametype tdm map keil gametype tdm map mosh_Berlin_Rus gametype tdm map mp_v2_ver1 gametype sd map the_hunt gametype sd map mp_streetwar gametype sd map MOH_berlin_beta "

//establish the game type for the first map to load
set g_gametype "sd"

map MOH_berlin_beta


If this doesn't work, it's because you're doing something wrong; I have several varying rotations designed, all setup this way - both for 2 Linux and 2 Windows servers.

SUGGESTION: You will notice I moved "gametype sd map MOH_berlin_beta" to the end of your rotation. This is because you're already loading it first, so when the map rotated, it would've simply reset back to MOH_berlin_beta. Never have the map you load and the first map in sv_maprotation be the same or you will end up playing the map twice in a row. I usually take the last map in my rotation and make it the map I load first.