Settings

From Tronwiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
== Spawn Zone ==
+
WAIT_FOR_EXTERNAL_SCRIPT
  
Possible types: win, death, ball, flag, fortress, zombie, target (buggy - prone to crash your server).
+
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 ...
 +
it can be usefull 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
  
<nowiki> SPAWN_ZONE <win|death|ball|target> <x> <y> <size> <growth> <xdir> <ydir> <interactive> <r> <g> <b> <target_size>
+
RENAME_ENABLED_DEFAULT 1|0 : to set the default flag for player joining the server. if 0, players can't rename ...
SPAWN_ZONE <fortress|flag> <team> <x> <y> <size> <growth> <xdir> <ydir> <interactive> <r> <g> <b> <target_size>
+
RENAME_ENABLED 1|0 : set the default value + all players flags
SPAWN_ZONE zombie <player> <x> <y> <size> <growth> <xdir> <ydir> <interactive> <r> <g> <b> <target_size>
+
RENAME_PLAYER_ENABLED playername 1|0 : set the flag for the selected player
SPAWN_ZONE zombieOwner <player> <owner> <x> <y> <size> <growth> <xdir> <ydir> <interactive> <r> <g> <b> <target_size></nowiki>
+
RENAME_PLAYER currentname newname : rename the player from server
 +
FORCE_SPECTATING playername : force a player to spectator mode immidiatly. means the player is also killed if he's in the game
 +
ALLOW_PLAYER_TO_JOIN_DEFAULT 1|0 : set the default value for player joining the server
 +
ALLOW_PLAYER_TO_JOIN player_name 1|0 : set the player flag to allow him join the game
  
Instead of <x> <y> one can write: L <x1> <y1> <x2> <y2> [...] Z
+
RENAME_ENABLED <1> [<player>] : set (the default value and all players flags) or a specific player flag. default value is 1.
This will allow you to have the zone follow a set path. It will continue to use the same initial speed.
+
RENAME_PLAYER <player> <newname> : to rename the player from script
 +
FORCE_SPECTATING <player> : force a player to spectator mode immidiatly. means the player is also killed if he's in the game
  
===team===
+
LOGIN_REQUIRED <1> [<player>]: set (the default value and all players flags) or a specific player flag . default value is 0.
<team> must be the team name or anything else if you want to ignore the param. It is mandatory for flag and fortress type.
+
If you spell it incorrectly, it links the zone to the closest player team(default behavior).
+
===cordinates (x,y)===
+
<pos_x>, <pos_y>, self explanatory. Of course it depends of the map
+
===size===
+
<size> is the radius of the zone
+
===growth===
+
<growth> is the growing factor of the zone.
+
===speed===
+
<dir_x>, <dir_y> is the speed vector, to make the zone move all alone Wink
+
===interactive===
+
<bouncing_flag> is a boolean. true or false (still case sensitive). If true, it makes the zone bounce on the rim walls
+
===colour===
+
<red>, <green>, <blue> are the colour component for the zone between 0 and 15. If not specified, it will be white.
+
If the zone is linked to a team, the color will be the team color whatever you set here.
+
 
+
== Examples ==
+
 
+
spawn_zone death 200 300 10 0.5 0 30 true 0 0 15 20
+
 
+
This would spawn a death zone with the following attributes...
+
coordinate x=200, y=300
+
size radius=10
+
growth=0.5
+
speed along x=0
+
speed along y=30
+
It will bounce of walls
+
colour=blue
+
max radius it will grow to=20
+

Revision as of 12:15, 8 August 2007

WAIT_FOR_EXTERNAL_SCRIPT

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 ... it can be usefull 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

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 RENAME_PLAYER_ENABLED playername 1|0 : set the flag for the selected player RENAME_PLAYER currentname newname : rename the player from server FORCE_SPECTATING playername : force a player to spectator mode immidiatly. means the player is also killed if he's in the game ALLOW_PLAYER_TO_JOIN_DEFAULT 1|0 : set the default value for player joining the server ALLOW_PLAYER_TO_JOIN player_name 1|0 : set the player flag to allow him join the game

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 immidiatly. 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.

Personal tools