home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2007 September / maximum-cd-2007-09.iso / Assets / data / AssaultCube_v0.93.exe / config / docs.cfg < prev    next >
Encoding:
Text File  |  2007-06-03  |  44.4 KB  |  665 lines

  1. // auto generated script to make the doc reference readable for Cube games, see the 'docs/cuberef.txt'
  2. docsection [CubeScript]
  3.  
  4. docident [-] [Performs a subtraction.];
  5. docargument [A] [the minuend] [] [0];
  6. docargument [B] [the subtrahend] [] [0];
  7.  
  8. docident [*] [Performs a multiplication.];
  9. docargument [A] [the multiplicand] [] [0];
  10. docargument [B] [the multiplier] [] [0];
  11.  
  12. docident [+] [Performs an addition.];
  13. docargument [A] [the first summand] [] [0];
  14. docargument [B] [the second summand] [] [0];
  15. docremark [Example: echo the sum of x and y is (+ $x $y)];
  16.  
  17. docident [<] [Determines if a value is smaller than a second value.];
  18. docargument [A] [the first value] [] [0];
  19. docargument [B] [the second value] [] [0];
  20.  
  21. docident [=] [Determines if two values are equal.];
  22. docargument [A] [first value] [] [0];
  23. docargument [B] [second value] [] [0];
  24.  
  25. docident [>] [Determines if a value is bigger than a second value.];
  26. docargument [A] [the first value] [] [0];
  27. docargument [B] [the second value] [] [0];
  28.  
  29. docident [at] [Grabs a word out of a string.];
  30. docargument [S] [the string] [] [0];
  31. docargument [N] [the index of the word] [] [0];
  32. docremark [The word is saved to the alias 's'.];
  33. docexample [at "zero one two three" 2; echo $s] [output: two];
  34.  
  35. docident [concat] [Concatenates multiple strings with spaces inbetween.];
  36. docargument [S] [the first string] [] [0];
  37. docargument [...] [collection of strings to concatenate] [] [1];
  38. docremark [The newly created string is saved to the alias 's'.];
  39. docexample [alias a "hello"; concat $a "world"; echo $s] [output: hello world];
  40.  
  41. docident [concatword] [Concatenates multiple strings.];
  42. docargument [S] [the first string] [] [0];
  43. docargument [...] [collection of strings to concatenate] [] [1];
  44. docremark [The newly created string is saved to the alias 's'.];
  45. docexample [alias a "Cube"; concatword $a "Script"; echo $s] [output: CubeScript];
  46.  
  47. docident [div] [Performs a division.];
  48. docargument [A] [the dividend] [] [0];
  49. docargument [B] [the divisor] [] [0];
  50.  
  51. docident [if] [Controls the script flow based on a boolean expression.];
  52. docargument [cond] [the condition] [0 (false) or anything else (true)] [0];
  53. docargument [true] [the body to execute if the condition is true] [] [0];
  54. docargument [false] [the body to execute if the condition is true] [] [0];
  55. docexample [if (> $x 10) [ echo x is bigger than 10 ] [ else x too small ]] [];
  56.  
  57. docident [loop] [Loops the specified body.];
  58. docargument [N] [the amount of loops] [] [0];
  59. docargument [body] [the body to execute on each iteration] [] [0];
  60. docremark [This command sets the alias "i" from 0 to N-1 for every iteration.];
  61. docexample [loop 10 [ echo $i ]] [];
  62.  
  63. docident [mod] [Performs a modulo operation.];
  64. docargument [A] [the dividend] [] [0];
  65. docargument [B] [the divisor] [] [0];
  66.  
  67. docident [sleep] [Executes a command after specified time period.];
  68. docargument [N] [the amount of milliseconds] [] [0];
  69. docargument [C] [the command to execute] [] [0];
  70. docexample [sleep 1000 [ echo foo ]] [Prints 'foo' to the screen after 1 second.];
  71.  
  72. docident [strcmp] [Determines if two strings are equal.];
  73. docargument [A] [the first string] [] [0];
  74. docargument [B] [the second string] [] [0];
  75.  
  76. docident [while] [Loops the specified body while the condition evaluates to true.];
  77. docargument [cond] [the condition] [0 (false) or anything else (true)] [0];
  78. docargument [body] [the body to execute on each iteration] [] [0];
  79. docremark [This command sets the alias "i" from 0 to N-1 for every iteration. Note that the condition here has to have [], otherwise it would only be evaluated once.];
  80. docexample [alias i 0; while [ (< $i 10) ] [ echo $i; alias i (+ $i 1) ]] [];
  81.  
  82. docsection [Gameplay]
  83.  
  84. docident [connect] [Connects to a server.];
  85. docargument [N] [the (dns) name or ip of the server] [] [0];
  86. docargument [P] [the server password] [] [0];
  87. docremark [If the server name ist omitted, the client will try to connect to an available server in the LAN.];
  88. docexample [connect 127.0.0.1 myServerPassword] [];
  89.  
  90. docident [connectadmin] [Connects to a server and tries to claim admin state.];
  91. docargument [N] [the (dns) name or ip of the server] [] [0];
  92. docargument [P] [the admin password] [] [0];
  93. docremark [This command will connect to a server just like the command 'connect' and try to claim admin state. If the specified password is correct, the admin will be able to connect even if he is locked out by ban, private master mode or taken client slots. If successfully connected, bans assigned to the admin's host will be removed automatically. If all client slots are taken a random client will be kicked to let the admin in.];
  94. docremark [If the server name ist omitted, the client will try to connect to an available server in the LAN.];
  95. docexample [connect 127.0.0.1 myAdminPassword] [];
  96.  
  97. docident [demo] [Plays a recorded demo.];
  98. docargument [S] [the demo name] [] [0];
  99. docremark [Playback is interpolated for the player whose perspective you view.];
  100.  
  101. docident [demodelaymsec] [Changes the demo playback delay.];
  102. docargument [D] [delay in milliseconds] [min 0/max 500/default 120];
  103. docremark [Only touch if you know what you are doing: changes the delay in msec with which the demo is played back to allow for interpolation. Default is 100, if you decrease it you will most likely just get choppier (it will obstruct the spline interpolation) for an unnoticable bit less lag. Increase it if you notice choppyness in playback, should not be needed in general, but may help if you insist on playing back demos at very low demoplaybackspeed.];
  104.  
  105. docident [demoplaybackspeed] [Sets the playback speed for a demo.];
  106. docargument [P] [the playback speed] [min 10/max 1000/default 100];
  107. docremark [To see the effect, the variable must be set before playing a demo.];
  108.  
  109. docident [demoplayer] [Shifts the camera to an other demo player];
  110. docargument [N] [the shift direction] [1 (forwards), -1 (backwards)] [0];
  111.  
  112. docident [demotracking] [Specifies if particles should be emitted on demo players position.];
  113. docargument [B] [sets the demo tracking state] [1 (on), 0 (off) min 0/max 1/default 0];
  114. docremark [When demotracking is on (B = 1), the camera will create a red particle every frame where it moves, creating a trail. This can be used to inspect someone's movement in a game. It will only show the last N particles according to the maxparticles variable, which you may want to increase to 10000. The particles will remain even after you stop the demo, so you can use edit mode to look at it from all angles.];
  115.  
  116. docident [disconnect] [Leaves a server.];
  117.  
  118. docident [gamespeed] [Sets the gamespeed in percent.];
  119. docargument [N] [the game speed] [min 10/max 1000/default 100];
  120. docremark [This does not work in multiplayer. For entertainment purposes only :)];
  121.  
  122. docident [getmap] [Retrieves the last map that was sent to the server using 'sendmap'.];
  123.  
  124. docident [hidestats] [Turns on/off display of fps/rendering stats on the HUD.];
  125. docargument [B] [Turns the stats off (1) or on (0)] [min 0/max 1/default 1];
  126.  
  127. docident [mode] [Set gameplay mode to N for the next game played (next map load).];
  128. docargument [N] [the mode number] [TODO] [0];
  129.  
  130. docident [name] [Sets the nick name for the local player.];
  131. docargument [N] [the name] [] [0];
  132.  
  133. docident [record] [Starts recording of a demo.];
  134. docargument [S] [the demo name] [] [0];
  135. docremark [This works for any multiplayer mode, including the default "ffa" mode you are in when you load up a map locally. The file is saved to demos/S.cdgz.];
  136.  
  137. docident [say] [Outputs text to other players.];
  138. docargument [S...] [the text] [] [1];
  139. docremark [If the text begins with an percent character (%), only team mates will receive the message.];
  140.  
  141. docident [saycommand] [Puts a prompt on screen.];
  142. docargument [S...] [the text to display in the prompt] [] [1];
  143. docremark [this puts a prompt on screen where you can type stuff into, which will capture all keystrokes until you press return (or esc to cancel). If what you typed started with a "/", the rest of it will be executed as a command, otherwise its something you "say" to all players.];
  144. dockey [T] [] [opens empty prompt];
  145. dockey [BACKQUOTE] [`] [opens a command prompt /];
  146. dockey [TAB] [] [autocompletes commands/variables/aliases];
  147. dockey [UP] [] [browse command history forwards];
  148. dockey [DOWN] [] [browse command history backwards];
  149.  
  150. docident [schowscores] [Shows or hides the scores.];
  151. dockey [TAB] [] [];
  152.  
  153. docident [sendmap] [Sends the current map to the server and sends other players a message about it.];
  154. docargument [M] [map to save and reload locally] [] [0];
  155. docremark [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!];
  156.  
  157. docident [stop] [Stops any demo recording or playback.];
  158.  
  159. docident [team] [Sets the team for the local player.];
  160. docargument [S] [the team name] [either CLA or RVSF] [0];
  161. docexample [team CLA] [];
  162.  
  163. docident [weapon] [Changes the weapon.];
  164. docargument [N] [the weapon number] [0 (knife), 1 (pistol), 2 (shotgun), 3 (sub), 4 (sniper), 5 (assault), 6 (grenades)] [0];
  165.  
  166. docsection [General]
  167.  
  168. docident [addserver] [Adds a server to the list of server to query in the server list menu.];
  169. docargument [S] [the name of the server (cn/ip)] [] [0];
  170.  
  171. docident [alias] [Binds a name to commands.];
  172. docargument [N] [the name of the alias] [string, must not contain '$'] [0];
  173. docargument [A] [the commands] [string] [0];
  174. docremark [It is possible to re-bind an alias, even during its evaluation.];
  175. docremark [Example: alias myalias [ echo "hello world"; alias myalias [ echo "I already said hello" ] ]];
  176.  
  177. docident [animationinterpolationtime] [Sets the time available for interpolation between model animations.];
  178. docargument [N] [the amount of milliseconds for the interpolation] [min 0/max 1000/default 100];
  179.  
  180. docident [attack] [Fires the current weapon.];
  181. docremark [default: left mouse button];
  182.  
  183. docident [autoreload] [Indicates if the weapons should be reloaded automatically.];
  184. docargument [B] [the autoreload state] [on (1), off (0) min 0/max 1/default 1];
  185.  
  186. docident [autoteam] [Sets the automated team assignement.];
  187. docargument [B] [enables or disables auto team] [1 (on), 0 (off)] [0];
  188. docremark [Requires master or admin state.];
  189.  
  190. docident [backward] [Moves the player backward.];
  191. docremark [default keys: S and Down Arrow];
  192.  
  193. docident [ban] [Bans a specified player from the server.];
  194. docargument [N] [the player to ban] [client number] [0];
  195. docremark [Requires master or admin state. The ban duration is fixed to 20 minutes.];
  196.  
  197. docident [bind] [Binds a key to a command.];
  198. docargument [K] [the key to bind] [string] [0];
  199. docargument [A] [the command] [string, usually an alias] [0];
  200. docremark [To find out what key names and their default bindings are, look at config/keymap.cfg, then add bind commands to your autoexec.cfg.];
  201.  
  202. docident [chmenumdl] [Changes the menu model of a specified menu.];
  203. docargument [N] [the name of the menu] [] [0];
  204. docargument [M] [the (new) model] [] [0];
  205. docargument [A] [the animation to play] [] [0];
  206. docargument [R] [the rotation speed] [] [0];
  207. docargument [S] [the scale] [] [0];
  208.  
  209. docident [clearminimap] [Recreates the minimap for the current map.];
  210.  
  211. docident [clearsecuremaps] [Clears the list of secured maps.];
  212.  
  213. docident [connected] [Indicates if a connection to a server exists.];
  214. docargument [B] [the connection state] [1 (connected), 0 (disconnected) min 0/max 1/default 0];
  215.  
  216. docident [conskip] [Allows to browse through the console history by offsetting the console output.];
  217. docargument [N] [the offset] [] [0];
  218. dockey [KP_MINUS] [- on the keypad] [scrolls into the history (conskip 1)];
  219. dockey [KP_PLUS] [+ on the keypad] [resets the history (conskip -1000)];
  220.  
  221. docident [crosshairfx] [Turns on or off crosshair effects.];
  222. docargument [B] [Turns the effects on (1) or off (0)] [min 0/max 1/default 1];
  223. docremark [When on, the crosshair will go grey when the weapon is reloading, orange when health se 50 or red when se 25.];
  224.  
  225. docident [crosshairsize] [Sets the size of your crosshair.];
  226. docargument [N] [the crosshair size] [min 0/max 50/default 15];
  227. docremark [The crosshair is turned off entirely if the size is set to 0.];
  228.  
  229. docident [docargument] [Adds a new argument documentation to the last added identifier.];
  230. docargument [T] [the token] [] [0];
  231. docargument [D] [the description] [] [0];
  232. docargument [V] [the value notes] [] [0];
  233. docargument [I] [flags this argument as variable-length] [1 (true), 0 (false)] [0];
  234. docremark [An argument represents either a command argument or a variable value.];
  235. docremark [The last argument of an identifier can be flagged as variable-length to indicate that it represents an unknown number of arguments.];
  236.  
  237. docident [docexample] [Adds an example to the last added identifier.];
  238. docargument [C] [the example code] [] [0];
  239. docargument [E] [the explanation] [] [0];
  240.  
  241. docident [docfind] [Searches the ingame docs for identifier documentations matching the specified search string.];
  242. docargument [S] [the search string] [] [0];
  243. docremark [The name, description and remarks are included in the search.];
  244.  
  245. docident [docident] [Adds a new identifier documentation to the last added section.];
  246. docargument [N] [name of the identifier] [] [0];
  247. docargument [D] [the description] [] [0];
  248. docremark [An identifier represents a command or variable. The new identifier];
  249. docremark [The name may countain spaces to create a "multipart" identifier documentation that can be used to describe a complex argument as a single pseudo identifier, look at the examples.];
  250. docexample [docident fov "Sets the field of view."] [];
  251. docexample [docident "newent light" "Adds a new light entitiy."] [];
  252.  
  253. docident [docinvalid] [Outputs a list of identifer documentations that do not match any existing identifer.];
  254. docremark [Multipart identifiers are not included in this list, see 'docident'.];
  255.  
  256. docident [docref] [Adds a new documentation reference to an identifier.];
  257. docargument [N] [the display name] [] [0];
  258. docargument [I] [the identifier to refer to] [] [0];
  259. docargument [U] [the URL to refer to] [] [0];
  260. docremark [The new reference is added to the last added identifier documentation.];
  261.  
  262. docident [docremark] [Adds a new documentation remark to the last added identifier.];
  263. docargument [S] [the remark] [] [0];
  264.  
  265. docident [docsection] [Adds a new section to the ingame documentation.];
  266. docargument [S] [the section name] [] [0];
  267.  
  268. docident [docundone] [Outputs a list of yet undocumented identifiers (commands,variables, etc)];
  269. docargument [A] [output all identifiers] [1 (true), 0 (false)] [0];
  270. docremark [If the one argument is omitted, only the builtin identifiers will be listed. Therefore specify the argument other identifers like aliases should be included too.];
  271. docremark [Note that the list also includes identifiers that contain the substrings "TODO" or "UNDONE" in their documentation.];
  272.  
  273. docident [docwritebaseref] [Writes out a base XML documentation reference containing templates for the builtin identifiers.];
  274. docargument [R] [the reference name] [] [0];
  275. docargument [S] [the XML schema location string] [] [0];
  276. docargument [T] [XML stylesheet to use] [] [0];
  277. docremark [The generated reference is written to "config/autogenerated_base_reference.xml" by default. The three arguments can be changed later on in the generated XML document.];
  278.  
  279. docident [dynlight] [Determines wether dynamic shadows and lights are rendered, providedjust incase they slow your fps down too much.];
  280. docargument [R] [the radius of a dynamic light] [min 0/max 32/default 16];
  281. docremark [With radius you can specify the radius of a dynamic light, smaller to maybe gain some speed (0 is off entirely), or bigger to see the effect of dynamic shadows more dramatically (try shooting it past some pillars that have a dark area on the other side... or use the "gamespeed" variable).];
  282.  
  283. docident [exec] [Executes all commands in a specified config file.];
  284. docargument [C] [the config file] [] [0];
  285.  
  286. docident [fog] [Sets the fog distance.];
  287. docargument [N] [the fog distance] [integer, default is 160] [0];
  288. docremark [You can do this for tweaking the visual effect of the fog, or if you are on a slow machine, setting the fog to a low value can also be a very effective way to increase fps (if you are geometry limited). Try out different values on big maps / maps which give you low fps.];
  289.  
  290. docident [fogcolour] [Sets fog and clearing colour.];
  291. docargument [C] [the colour] [integer, default is 0x8099B3] [0];
  292. docremark [This and the fog variable can be set in the map config file.];
  293.  
  294. docident [forceteam] [Forces a specified player to join the enemy team.];
  295. docargument [N] [the player to assign to a team] [client number] [0];
  296. docremark [Requires master or admin state.];
  297.  
  298. docident [forward] [Moves the player forward.];
  299. docremark [default keys: W and Up Arrow];
  300.  
  301. docident [fov] [Sets the field of view (fov).];
  302. docargument [N] [the fov value] [60..120] [0];
  303.  
  304. docident [gamma] [Sets the hardware gamma value.];
  305. docargument [N] [the gamma value] [min 30/max 300/default 100];
  306. docremark [May not work if your card/driver doesn't support it.];
  307.  
  308. docident [givemaster] [Gives the master state to specified player.];
  309. docargument [N] [the player to become master] [client number] [0];
  310. docremark [Requires admin state. The admin will lose his admin state after successfully issuing this command.];
  311.  
  312. docident [history] [Executes the specified command in the command line history.];
  313. docargument [N] [the N'th command from the history] [] [0];
  314. docremark [For example, binding "history 0" to a key allows to quickly repeat the last command typed in (useful for placing many identical entities etc.)];
  315.  
  316. docident [invmouse] [Sets mouse to "flight sim" mode.];
  317. docargument [B] [sets invmouse] [0 (off), else (on)] [0];
  318.  
  319. docident [jump] [Triggers a jump.];
  320. docremark [default keys: space and right mouse.];
  321.  
  322. docident [keymap] [Sets up the keymap for the specified key.];
  323. docargument [K] [the key to map] [] [0];
  324. docargument [N] [the name for the key] [] [0];
  325. docargument [A] [the default action] [] [0];
  326. docremark [You should never have to use this command manually, use "bind" instead.];
  327.  
  328. docident [kick] [Kicks a specified player from the server.];
  329. docargument [N] [the player to kick] [client number] [0];
  330. docremark [Requires master or admin state.];
  331.  
  332. docident [left] [Moves the player left.];
  333. docremark [default keys: A and Left Arrow];
  334.  
  335. docident [lighterror] [Allows to finetune the amount of "error" the mipmapper/stripifier allow themselves for changing lightlevels.];
  336. docargument [E] [the error value, 1 being the best quality] [ read-only];
  337. docremark [If this variable is changed this during play, a "recalc" is needed to see the effect.];
  338.  
  339. docident [lightscale] [Used to finetune the "overbright lighting" rendering feature when enabled.];
  340. docargument [N] [the brightness of the scene] [min 1/max 100/default 4];
  341. docremark [After changing this value, a "recalc" is needed to see the differences.];
  342.  
  343. docident [map] [Loads up a map in the gamemode set previously by the 'mode' command.];
  344. docargument [M] [name of the map to load] [string] [0];
  345. docremark [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).];
  346. docremark [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.];
  347. docremark [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").];
  348. docremark [TODO: multiplayer voting];
  349.  
  350. docident [mastermode] [Sets the mastermode for the server.];
  351. docargument [N] [the master mode] [0 (open), 1 (private)] [0];
  352. docremark [Requires master or admin state. If the mastermode is set to 'private', no more clients can join the server. Default is 'open' that allows anyone to join the server.];
  353.  
  354. docident [maxroll] [Sets the maximum value the display will roll on strafing.];
  355. docargument [N] [the roll value] [min 0/max 20/default 0];
  356.  
  357. docident [menuitem] [Creates a new menuitem.];
  358. docargument [N] [the name of the menuitem] [] [0];
  359. docargument [A] [the action on selection] [] [0];
  360. docremark [If the action argument is omitted, then it will be set to the same value as the description. Upon pressing return, the associated action will be executed. See config/menus.cfg for examples.];
  361.  
  362. docident [menumdl] [Specifies a model to render while displaying the last added menu.];
  363. docargument [M] [the model] [] [0];
  364. docargument [A] [the animation to play] [] [0];
  365. docargument [R] [the rotation speed] [] [0];
  366. docargument [S] [the scale] [] [0];
  367.  
  368. docident [millis] [Returns the number of milliseconds since engine start.];
  369. docexample [echo (millis)] [];
  370.  
  371. docident [minimapres] [Sets the resolution for the minimap.];
  372. docargument [N] [the resoution] [min 7/max 10/default 9];
  373.  
  374. docident [minmillis] [Sets the minimum number of milliseconds a frame should take.];
  375. docargument [N] [the number of milliseconds] [integer, 0 (off), default is 5] [0];
  376. docremark [This is for very fast machines that run Cube at hundreds of fps. Default is 5, i.e. try to stay close to 200fps. This command is not exact, i.e. the precise delay it generates depends on OS and other factors... experiment with your ideal setting.];
  377.  
  378. docident [musicvol] [Sets the music volume.];
  379. docargument [N] [the volume] [0..255] [0];
  380.  
  381. docident [newmenu] [Creates a new menu.];
  382. docargument [N] [the name of the menu] [] [0];
  383.  
  384. docident [onrelease] [Executes a command on the release of a key/button.];
  385. docargument [A] [the command] [] [0];
  386. docremark [This command must be placed in an action in a bind or in an alias in a bind.];
  387. docexample [bind CTRL [ echo "key pressed"; onrelease [ echo "key released" ] ]] [];
  388.  
  389. docident [particlesize] [Scales all particles.];
  390. docargument [P] [the scale percentage] [min 20/max 500/default 100];
  391.  
  392. docident [quit] [Quits the game without asking.];
  393.  
  394. docident [rate] [Sets the clients maximum downstream bandwidth.];
  395. docargument [N] [the bytes per second] [min 0/max 25000/default 0];
  396. docremark [Leaving it at 0 (the default) means the server will dynamically try to do the best thing, this is recommended for players who don't have a clue what their bandwidth is (setting your rate unoptimally is worse than not setting it all). Modem players (56k) could try rate 4000 and tweak from there, dsl players can try rate 6000-10000. Note that the more players on a server, the more critical the effect of your rate. If you are tweak addicted, you can try playing with the variables throttle_decel (how quickly to start dropping packets when your connection becomes bandwidth limited) throttle_accel (how quickly to recover once bandwidth becomes available again) and throttle_interval (how quickly to reestimate the situation). Change the defaults at your own risk.];
  397.  
  398. docident [removebans] [Removes all bans on the server.];
  399. docremark [Requires master or admin state.];
  400.  
  401. docident [right] [Moves the player right.];
  402. docremark [default keys: D and Right Arrow];
  403.  
  404. docident [screenshot] [Takes a screenshot.];
  405. docremark [Screenshots are saved to "screenshots/screenshotN.bmp", where N is the number of milliseconds since the game was launched.];
  406. dockey [F12] [] [];
  407.  
  408. docident [securemap] [Adds a map to the list of secured maps.];
  409. docargument [S] [the name of the map] [] [0];
  410. docremark [Secured maps can not be overwritten by the commands sendmap and getmap.];
  411.  
  412. docident [sensitivity] [Sets the mouse sensitivity.];
  413. docargument [S] [the sensitivity] [integer] [0];
  414. docremark [With 'sensitivityscale' you can specify a number that the sensitivity is divided by.];
  415.  
  416. docident [setadmin] [Claims or drops admin status.];
  417. docargument [B] [status] [1 (claim), 0 (drop)] [0];
  418. docargument [P] [password] [max. 15 characters] [0];
  419. docremark [Successfully claiming admin status revokes other players master or admin state automatically. 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.];
  420.  
  421. docident [setmaster] [Claims or drops master status.];
  422. docargument [B] [status] [1 (claim), 0 (drop)] [0];
  423. docremark [Claiming master status is only possible if no other player is already master. In the scoreboard, the master is marked green.];
  424.  
  425. docident [showmenu] [Displays the specified menu.];
  426. docargument [N] [the name of a previously defined menu] [] [0];
  427. docremark [The menu allows the user to pick an item with the cursor keys. Upon pressing return, the associated action will be executed. Pressing ESC will cancel the menu.];
  428.  
  429. docident [soundbufferlen] [Sets the sound buffer length.];
  430. docargument [N] [the buffer length] [min 128/max 4096/default 1024];
  431. docremark [Tweak this if you experience stuttering or lagging sound.];
  432.  
  433. docident [soundvol] [Sets the sound volume.];
  434. docargument [N] [the volume] [min 0/max 255/default 155];
  435.  
  436. docident [updatefrommaster] [Contacts the masterserver and adds any new servers to the server list.];
  437. docremark [The servers are written to the config/servers.cfg file. This menu can be reached through the Multiplayer menu.];
  438.  
  439. docident [watersubdiv] [Determines the subdivision of the water surface in maps.];
  440. docargument [N] [the subdivisioin value] [min 1/max 64/default 4];
  441. docremark [Must be a power of 2: 4 is the default, 8 is recommended for people on slow machines, 2 is nice for fast machines, and 1 is quite OTT. See "waterlevel" (edit reference) on how to add water to your own levels.];
  442.  
  443. docsection [Editing]
  444.  
  445. docident [arch] [Makes an arch out of the current selection.];
  446. docargument [S] [side delta (optional)] [] [0];
  447. docremark [The selection must be a heighfield before this command can be used. Will make the arch in the long direction, i.e when you have 6x2 cubes selected, the arch will span 7 vertices. Optionally, sidedelta specifies the delta to add to the outer rows of vertices in the other direction, i.e. give the impression of an arch that bends 2 ways (try "arch 2" on an selection of atleast 2 thick to see the effect). Not all arch sizes are necessarily available, see config/prefabs.cfg.];
  448.  
  449. docident [archvertex] [Defines a vertex delta for a specific arch span prefab, used by the 'arch' command.];
  450. docargument [S] [span value] [integer] [0];
  451. docargument [V] [vertex value] [integer] [0];
  452. docargument [D] [delta value] [integer] [0];
  453. docremark [See config/prefabs.cfg for an example on usage.];
  454.  
  455. docident [clearents] [Deletes all entities of said type.];
  456. docargument [T] [the entity type, see command 'newent'] [string] [0];
  457.  
  458. docident [copy] [Copies the current selection into a buffer.];
  459. docremark [hotkey c];
  460.  
  461. docident [corner] [Makes the current selection into a "corner".];
  462. docremark [Currently there is only one type of corner (a 45 degree one), only works on a single unit (cube) at a time. It can be positioned either next to 2 solid walls or in the middle of 2 higher floorlevels and 2 lower ones forming a diagonal (and similar with ceiling).];
  463. docremark [In both cases, the corner will orient itself automatically depending on its neighbours, behaviour with other configurations than the 2 above is unspecified. Since the latter configuration generates possibly 2 floor and 2 ceiling levels, up to 4 textures are used: for example for the 2 floors the higher one will of the cube itself, and the lower one of a neighbouring low cube. You can make bigger corners at once by issuing "corner" on grid aligned 2x2/4x4/8x8 selections, with equal size solid blocks next to them.];
  464. dockey [K] [] [];
  465.  
  466. docident [delent] [Deletes the entity closest to the player];
  467. docremark [hotkey x];
  468.  
  469. docident [editheight] [Changes the height of the current selection.];
  470. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  471. docargument [D] [the delta value to move it in] [1 (forwards), -1 (backwards)] [0];
  472. docremark [Default keys are [ and ] for floor level, and o/p for ceiling.];
  473.  
  474. docident [editing] [A variable indicating if the game is in editmode.];
  475. docargument [] [editmode] [1 (true), 0 (false) read-only];
  476.  
  477. docident [edittex] [Changes the texture on current selection by browsing through a list of textures directly shown on the cubes.];
  478. docargument [T] [an integer denoting the type] [0 (floor), 1 (lower or wall), 2 (ceiling), 3 (upper wall)] [0];
  479. docargument [D] [the direction you want to cycle the textures in] [1 (forwards), -1 (backwards)] [0];
  480. docremark [Default keys are the six keys above the cursor keys, which each 2 of them cycle one type (and numpad 7/4 for upper).];
  481. docremark [The way this works is slightly strange at first, but allows for very fast texture assignment. All textures are in 3 individual lists for each type (both wall kinds treated the same), and each time a texture is used, it is moved to the top of the list. So after a bit of editing, all your most frequently used textures will come first when pressing these keys, and the most recently used texture is set immediately when you press the forward key for the type. These lists are saved with the map. make a selection (including wall bits) and press these keys to get a feel for what they do.];
  482.  
  483. docident [edittoggle] [switches between map edit mode and normal.];
  484. docremark [In map edit mode you can select bits of the map by clicking or dragging your crosshair on the floor or ceiling (using the "attack" identifier, normally MOUSE1), then use the identifiers below to modify the selection. While in edit mode, physics and collision don't apply (noclip), and key repeat is ON. Note that if you fly outside the map, cube still renders the world as if you were standing on the floor directly below the camera.];
  485. docremark [Hotkey E];
  486.  
  487. docident [entproperty] [Changes property of the closest entity.];
  488. docargument [P] [the property to change] [0..3] [0];
  489. docargument [A] [amount by wich the property is increased] [integer] [0];
  490. docremark [For example 'entproperty 0 2' when executed near a lightsource would increase its radius by 2.];
  491.  
  492. docident [equalize] [Levels the floor/ceiling of the selection.];
  493. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  494. docremark [default keys , and .];
  495.  
  496. docident [flrceil] [A variable indicating if the player looks at the floor or at the ceiling.];
  497. docargument [] [flrceil] [0 (floor), 2 (ceiling) read-only];
  498.  
  499. docident [fullbright] [Sets all light values to fullbright.];
  500. docargument [B] [sets fullbright on or off] [0 (off), 1 (on)] [0];
  501. docremark [Will be reset when you issue a 'recalc'. Only works in edit mode.];
  502.  
  503. docident [heighfield] [Marks the current selection as a heightfield.];
  504. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  505. docremark [marks the current selection as a heightfield, with T being floor or ceiling, as above. A surface marked as heightfield will use the vdelta values (see below) of its 4 corners to create a sloped surface. To mark a heightfield as normal again (ignoring vdelta values, set or not) use "solid 0". Default keys are h (floor) and i (ceiling).];
  506. docremark [Heightfields should be made the exact size that is needed, not more not less. The most important reason for this is that cube automatically generates "caps" (side-faces for heightfields) only on the borders of the heighfield. This also means if you have 2 independant heightfields accidentally touch eachother, you will not get correct caps. Also, a heighfield is slightly slower to render than a non-heighfield floor or ceiling. Last but not least, a heightfield should have all the same baseheight (i.e. the height determined by a normal editheight operation) to get correct results.];
  507.  
  508. docident [mapenlarge] [Enlarges the current map.];
  509. docremark [This command will make the current map 1 power of two bigger. So a 6 size map (64x64 units) it will become a 7 map (128x128), with the old map in the middle (from 32-96) and the new areas solid.];
  510.  
  511. docident [mapmodel] [Registers a mapmodel that can be placed in maps.];
  512. docargument [R] [the square radius] [string] [0];
  513. docargument [H] [the height] [integer] [0];
  514. docargument [Z] [the initial Z-offset above ground] [integer] [0];
  515. docargument [S] [the snap value in 16ths of a cube unit] [integer, 0 meaning no snap] [0];
  516. docargument [N] [the name of the map model] [string] [0];
  517. docremark [A map model registered with this command can be placed in a map using the 'newent mapmodel' command. All of these values are used for collision as well as rendering. Specifying a snap can be useful for architectural mapmodels, as the md2 format doesn't provide exact vertex coordinates.];
  518. docremark [Example: mapmodel 4 2 4 2 this map model is 8x8x2 in size (x,y,z), by default hovers 4 units above ground, and has all coordinates snapped to the nearest even number. See data/models.cfg.];
  519.  
  520. docident [mapmodelreset] [Resets the mapmodel slots/indices to 0.];
  521. docremark [Each subsequent mapmodel command increases it again. See config/default_map_settings.cfg for an example.];
  522.  
  523. docident [mapmsg] [Sets the map message, which will be displayed when the map loads.];
  524. docargument [M] [the map message] [string] [0];
  525. docremark [For example: mapmsg "Map By Author".];
  526.  
  527. docident [newent] [Adds a new entity];
  528. docargument [type] [the entity type] [light, playerstart, clips, ammobox, grenades, health, armour, akimbo, mapmodel, trigger, ladder, ctf-flag] [0];
  529. docargument [value1] [see newent 'type'] [] [0];
  530. docargument [value2] [see newent 'type'] [] [0];
  531. docargument [value3] [see newent 'type'] [] [0];
  532. docargument [value4] [see newent 'type'] [] [0];
  533. docremark [(x,y) is determined by the current selection (the red dot corner) and z by the camera height, of said type. Type is a string giving the type of entity, such as "light", and may optionally take values (depending on the entity).];
  534.  
  535. docident [newent ammo] [Adds a new ammo box item.];
  536.  
  537. docident [newent armour] [Adds a new armour item.];
  538.  
  539. docident [newent armour] [Adds a new akimbo item.];
  540.  
  541. docident [newent clips] [Adds a new clip item.];
  542.  
  543. docident [newent ctf-flag] [Adds a CTF flag entity.];
  544. docargument [T] [denotes the flag's team] [0 (CLA), 1 (RVSF)] [0];
  545. docremark [Note that this entity is only rendered as flag if the current game mode is CTF.];
  546.  
  547. docident [newent grenades] [Adds a new grenades item.];
  548.  
  549. docident [newent health] [Adds a new health item.];
  550.  
  551. docident [newent ladder] [Adds a ladder entity.];
  552. docargument [H] [the height of the ladder] [integer] [0];
  553. docremark [Note that this entity is used for physics only, to create a visual ladder you will need to add a mapmodel entity too.];
  554.  
  555. docident [newent light] [Adds a new light entity];
  556. docargument [radius] [the light radius] [1..32] [0];
  557. docargument [R] [red colour component. see remarks below.] [1..255] [0];
  558. docargument [G] [green colour component] [1..255] [0];
  559. docargument [B] [blue colour component] [1..255] [0];
  560. docremark [if only argument R is specified, it is interpreted as brightness for white light.];
  561.  
  562. docident [newent mapmodel] [Adds a map model, i.e. an object rendered as md2/md3 which you collide against but has no behaviour or movement];
  563. docargument [N] [the mapmodel identifier] [integer] [0];
  564. docargument [Z] [extra elevation above ground] [integer] [0];
  565. docargument [T] [the map texture to use (optional)] [integer] [0];
  566. docremark [The mapmodel identifier is the desired map model which is defined by the 'mapmodel' command. The map texture refers to a texture which is defined by the 'texture' command, if omitted the models default skin will be used. The 'mapmodel' and 'texture' commands are placed in the map config normally. Mapmodels are more expensive than normal map geometry, do not use insane amounts of them to replace normal geometry.];
  567.  
  568. docident [newent playerstart] [Adds a new spawn spot.];
  569. docremark [The yaw is taken from the current camera yaw.];
  570.  
  571. docident [newent teledest] [Creates a teleport destination.];
  572. docargument [N] [the teleport identifier] [0..255] [0];
  573. docremark [Teleports are linked to a teledest with the same identifier. The teledest uses the current camera yaw.];
  574.  
  575. docident [newent teleport] [Creates a teleport connection.];
  576. docargument [N] [the teleport identifier] [0..255] [0];
  577. docremark [Teleports are linked to a teledest with the same identifier.];
  578.  
  579. docident [newmap] [Creates a new map.];
  580. docargument [S] [the size of the new map] [6..12] [0];
  581. docremark [The new map has 2^S cubes. For S, 6 is small, 7 medium, 8 large.];
  582.  
  583. docident [paste] [Pastes a previously copied selection.];
  584. docremark [To paste a selection back requires a same size selection at the destination location. If it is not the same size the selection will be resized automatically prior to the paste operation (with the red dot as anchor), which is easier for large selections.];
  585. docremark [hotkey v];
  586.  
  587. docident [perlin] [Generates a perlin noise landscape in the current selection.];
  588. docargument [S] [the scale, frequency of the features] [default is 10] [0];
  589. docargument [E] [the random seed] [integer] [0];
  590. docargument [C] [cube size, how many cubes to generate a surface for at once (unused)] [] [0];
  591. docremark [Keep the seed the same to create multiple perlin areas which fit with eachother, or use different numbers if to create alternative random generations.];
  592.  
  593. docident [recalc] [Recomputes all there is to recompute about a map, currently only lighting.];
  594. docremark [hotkey R];
  595.  
  596. docident [registersound] [Registers a sound.];
  597. docargument [N] [sound name] [string, see config/sounds.cfg] [0];
  598. docremark [This command returns the sound number, which is assigned from 0 onwards, and which can be used with "sound" command. If the sound was already registered, its existing index is returned. registersound does not actually load the sound, this is done on first play.];
  599. docremark [See for example config/sounds.cfg.];
  600.  
  601. docident [replace] [Repeats the last texture edit thruout the map.];
  602. docremark [The way it works is intuitive: simply edit any texture anywhere, then using "replace" will replace all textures thruout the map in the same way (taking into account wether it was a floor/wall/ceil/upper too). If the there was more than one "old" texture in your selection, the one nearest to the red dot is used. This operation can't be undone.];
  603.  
  604. docident [savemap] [Saves the current map.];
  605. docargument [M] [file name of the map, see command 'map' for the naming scheme] [string] [0];
  606. docremark [savemap makes a versioned backup (mapname_N.BAK) if a map by that name already exists. If the name argument is omitted, it is saved under the current map name.];
  607. docremark [Where you store a map depends on the complexity of what you are creating: if its a single map (maybe with its own .cfg) then the "base" package is the best place. If its multiple maps or a map with new media (textures etc.) its better to store it in its own package (a directory under "packages"), which makes distributing it less messy.];
  608.  
  609. docident [scalelights] [Scales all lights in the map.];
  610. docargument [P] [percentage] [] [0];
  611. docargument [I] [intensity] [] [0];
  612. docremark [This command is useful if a map is too dark or bright but you want to keep the light entities where they are.];
  613.  
  614. docident [select] [Selects the given area, as if dragged with the mouse.];
  615. docargument [X] [the X coordinate] [] [0];
  616. docargument [Y] [the Y coordinate] [] [0];
  617. docargument [XS] [the length along the X axis] [] [0];
  618. docargument [XY] [the length along the Y axis] [] [0];
  619. docremark [This command is useful for making complex geometry-generating scripts. The current dimensions of the selection (either created by the user or this command) are in the variables selx, sely, selxs and selys and can also be read/modified.];
  620. docremark [Coordinates are as follows: after a "newmap 6" the top-left corner (the one where the red dot points) are (8,8), the opposite corner is (56,56) (or (120,120) on a "newmap 7" etc.).];
  621.  
  622. docident [showmip] [Toggles between showing what parts of the scenery are rendered.];
  623. docremark [Shows hat parts of the scenery are rendered using what size cubes, and outputs some stats too. This can give mappers hints as to what architecture to align / textures to change etc.];
  624.  
  625. docident [slope] [Makes a slope out of the current selection.];
  626. docargument [X] [x delta step] [integer] [0];
  627. docargument [Y] [y delta step] [integer] [0];
  628. docremark [The selection must be a heighfield before this command can be used. The steps specify the slope with the red vertex as left-top, i.e. "slope 1 2" will make a slope that increases just 1 step from left to right, and is slightly steeper from top to bottom. "slope -6 0" decreases steeply from left to right, and does not slope at all from top to bottom. Note that like the vdelta command, an increasing vdelta goes further away from the player, regardless of floor or ceiling.];
  629.  
  630. docident [solid] [makes the current selection all solid (i.e. wall) or all non-solid.];
  631. docargument [B] [an integer denoting the solid-ness] [0 (non-solid), 1..* (solid)] [0];
  632. docremark [This operation retains floor/ceiling heights/textures while swapping between the two. Default keys f and g respectively.];
  633.  
  634. docident [sound] [Plays the specified sound.];
  635. docargument [S] [the sound to play] [string, see config/sounds.cfg] [0];
  636. docremark [See config/sounds.cfg for default sounds, and use registersound to register your own. For example, sound 0 and sound (registersound "aard/jump") both play the standard jump sound.];
  637.  
  638. docident [texture] [Binds a texture to the current texture slot.];
  639. docargument [S] [number of a secondary texture (unused)] [string] [0];
  640. docargument [F] [file name of the texture to bind] [string] [0];
  641. docremark [Binds the texture indicated in filename to the current texture slot, then increments the slot number. This is for use in map configs only. A secondary textures can be specified for a single texture slot, for use in shaders and other features (unused for now, should be set to 0 to indicate primary texture).];
  642.  
  643. docident [texturereset] [Sets the texture slot to 0 for the subsequent "texture" commands.];
  644.  
  645. docident [toggleocull] [Turns occlusion culling on and off.];
  646. docremark [The reason one may want to turn it off is to get an overview of the map from above, without having all occluded bits stripped out.];
  647.  
  648. docident [undo] [Multi-level undo of any of the changes caused by editing operations];
  649. docremark [hotkey u];
  650.  
  651. docident [undomegs] [Sets the number of megabytes used for the undo buffer.];
  652. docargument [N] [number of megabytes, default is 1] [integer] [0];
  653. docremark [undo's work for any size areas, so the amount of undo steps per megabyte is more for small areas than for big ones (a megabyte fits 280 undo steps on a 16x16 area, but only 4 steps on a 128x128 area).];
  654.  
  655. docident [vdelta] [changes the vdelta value of the current selection];
  656. docargument [N] [vdelta value] [] [0];
  657. docremark [Note that unlike all other editing functions, this function doesn't affect a cube, but its top-left vertex (market by the dot in the editing cursor). So to edit a N * M heightfield, you will likely have to edit the vdelta of (N+1) * (M+1) cubes, i.e. you have to select 1 row and 1 column more in the opposite direction of the red dot to affect all the vertices of a heightfield of a given size (try it, it makes sense :)];
  658. docremark [A floor delta offsets vertices to beneath the level set by editheight (and a ceil delta to above). Delta offsets have a precision of a quarter of a unit, however you should use non-unitsize vertices only to touch other such vertices. Default keys are 8 and 9 to decrease/increase the vdelta.];
  659.  
  660. docident [waterlevel] [Sets the global water level for the map.];
  661. docargument [H] [the water level] [integer] [0];
  662. docremark [Every cube that has a lower floor than the water level will be rendered with a nice wavy water alpha texture. Water physics will be applied to any entity located below it.];
  663. docremark [Performance notes: water is rendered for a whole square encapsulating all visible water areas in the map (try flying above the map in edit mode to see how). So the most efficient water is a single body of water, or multiple water areas that are mostly not visible from eachother. Players can influence how accurate the water is rendered using the "watersubdiv" command (map config).];
  664.  
  665.