if yes, would this be within the mapcfg file?
If I set one map to a specific gravity, do I then have to define gravity for the rest of the maps? Or will the rest of the maps just take the settings from the server.cfg?
thanks

Moderators: Nexuiz Moderators, Moderators
set fraglimit 30
set timelimit 20
set sv_gravity_save $sv_gravity
set sv_gravity 200
set exit_cfg <your.exitcfg>
changelevel <mapname>
set sv_gravity $sv_gravity_save
---------------
-ii. exit cfgs-
---------------
In order to solve our laser jumping problem, we need to call upon another feature of mapcfgs -- map exit scripts or "exit cfgs". These are called when the map is changing, before the next map's mapcfg is run. You can use them to clean up any special changes you've made so they won't affect the next map.
For our laser jumping example, we could do something like this:
// set up the exit cfg so we can reset values to what they were before
set exit_cfg "maps/dom_wazat1_exit.cfg"
// make a backup
set BACKUP_g_balance_laser_force $g_balance_laser_force
// map-customized values here
set g_balance_laser_force 100
// and on with the rest of the config
set g_domination 1 // turn on domination
set fraglimit 100 // 100 points to win
set timelimit 15 // 15 minute max round time
set changelevel wazat1 // now change level
cd loop "8" // play music
Then we would make the exit cfg, named "dom_wazat1_exit.cfg":
// reset laser damage
set g_balance_laser_force $BACKUP_g_balance_laser_force
When my wazat1 map is run in domination, the laser's force will only be 100. However, before the map changes, it gets set back to what it was before. This is because the original value was stored in BACKUP_g_balance_laser_force, then BACKUP_g_balance_laser_force was copied back into g_balance_laser_force when the exit cfg ran.
You can set all kinds of values like this, including fog and gameplay options.
Users browsing this forum: No registered users and 1 guest