howto override Game-Modes?

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

howto override Game-Modes?

Postby ZyanKLee » Sat Jun 23, 2007 7:54 am

Hey,

I noticed that some maps change the game mode through their mapcfg. Is there a possibility to disallow that or at least to switch it back, when the next map is loaded? Something like
set "g_gamemode_override" "none"



Code: Select all
$ grep -R g_minstagib *.mapcfg
dm_evilminsta.mapcfg:set g_minstagib 1
dm_minstarena.mapcfg:set g_minstagib 1

$ grep -R g_rocketarena *.mapcfg
dm_suicidebooth-0.1.mapcfg:g_rocketarena 1
ZyanKLee
Alien
 
Posts: 151
Joined: Sun Feb 18, 2007 8:58 pm
Location: Germany

Postby tChr » Sat Jun 23, 2007 8:09 am

this is not a problem if all mapcfgs explicitly set theyr gamemode, wich is the easier solution.
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Postby ZyanKLee » Sat Jun 23, 2007 9:55 am

tChr wrote:this is not a problem if all mapcfgs explicitly set theyr gamemode, wich is the easier solution.

which is not the case in MOST maps, afaik
ZyanKLee
Alien
 
Posts: 151
Joined: Sun Feb 18, 2007 8:58 pm
Location: Germany

Re: howto override Game-Modes?

Postby Nil » Sat Jun 23, 2007 10:02 am

ZyanKLee wrote:maps change the game mode through their mapcfg. Is there a possibility [...] to switch it back, when the next map is loaded?
I've used exit cfgs for that (see Docs/mapping.txt).
Nil
Advanced member
 
Posts: 81
Joined: Wed Mar 01, 2006 5:10 pm

Postby ZyanKLee » Sat Jun 23, 2007 10:05 am

IF I would insert a line like this to server.cfg:
set "exit_cfg" "std-exit.cfg"

would it be executed at every map-exit? Or does it ONLY work in the mapcfg ?
ZyanKLee
Alien
 
Posts: 151
Joined: Sun Feb 18, 2007 8:58 pm
Location: Germany

Postby Nil » Sat Jun 23, 2007 10:19 am

ZyanKLee wrote:If I would insert a line like this to server.cfg:
set "exit_cfg" "std-exit.cfg"

would it be executed at every map-exit? Or does it ONLY work in the mapcfg ?
It gets executed once but after the map changed exit_cfg is reset to "empty.cfg". So having a data/empty.cfg works. :)
Nil
Advanced member
 
Posts: 81
Joined: Wed Mar 01, 2006 5:10 pm

Postby ZyanKLee » Sat Jun 23, 2007 10:22 am

Nil wrote:It gets executed once but after the map changed exit_cfg is reset to "empty.cfg". So having a data/empty.cfg works. :)


Sounds great ;) thanks

EDIT: and it works like a charm
ZyanKLee
Alien
 
Posts: 151
Joined: Sun Feb 18, 2007 8:58 pm
Location: Germany


Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron