Settings
(→SET_ZONE_POSITION zone_name <x> <y>) |
|||
| Line 18: | Line 18: | ||
=set the flag for the selected player | =set the flag for the selected player | ||
===Special Settings for Influencing Zones== | ===Special Settings for Influencing Zones== | ||
| − | ==SET_ZONE_POSITION | + | ==SET_ZONE_POSITION <zone> <x> <y>== |
| − | Allow you to set a new position for a zone, relative to its current position.eg:<br> | + | Allow you to set a new position for a zone or group of zones, relative to its current position.eg:<br> |
spawn_zone n group1 target 100 100 10 | spawn_zone n group1 target 100 100 10 | ||
spawn_zone n group1 target 100 200 10 | spawn_zone n group1 target 100 200 10 | ||
| Line 38: | Line 38: | ||
set_zone_position zoneA 100 100 100 100 | set_zone_position zoneA 100 100 100 100 | ||
will stop the zone at the desired location(100,100). | will stop the zone at the desired location(100,100). | ||
| + | |||
==COLLAPSE_ZONE <zone>== | ==COLLAPSE_ZONE <zone>== | ||
kill the specified zone or group of zones. | kill the specified zone or group of zones. | ||
Revision as of 16:31, 3 October 2007
Settings Accessible via console/script
Not to be used in settings_dedicated.cfg or similar config file.
Some may work there, use with caution.
SPAWN_ZONE
The ability to spawn all different types of zones via the command line or a script.
See the SPAWN_ZONE page for details.
RENAME_ENABLED <1> [<player>]
set (the default value and all players flags) or a specific player flag. default value is 1.
RENAME_PLAYER <player> <newname>
to rename the player from script
FORCE_SPECTATING <player>
force a player to spectator mode immediately. means the player is also killed if he's in the game
LOGIN_REQUIRED <1> [<player>]
set (the default value and all players flags) or a specific player flag . default value is 0.
ALLOW_PLAYER_TO_JOIN player_name 1|0
set the player flag to allow him join the game
RENAME_PLAYER_ENABLED playername 1|0
=set the flag for the selected player
=Special Settings for Influencing Zones
SET_ZONE_POSITION <zone> <x> <y>
Allow you to set a new position for a zone or group of zones, relative to its current position.eg:
spawn_zone n group1 target 100 100 10 spawn_zone n group1 target 100 200 10 spawn_zone n group1 target 100 300 10 set_zone_position group1 50 0 50 50 0 50 0 0
will make the 3 zones describe a square.
The speed is fixed by the first move : it will be done in 1s. So if you try
set_zone_position zoneA 100 0 100 100 0 100 0 0 and set_zone_position zoneA 50 0 100 0 100 100 0 100 0 0
the 2 cases discribe the same square but the 2nd one will be 2 times slower
this is a route using spawn_zone functionnality so :
set_zone_position zoneA 100 100
will move the zone to 100,100 then back to it original location.
To stop it, I've made the route to stop if 2 points next to each other are identical. so:
set_zone_position zoneA 100 100 100 100
will stop the zone at the desired location(100,100).
COLLAPSE_ZONE <zone>
kill the specified zone or group of zones.
SET_ZONE_RADIUS <zone> <radius> <growth_rate>
Change the radius and growth rate of zone or group of zones.
Universal Settings available
WAIT_FOR_EXTERNAL_SCRIPT 1|0
default is false
set it to 1 and the server stop at the end of the round and wait for the script to turn this setting back to 0 ...
Make sure you have it under control by your script, or it will render your server unusable.
it can be useful in many cases :
- map rotation/mode rotation at the end so we know if round was win or draw
- preparing the next map for race script so the script is not impacting the game (it use to be the case for race to winzone on marathon)
- updating the ladder
- sending messages to users
CYCLE_SPEED_MAX <int>
Default 100000. Unlike CYCLE_SPEED_MIN, which is "Minimal speed of your cycle, measured relative to CYCLE_SPEED". This is an int which is the actual maximum speed of your cycle. Things get ugly if you set CYCLE_SPEED_MAX < CYCLE_SPEED, but then they would.
ALLOW_PLAYER_TO_JOIN_DEFAULT 1|0
set the default value for player joining the server
RENAME_ENABLED_DEFAULT 1|0
to set the default flag for player joining the server. if 0, players can't rename ...
RENAME_ENABLED 1|0
set the default value + all players flags
Special Settings for Target Zone
TARGET_LIFETIME <int>
default: -1. -1 means no limit. A positive value means the zone will collapse alone after n sec even if no one conquers it.
TARGET_SURVIVE_TIME <int>
default: 10. value <=0 means no limit. a positive value means the zone will remains n sec before collapsing after the first player enter the zone.
TARGET_INITIAL_SCORE <int>
default: 10. means the first player will win 10 pts.
TARGET_SCORE_DEPLETE <int>
default: 2. means the score for next player will be decrease by 2. second player will get 8 pts, 3rd 6 pts ...
TARGET_DECLARE_WINNER <bool>
default: 1. means the last target conquest declare winner (first player entering the last target zone is the winner) So if you want infinite zone, just to catch the enter/left message, just set them to -1, -1, 0, 0, 0 ... and here it is, you have a switch in your map !