OpenArena Message Boards

OpenArena => General => Topic started by: tosk1 on February 22, 2010, 05:23:06 AM



Title: How to make random FFA games
Post by: tosk1 on February 22, 2010, 05:23:06 AM
I have a nice stash of maps, but don't like having to set up a new game every time I want to change the map.
Is there a command line phrase I can either run in console, or open OA with, that will set up a game with 5 or 6 random bots on a random map and rotate the maps after every game?


Title: Re: How to make random FFA games
Post by: RMF on February 22, 2010, 02:01:15 PM
random won't be possible (afaik), but you can make a map rotation. Put something like this in maps.cfg (in the baseoa directory)
Code:
bots_enable 1 // not sure if this is the right variable! could also be bot_enable or bots_enabled
bot_minplayers 5
set m1 "map oasago2; set nextmap m2;"
set m2 "map pul1ctf; set nextmap m3"
set m3 "map ps37ctf; set nextmap m4"
set m4 "map speedyctf; set nextmap m5"
set m5 "map pul1ctf; set nextmap m6";
set m6 "map ctf_gate1; set nextmap m7";
set m7 "map speedyctf; set nextmap m1";

vstr m1;
then when openarena is open put this in the console: /exec maps.cfg

this can be expanded a lot (could give some examples if you need) but the basic idea should be working :)


Title: Re: How to make random FFA games
Post by: RMF on February 22, 2010, 05:22:48 PM
Ups (no editbutton on cell), replace the mapnames with ffa maps :P And maybe put g_gametype 0 in to make sure it is ffa


Title: Re: How to make random FFA games
Post by: tosk1 on February 23, 2010, 04:20:26 AM
Cheers dude :) I'll have a tinker with that later