diff --git a/docs/reference.xml b/docs/reference.xml index 4c8e83ed..c891fd6f 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -1,5 +1,12 @@ - - + + + + @@ -7,10 +14,17 @@ See reference.xsd and types.xsd before editing this file. --> + + + + This reference describes the commands and variables available in AssaultCube. +
This section describes identifiers that are closely related to the CubeScript language. @@ -266,44 +280,12 @@
+
This section describes general identifiers. - - Calls a vote on the server. - - This command is wrapped by aliases for better usability. See config/admin.cfg for actual uses. - - - - - - - - - Claims or drops admin status. - - - Successfully claiming admin status makes all other player votes invalid. - Failed logins result in an auto kick. - The admin is granted the right to kick, ban, remove bans, set autoteam and change the mastermode. - In the scoreboard, the admin is marked red. - - - - - - - - - - - - - - Toggles the console. @@ -312,109 +294,6 @@ - - Kicks a specified player from the server. - - - - - - - - - Bans a specified player from the server. - - - The ban duration is fixed to 20 minutes. - - - - - - - - - - - - Removes all bans on the server. - - - - - - - Sets the automated team assignment. - - - - - - - - - Sets the mastermode for the server. - - - If the mastermode is set to 'private', no more clients can join the server. - Default is 'open' that allows anyone to join the server. - - - - - - - - - - - Forces a specified player to join the enemy team. - - - - - - - - - Gives the admin state to the specified player. - - - Requires admin state. The admin will lose his admin state after successfully issuing this command. - - - - - - - - - - - Loads up a map in the gamemode set previously by the 'mode' command. - - - If connected to a multiplayer server, votes to load this map (others will have to type "map M" as well to agree with loading this map). To vote for a map with a specific mode, set the mode before you issue the map command (see multiplayer menu). - - - A map given as "blah" refers to "packages/base/blah.cgz", "mypackage/blah" refers to "packages/mypackage/blah.cgz". - At every map load, "config/default_map_settings.cfg" is loaded which sets up all texture definitions, etc. Everything - defined in there can be overridden per package or per map by creating a "package.cfg" or "mapname.cfg" which - contains whatever you want to do differently from the default. - - - When the map finishes it will load the next map when one is defined, otherwise reloads the current map. - You can define what map follows a particular map by making an alias like (in the map script): alias nextmap_blah1 blah2 - (loads "blah2" after "blah1"). - - - TODO: multiplayer voting - - - - - - Triggers a jump. @@ -581,7 +460,8 @@ - + @@ -661,9 +541,6 @@ - - - Specifies if the AC client process should run under high priority. @@ -842,203 +719,13 @@
+
This section describes gameplay related identifiers. - - Starts a map with the mode "Capture the Flag" - - - - ctf ac_mines - - - - - - - - - - Starts a map with the mode "Keep the Flag" - - - - ktf ac_mines - - - - - - - - - - Starts a map with the mode "Team keep the Flag" - - - - tktf ac_mines - - - - - - - - - - - Starts a map with the mode "Hunt the Flag" - - - - htf ac_mines - - - - - - - - - - - Starts a map with the mode "Team Deathmatch" - - - - tdm ac_complex - - - - - - - - - - - Starts a map with the mode "Deathmatch" - - - - dm ac_complex - - - - - - - - - - Starts a map with the mode "Co-op edit" - - - See the co-op edit section in page 4 of the map editing guide for more information. - - - - - - coop ac_newmap - - - - - - - - - - Starts a map with the mode "Last man standing" - - - - lms ac_complex - - - - - - - - - - Starts a map with the mode "Team survivor" - - - - ts ac_complex - - - - - - - - - - Starts a map with the mode "Pistol frenzy" - - - - pf ac_complex - - - - - - - - - - Starts a map with the mode "Last swiss standing" - - - - lss ac_complex - - - - - - - - - - - Starts a map with the mode "One shot, One kill" - - - - osok ac_complex - - - - - - - - - - Starts a map with the mode "Team one shot, One kill" - - - - tosok ac_complex - - - - - - - - Returns 1 if the local player is alive. @@ -1096,7 +783,7 @@ - + @@ -1235,47 +922,6 @@ - - Sets the gameplay mode to N for the next map loaded. You will need to define mode before loading the map or it will - stay as the last mode played. - - - - - - - - - - - - - - - - - - - - - - - - Sends the current map to the server and sends other players a message about it. - - - If the map argument is specified, the map is first saved and then reloaded before sending it. - Note its always required to be on the map one wants - to send before issuing this command! - - - - - - - - - Retrieves the last map that was sent to the server using 'sendmap'. @@ -1324,7 +970,7 @@ - Shifts the camera to an other demo player + Shifts the camera to another demo player @@ -1400,6 +1046,7 @@
+
@@ -1452,7 +1099,8 @@ - + Default keys are the six keys above the cursor keys, which each 2 of them cycle one type (and numpad 7/4 for upper). @@ -2302,7 +1950,7 @@ Turns on or off crosshair effects. - When on, the crosshair will go grey when the weapon is reloading, orange when health se 50 or red when se 25. + When on, the crosshair will go grey when the weapon is reloading, orange when health is 50 or red when is 25. @@ -2795,5 +2443,395 @@
+ +
+ This section lists commands used by the client that communicate to the server. + Most are used for server administration. + Some commands listed below can also be used locally (for example, changing maps). + + + + + Calls a vote on the server. + + This command is wrapped by aliases for better usability. See config/admin.cfg for actual uses. + + + + + + + + + + Claims or drops admin status. + + + Successfully claiming admin status makes all other player votes invalid. + Failed logins result in an auto kick. + The admin is granted the right to kick, ban, remove bans, set autoteam, set shuffleteam, change server + description (if enabled), change map, change mastermode, force team, change mode, record demos, stop demos + and clear demo(s) - All without needing votes from other users. + In the scoreboard, the admin will be shown as a red colour. + + + + + + + + + + + + + + + + + Kicks a specified player from the server. + + + + + + + + + + Bans a specified player from the server. + + + The ban duration is fixed to 20 minutes. + + + + + + + + + + + + + Removes all bans on the server. + + + + + + + + Sets the automated team assignment. + + + + + + + + + + Sets the mastermode for the server. + + + If the mastermode is set to 'private', no more clients can join the server. + Default is 'open' that allows anyone to join the server. + + + + + + + + + + + + Forces a specified player to join the enemy team. + + + + + + + + + + Gives the admin state to the specified player. + + + Requires admin state. The admin will lose his admin state after successfully issuing this command. + + + + + + + + + + + + Loads up a map in the gamemode set previously by the 'mode' command. + + + If connected to a multiplayer server, votes to load this map (others will have to type "map M" as well to agree with loading this map). To vote for a map with a specific mode, set the mode before you issue the map command (see multiplayer menu). + + + A map given as "blah" refers to "packages/base/blah.cgz", "mypackage/blah" refers to "packages/mypackage/blah.cgz". + At every map load, "config/default_map_settings.cfg" is loaded which sets up all texture definitions, etc. Everything + defined in there can be overridden per package or per map by creating a "package.cfg" or "mapname.cfg" which + contains whatever you want to do differently from the default. + + + When the map finishes it will load the next map when one is defined, otherwise reloads the current map. + You can define what map follows a particular map by making an alias like (in the map script): alias nextmap_blah1 blah2 + (loads "blah2" after "blah1"). + + + TODO: multiplayer voting + + + + + + + + + Starts a map with the mode "Capture the Flag" + + + + ctf ac_mines + + + + + + + + + + Starts a map with the mode "Keep the Flag" + + + + ktf ac_mines + + + + + + + + + + Starts a map with the mode "Team keep the Flag" + + + + tktf ac_mines + + + + + + + + + + Starts a map with the mode "Hunt the Flag" + + + + htf ac_mines + + + + + + + + + + Starts a map with the mode "Team Deathmatch" + + + + tdm ac_complex + + + + + + + + + + + Starts a map with the mode "Deathmatch" + + + + dm ac_complex + + + + + + + + + + Starts a map with the mode "Co-op edit" + + + See the co-op edit section in page 4 of the map editing guide for more information. + + + + + + coop ac_newmap + + + + + + + + + + Starts a map with the mode "Last man standing" + + + + lms ac_complex + + + + + + + + + + Starts a map with the mode "Team survivor" + + + + ts ac_complex + + + + + + + + + + Starts a map with the mode "Pistol frenzy" + + + + pf ac_complex + + + + + + + + + + Starts a map with the mode "Last swiss standing" + + + + lss ac_complex + + + + + + + + + + + Starts a map with the mode "One shot, One kill" + + + + osok ac_complex + + + + + + + + + + Starts a map with the mode "Team one shot, One kill" + + + + tosok ac_complex + + + + + + + + + + Sets the gameplay mode to N for the next map loaded. You will need to define mode before loading the map or it will + stay as the last mode played. + + + + + + + + + + + + + + + + + + + + + + + + + Sends the current map to the server and sends other players a message about it. + + + If the map argument is specified, the map is first saved and then reloaded before sending it. + Note its always required to be on the map one wants + to send before issuing this command! + + + + + + + + + + + +