Bukz

docs.cfg update for copyent/pasteent

Mar 29th, 2011
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 109.39 KB | None | 0 0
  1. // auto generated script to make the doc reference readable for Cube games, see the 'docs/cuberef.txt'
  2. docsection [CubeScript]
  3. docident [<] [Determines if a value is smaller than a second value.];
  4. docargument [A] [the first value] [] [0];
  5. docargument [B] [the second value] [] [0];
  6. docident [<=] [Determines if a values is less than or equal than a second value.];
  7. docargument [A] [the first value] [] [0];
  8. docargument [B] [the second value] [] [0];
  9. docident [=] [Determines if two values are equal.];
  10. docargument [A] [first value] [] [0];
  11. docargument [B] [second value] [] [0];
  12. docexample [echo there are only (concatword (= 1 1) (= 1 0)) types of people in the world] [Output: there are only 10 types of people in the world];
  13. docident [>] [Determines if a value is bigger than a second value.];
  14. docargument [A] [the first value] [] [0];
  15. docargument [B] [the second value] [] [0];
  16. docident [>=] [Determines if a values is greater than or equal than a second value.];
  17. docargument [A] [the first value] [] [0];
  18. docargument [B] [the second value] [] [0];
  19. docident [||] [logical OR.];
  20. docargument [A] [first value] [] [0];
  21. docargument [B] [second value] [] [0];
  22. docexample [echo (|| 1 0)] [output: 1];
  23. docexample [echo (|| 0 0)] [output: 0];
  24. docident [-] [Performs a subtraction.];
  25. docargument [A] [the minuend] [] [0];
  26. docargument [B] [the subtrahend] [] [0];
  27. docident [!] [Performs a negation.];
  28. docargument [A] [argument] [] [0];
  29. docident [!=] [Determines if two values are not equal.];
  30. docargument [A] [first value] [] [0];
  31. docargument [B] [second value] [] [0];
  32. docident [*] [Performs a multiplication.];
  33. docargument [A] [the multiplicand] [] [0];
  34. docargument [B] [the multiplier] [] [0];
  35. docident [&&] [logical AND.];
  36. docargument [A] [first value] [] [0];
  37. docargument [B] [second value] [] [0];
  38. docexample [echo (&& 1 1)] [Output: 1];
  39. docexample [echo (&& 1 0)] [Output: 0];
  40. docident [+] [Performs an addition.];
  41. docargument [A] [the first summand] [] [0];
  42. docargument [B] [the second summand] [] [0];
  43. docremark [Example: echo the sum of x and y is (+ $x $y)];
  44. docident [at] [Grabs a word out of a string.];
  45. docargument [S] [the string] [] [0];
  46. docargument [N] [the index of the word] [] [0];
  47. docexample [echo (at "zero one two three" 2)] [output: two];
  48. docident [concat] [Concatenates multiple strings with spaces inbetween.];
  49. docargument [S] [the first string] [] [0];
  50. docargument [...] [collection of strings to concatenate] [] [1];
  51. docexample [alias a "hello"; echo (concat $a "world")] [output: hello world];
  52. docident [concatword] [Concatenates multiple strings.];
  53. docargument [S] [the first string] [] [0];
  54. docargument [...] [collection of strings to concatenate] [] [1];
  55. docremark [The newly created string is saved to the alias 's'.];
  56. docexample [alias a "Cube"; echo (concatword $a "Script")] [output: CubeScript];
  57. docident [div] [Performs an integer division.];
  58. docargument [A] [the dividend] [] [0];
  59. docargument [B] [the divisor] [] [0];
  60. docident [divf] [Performs a division with floating-point precision.];
  61. docargument [A] [] [the dividend] [0];
  62. docargument [B] [] [the divisor] [0];
  63. docident [<f] [Determines if a floating-point value is smaller than a second floating-point value.];
  64. docargument [A] [the first value] [] [0];
  65. docargument [B] [the second value] [] [0];
  66. docident [<=f] [Determines if a floating-point value is less than or equal to a second floating-point value.];
  67. docargument [A] [the first value] [] [0];
  68. docargument [B] [the second value] [] [0];
  69. docident [=f] [Determines if a floating-point value is equal to a second floating-point value.];
  70. docargument [A] [the first value] [] [0];
  71. docargument [B] [the second value] [] [0];
  72. docident [>f] [Determines if a floating-point value is greater than a second floating-point value.];
  73. docargument [A] [the first value] [] [0];
  74. docargument [B] [the second value] [] [0];
  75. docident [>=f] [Determines if a floating-point value is greater than or equal to a second floating-point value.];
  76. docargument [A] [the first value] [] [0];
  77. docargument [B] [the second value] [] [0];
  78. docident [-f] [Subtracts two floating-point numbers.];
  79. docargument [A] [the minuend] [float] [0];
  80. docargument [B] [the subtrahend] [float] [0];
  81. docident [!=f] [Determines if a floating-point value is not equal to a second floating-point value.];
  82. docargument [A] [the first value] [] [0];
  83. docargument [B] [the second value] [] [0];
  84. docident [*f] [Performs a floating point multiplication.];
  85. docargument [A] [the multiplicand] [] [0];
  86. docargument [B] [the multiplier] [] [0];
  87. docident [+f] [Adds up two floating-point numbers.];
  88. docargument [A] [the first summand] [float] [0];
  89. docargument [B] [the second summand] [float] [0];
  90. docident [findlist] [Searches a list for a specified value.];
  91. docargument [L] [the list] [] [0];
  92. docargument [I] [the item to find] [] [0];
  93. docident [format] [];
  94. docargument [F] [format] [use %1..%9 for the values] [0];
  95. docargument [V] [value(s)] [] [0];
  96. docexample [echo (format "%1 bottles of %2 on the %3, %1 bottles of %2!" 99 beer wall)] [output: 99 bottles of beer on the wall, 99 bottles of beer!];
  97. docident [if] [Controls the script flow based on a boolean expression.];
  98. docargument [cond] [the condition] [0 (false) or anything else (true)] [0];
  99. docargument [true] [the body to execute if the condition is true] [] [0];
  100. docargument [false] [the body to execute if the condition is false] [] [0];
  101. docexample [if (> $x 10) [ echo x is bigger than 10 ] [ echo x too small ]] [];
  102. docident [listlen] [returns the element count of the given list.];
  103. docargument [L] [the list] [] [0];
  104. docident [loop] [Loops the specified body.];
  105. docargument [V] [the alias used as counter] [] [0];
  106. docargument [N] [the amount of loops] [] [0];
  107. docargument [body] [the body to execute on each iteration] [] [0];
  108. docremark [This command sets the alias you choose, as first argument, from 0 to N-1 for every iteration.];
  109. docexample [loop i 10 [ echo $i ]] [];
  110. docident [mod] [Performs a modulo operation.];
  111. docargument [A] [the dividend] [] [0];
  112. docargument [B] [the divisor] [] [0];
  113. docident [modf] [Performs a floating-point modulo operation.];
  114. docargument [A] [the dividend] [] [0];
  115. docargument [B] [the divisor] [] [0];
  116. docexample [echo (modf 7.5 12.5)] [Output: 7.5];
  117. docexample [echo (modf 17.5 12.5)] [Output: 5.0];
  118. docident [numargs] [The number of arguments passed to the current alias];
  119. docargument [V] [numargs] [ read-only];
  120. docident [pop] [];
  121. docargument [A] [alias] [] [0];
  122. docident [push] [];
  123. docargument [N] [alias name] [] [0];
  124. docargument [A] [action] [] [0];
  125. docident [result] [sets the result value of a CubeScript block];
  126. docargument [R] [the result] [] [0];
  127. docident [rnd] [Random value];
  128. docargument [A] [The upper limit of the random value] [] [0];
  129. docident [sleep] [Executes a command after specified time period.];
  130. docargument [N] [the amount of milliseconds] [] [0];
  131. docargument [C] [the command to execute] [] [0];
  132. docexample [sleep 1000 [ echo foo ]] [Prints 'foo' to the screen after 1 second.];
  133. docident [strcmp] [Determines if two strings are equal.];
  134. docargument [A] [the first string] [] [0];
  135. docargument [B] [the second string] [] [0];
  136. docident [while] [Loops the specified body while the condition evaluates to true.];
  137. docargument [cond] [the condition] [0 (false) or anything else (true)] [0];
  138. docargument [body] [the body to execute on each iteration] [] [0];
  139. 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.];
  140. docexample [alias i 0; while [ (< $i 10) ] [ echo $i; alias i (+ $i 1) ]] [];
  141. docsection [General]
  142. docident [addserver] [Adds a server to the list of server to query in the server list menu.];
  143. docargument [S] [the address of the server (hostname or IP)] [] [0];
  144. docargument [P] [the port] [] [0];
  145. docident [alias] [Binds a name to commands.];
  146. docargument [N] [the name of the alias] [string, must not contain '$'] [0];
  147. docargument [A] [the commands] [string] [0];
  148. docexample [alias myalias [ echo "hello world"; alias myalias [ echo "I already said hello" ] ]] [It is possible to re-bind an alias, even during its evaluation.];
  149. docexample [test = [ echo "successful" ]] [There is also the shorthand version of defining an alias via the "="-sign.];
  150. docident [attack] [Fires the current weapon.];
  151. docremark [default: left mouse button];
  152. docident [autogetmap] [Determines if the current played map should be automatically downloaded if it is not available locally.];
  153. docargument [B] [enable auto map download] [min 0/max 1/default 1];
  154. docident [autogetnewmaprevisions] [Automatically get new map revisions from the server.];
  155. docargument [N] [0: no, 1: yes] [min 0/max 1/default 0];
  156. docident [autoscreenshot] [Toggle for taking an automatic screenshot during intermission.];
  157. docargument [B] [0=Off, 1=On] [min 0/max 1/default 1];
  158. docident [backward] [Moves the player backward.];
  159. docremark [default keys: S and Down Arrow];
  160. docident [bind] [Binds a key to a command.];
  161. docargument [K] [the key to bind] [string] [0];
  162. docargument [A] [the command] [string, usually an alias] [0];
  163. 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.];
  164. docident [browsefiledesc] [Toggles getting descriptive text from CGZ or DMO files in menudirlist.];
  165. docargument [B] [] [min 0/max 1/default 1];
  166. docident [changeteam] [Swaps your player to the enemy team.];
  167. docident [clearservers] [];
  168. docident [clockerror] [Sets the correction value for clockfix.];
  169. docargument [V] [correction value] [min 990000/max 1010000/default 1000000];
  170. docremark [Engine source-code snippet (main.cpp): if(clockfix) millis = int(millis*(double(clockerror)/1000000));];
  171. docident [clockfix] [Enables correction of the system clock.];
  172. docargument [B] [enable correction] [min 0/max 1/default 0];
  173. docident [connected] [Indicates if a connection to a server exists.];
  174. docargument [B] [the connection state] [1 (connected), 0 (disconnected) min 0/max 1/default 0];
  175. docident [datestring] [representation of date];
  176. docremark [format: Www Mmm dd hh:mm:ss yyyy];
  177. docremark [Use timestamp to create your own formatting.];
  178. docexample [echo (datestring) "Sat Jun 7 17:08:35 2008"] [];
  179. docident [dbgts] [Enable triangle debug.];
  180. docargument [B] [triangle debug] [min 0/max 1/default 0];
  181. docremark [Prints details while connecting triangles of 3d models.];
  182. docident [debugargs] [Dump all command arguments to STDOUT];
  183. docargument [...] [...] [] [1];
  184. docident [echo] [];
  185. docargument [L] [List of strings] [] [0];
  186. docident [exec] [Executes all commands in a specified config file.];
  187. docargument [C] [the config file] [] [0];
  188. docident [forward] [Moves the player forward.];
  189. docremark [default keys: W and Up Arrow];
  190. docident [gamemode] [Holds the current game mode. READ ONLY];
  191. docexample [echo $gamemode] [Output: 5];
  192. docident [invmouse] [Sets mouse to "flight sim" mode.];
  193. docargument [B] [sets invmouse] [0 (off), else (on)] [0];
  194. docident [jpegquality] [Sets the JPEG screenshot image quality.];
  195. docargument [N] [Compression level] [min 10/max 100/default 70];
  196. docremark [The image quality is set by it's compression level, a value of 10 sets maximum compression and a small file size but results in a bad quality image];
  197. docremark [while a value of 100 results in a large file but gives the best quality image.];
  198. docident [jump] [Triggers a jump.];
  199. docremark [default keys: space and right mouse.];
  200. docident [keymap] [Sets up the keymap for the specified key.];
  201. docargument [K] [the key to map] [] [0];
  202. docargument [N] [the name for the key] [] [0];
  203. docargument [A] [the default action] [] [0];
  204. docremark [You should never have to use this command manually, use "bind" instead.];
  205. docident [left] [Moves the player left.];
  206. docremark [default keys: A and Left Arrow];
  207. docident [maxfps] [Limits the FPS (frames per second) of the game.];
  208. docargument [V] [maximum FPS] [min 0/max 200/default 200];
  209. docident [maxroll] [Sets the maximum value the display will roll on strafing.];
  210. docargument [N] [the roll value] [min 0/max 20/default 0];
  211. docident [maxtmus] [Gets the maximum number of supported textures when performing multitexturing.];
  212. docargument [V] [max. number of textures] [ read-only];
  213. docident [menudirlist] [create a menu listing of files from a path and perform an action on them when clicked.];
  214. docargument [] [] [] [0];
  215. docremark [use this inside menu definitions, almost always as the only command of that menu.];
  216. docremark [compare the usage inside config/menus.cfg];
  217. docexample [menudirlist "packages/maps" "cgz" "map $arg1"] [will create a list of maps and load them when clicked];
  218. docident [millis] [Returns the number of milliseconds since engine start.];
  219. docexample [echo (millis)] [];
  220. docident [minlod] [Minimal level of detail.];
  221. docargument [V] [] [min 25/max 250/default 60];
  222. docident [modeacronyms] [Toggles use of acronyms instead of full modenames in the serverbrowser.];
  223. docargument [B] [] [min 0/max 1/default 0];
  224. docident [networkdebug] [Enables output of processed network packets.];
  225. docargument [B] [enable network debugging] [min 0/max 1/default 0];
  226. docremark [This variable only has an effect if the client binary is compiled in debug mode.];
  227. docident [onrelease] [Executes a command on the release of a key/button.];
  228. docargument [A] [the command] [] [0];
  229. docremark [This command must be placed in an action in a bind or in an alias in a bind.];
  230. docexample [bind CTRL [ echo "key pressed"; onrelease [ echo "key released" ] ]] [];
  231. docident [physinterp] [Toggles physics interpolation.];
  232. docargument [B] [] [min 0/max 1/default 1];
  233. docident [pngcompress] [Sets the PNG screenshot file compression.];
  234. docargument [N] [Compression level] [min 0/max 9/default 9];
  235. docremark [A value of 9 sets maximum data compression and a smaller file size while a value of 0 results in a large file image, quality is always the same since PNG its a loosless format.];
  236. docident [quit] [Quits the game without asking.];
  237. docident [registermusic] [registers a track as music - the first three tracks have special meaning. Track #1 is for "flag grab" the second and third are used as "last minute" tracks.];
  238. docargument [M] [music file] [] [0];
  239. docident [resetbinds] [Resets all binds back to their default values.];
  240. docremark [This command executes the file /config/resetbinds.cfg which will bind all keys to the values specified in that file, thus resetting the binds to their default values.];
  241. docident [resetcfg] [Determines if all settings should be reset when the game quits.];
  242. docargument [B] [enable reset] [min 0/max 1/default 0];
  243. docremark [It is recommended to quit the game immediately after enabling this setting. Note that the reset happens only once as the value of this variable is reset as well.];
  244. docident [resetsecuremaps] [Clears the list of secured maps.];
  245. docident [right] [Moves the player right.];
  246. docremark [default keys: D and Right Arrow];
  247. docident [screenshot] [Takes a screenshot.];
  248. docremark [Screenshots are saved to "screenshots/screenshotN.bmp", where N is the number of milliseconds since the game was launched.];
  249. dockey [F12] [] [];
  250. docident [screenshottype] [Toggle format of screenshot image. Your choice is for BMP (0), JPEG (1) or PNG (2).];
  251. docargument [T] [0=BMP, 1=JPEG, 2=PNG] [min 0/max 2/default 1];
  252. docident [securemap] [Adds a map to the list of secured maps.];
  253. docargument [S] [the name of the map] [] [0];
  254. docremark [Secured maps can not be overwritten by the commands sendmap and getmap.];
  255. docident [sensitivity] [Sets the mouse sensitivity.];
  256. docargument [S] [the sensitivity] [floating-point] [0];
  257. docident [smoothdist] [Determines the valid distance when extrapolating a players position.];
  258. docargument [V] [distance] [min 0/max 16/default 8];
  259. docident [smoothmove] [Determines the speed when extrapolating a players position.];
  260. docargument [V] [movement speed] [min 0/max 100/default 75];
  261. docident [soundtest] [Plays all hardcoded sounds in order.];
  262. docident [systime] [seconds since the epoch (00:00:00 UTC on January 1, 1970)];
  263. docexample [echo (systime)] [];
  264. docident [throttle_accel] [Determines how fast network throttling accelerates.];
  265. docargument [V] [acceleration] [min 0/max 32/default 2];
  266. docident [throttle_decel] [Determines how fast network throttling decelerates.];
  267. docargument [V] [deceleration] [min 0/max 32/default 2];
  268. docident [throttle_interval] [Determines the interval of re-evaluating network throttling.];
  269. docargument [V] [interval] [seconds min 0/max 30/default 5];
  270. docident [timestamp] [a list of values for current time];
  271. docremark [format: YYYY mm dd HH MM SS];
  272. docexample [echo (timestamp) "2008 08 08 08 08 08"] [];
  273. docexample [echo (timestamp) "2063 04 05 12 00 00"] [];
  274. docexample [echo (at (timestamp) 0) (at (timestamp) 2) (at (timestamp) 1) "2063 05 04"] [];
  275. docident [timestring] [the current time in (H)H:MM:SS format];
  276. docexample [echo (timestring) "12:34:56"] [];
  277. docexample [echo (timestring) "1:02:03"] [];
  278. docident [toggleconsole] [Toggles the console.];
  279. docident [tsswap] [Swaps vertices of model triangles.];
  280. docargument [V] [] [min 0/max 1/default 1];
  281. docident [updatefrommaster] [Contacts the masterserver and adds any new servers to the server list.];
  282. docargument [B] [force update] [0 (delayed), 1 (immediate)] [0];
  283. docremark [The servers are written to the config/servers.cfg file. This menu can be reached through the Multiplayer menu.];
  284. docident [version] [Gets an integer representing the game version. READ ONLY];
  285. docremark [As example, version 1.0 is represented as value 1000.];
  286. docident [writecfg] [writes current configuration to config/saved.cfg - automatic on quit];
  287. docsection [Gameplay]
  288. docident [add2alias] [This will append the passed 2nd argument to any existing content of the alias named in the 1st argument. Several popular aliases have predefined shortcuts using this scriptalias: addOnQuit, addOnLoadOnce, addOnLoadAlways. Check config/scripts.cfg for possible omissions in that list.];
  289. docexample [foo = "one" add2alias foo two echo foo] [Output: one two];
  290. docident [addbot] [add a bot for a given team with a given skill calling him a given name.];
  291. docargument [T] [team] [RVSF or CLA or SPECTATOR] [0];
  292. docargument [S] [skill] [best, good, medium, worse OR bad] [0];
  293. docargument [N] [name] [name for the bot] [0];
  294. docremark [This command only works for single player modes.];
  295. docexample [addbot RVSF medium Robbie] [Will add a bot named Robbie with a medium skill level to the RVSF team.];
  296. docident [addnbot] [will add a given count of bots for the given team with the given skill and select random names for them.];
  297. docargument [C] [count] [how many bots to add] [0];
  298. docargument [T] [team] [RVSF or CLA] [0];
  299. docargument [S] [skill] [best, good, medium, worse OR bad] [0];
  300. docremark [This command only works for single player modes.];
  301. docremark [The name of the bots will be selected randomly.];
  302. docexample [addnbot 2 CLA bad] [Will add 2 bots with a bad skill level to the CLA team.];
  303. docident [alive] [Returns 1 if the local player is alive.];
  304. docexample [echo (alive)] [Output: 1];
  305. docident [autoreload] [Indicates if the weapons should be reloaded automatically.];
  306. docargument [B] [the autoreload state] [on (1), off (0) min 0/max 1/default 1];
  307. docident [benchme] [Move from active team to spectator during match.];
  308. docident [botskill] [changes the skill level for the given bot.];
  309. docargument [N] [botname] [the name of the bot] [0];
  310. docargument [S] [botskill] [best, good, medium, worse OR bad] [0];
  311. docexample [botskill Robbie best] [Changes the previous bot skill level of the bot named Robbie to a 'best' skill level.];
  312. docident [botskillall] [changes the skill level for all bots.];
  313. docargument [S] [botskill] [best, good, medium, worse OR bad] [0];
  314. docexample [botskillall worse] [Changes the previous bot skill level for all bots to a 'worse' skill level.];
  315. docident [botsshoot] [Enables or disables the ability of the bots to fire their weapons];
  316. docargument [T] [shooting bots?] [0||1] [0];
  317. docexample [botsshoot 0] [Bots won't shoot.];
  318. docident [changefollowplayer] [];
  319. docargument [D] [delta] [how many players to shift +/-] [0];
  320. docident [clearignored] [Clear list of ignored players.];
  321. docargument [A] [optional client number] [] [0];
  322. docremark [Omit the client number to clear the whole list.];
  323. docident [clearmuted] [Clear list of muted players.];
  324. docargument [A] [optional client number] [] [0];
  325. docremark [Omit the client number to clear the whole list.];
  326. docident [complete] [];
  327. docargument [C] [command] [any command or alias] [0];
  328. docargument [P] [path] [path to search] [0];
  329. docargument [E] [extension] [extension to match] [0];
  330. docremark [The completion will work on the first word of your console input.];
  331. docexample [complete demo "demos" dmo] [If you enter "/demo " and press TAB you will cycle through all available demos.];
  332. docexample [alias mapcomplete [complete $arg1 "packages/maps" cgz]] [helper alias for quickly adding complete-definitions for all gamemodes - see config/script.cfg (below "Auto-Completions")];
  333. docident [connect] [Connects to a server.];
  334. docargument [N] [the address of the server (hostname or IP)] [] [0];
  335. docargument [O] [the port] [] [0];
  336. docargument [P] [the server password] [] [0];
  337. docremark [If the server name is omitted, the client will try to connect to an available server in the LAN. If the port is omitted or set to 0, the default port will be used.];
  338. docexample [connect 127.0.0.1 555 myServerPassword] [];
  339. docident [connectadmin] [Connects to a server and tries to claim admin state.];
  340. docargument [N] [the address of the server (hostname or IP)] [] [0];
  341. docargument [O] [the port] [] [0];
  342. docargument [P] [the admin password] [] [0];
  343. 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.];
  344. docremark [If the server name ist omitted, the client will try to connect to an available server in the LAN. If the port is omitted or set to 0, the default port will be used.];
  345. docexample [connectadmin 127.0.0.1 777 myAdminPassword] [connect as admin on port 777 of localhost];
  346. docexample [connectadmin "" 0 myAdminPassword] [will try to connect to a LAN server on the default port as admin with the given password of "myAdminPassword".];
  347. docident [crouch] [];
  348. docident [curmap] [Returns the current map being played.];
  349. docargument [I] [clean] [0, 1] [0];
  350. docremark [If you pass it a non-zero value, the result will be path-less.];
  351. docexample [echo playing: (curmap) vote for: (curmap 1)] [output: playing maps/ac_complex vote for: ac_complex];
  352. docident [curmaprevision] [Current map revision number.];
  353. docargument [] [-] [ read-only];
  354. docident [curmastermode] [Returns the current mastermode];
  355. docident [curmode] [Returns the mode number for the current game.];
  356. docident [curmodeattr] [Checks the current game mode for certain attributes.];
  357. docargument [A] [attribute name] [] [0];
  358. docremark [Possible attributes are: team, arena, flag and bot.];
  359. docident [currentprimary] [Returns the weapon-index the local player currently has selected as primary.];
  360. docremark [This is not the same as curweapon - which could be a grenade or the knife.];
  361. docident [currole] [Returns 1 if the local player has admin privileges, 0 otherwise.];
  362. docident [curserver] [Returns information on the current server - if you're connected to one.];
  363. docargument [I] [info] [0, 1, 2, 3 or 4] [0];
  364. docremark [If I is 0 (omitted or any other value than the ones below) you will get a string with 'IP PORT'];
  365. docremark [If I is 1,2 or 3 you will get the IP, HostName or port respectively.];
  366. docremark [If I is 4 you get a string representing the current state of the peer - usually this should be 'connected'.];
  367. docexample [echo [I am (curserver 4) to (curserver 2)]] [Output: I am connected to ctf-only.assault-servers.net];
  368. docexample [last_server = "" remember_server = [ if (strcmp (curserver 4) "connected") [ last_server = (curserver 0) echo "I'm remembering:" $last_server ] [ echo "you are not 'connected' - you" (concatword "are '" (curserver 4) "' !") ] ] bind PRINT [ if (strcmp $last_server "") [ remember_server ] [ say (concat "^L2I was just ^Lfon^L3" $last_server) last_server = "" ] ]] [This will either remember or retrieve the last server you pressed the PrintScreen-key on.];
  369. docident [curteam] [Returns 1 if the local player is on the RVSF team, 0 if on CLA.];
  370. docident [curweapon] [Returns the weapon-index the local player is currently holding.];
  371. docident [demo] [Plays a recorded demo.];
  372. docargument [S] [the demo name] [] [0];
  373. docremark [Playback is interpolated for the player whose perspective you view.];
  374. docident [disconnect] [Leaves a server.];
  375. docident [drawbeamtobots] [Draws a shooting line in the direction of all available bots.];
  376. docargument [] [this command does not take any arguments] [none] [0];
  377. docremark [This is a debugging command and only works for single player modes.];
  378. docident [dropflag] [Drops the enemy flag.];
  379. docident [footstepalign] [Maximum time span between player animation and the playback of the footstep sound];
  380. docargument [T] [time span] [min 5/max 4000/default 15];
  381. docremark [If the footstep sound would be played immediately when entering the radius of the other player, it would not be synchronous to the player model animation.];
  382. docident [footsteps] [Indicates if the footsteps sound should be played];
  383. docargument [B] [enable footsteps] [1 (true), 0 (false) min 0/max 1/default 1];
  384. docident [gamespeed] [Sets the gamespeed in percent.];
  385. docargument [N] [the game speed] [min 10/max 1000/default 100];
  386. docremark [This does not work in multiplayer. For entertainment purposes only :)];
  387. docident [gametimecurrent] [Returns the time (in milliseconds) of the currently played game. READ ONLY];
  388. docexample [showtime = [ if (> $lastgametimeupdate 0) [ gmr = (- $gametimemaximum (+ $gametimecurrent (- (millis) $lastgametimeupdate))) gsr = (div $gmr 1000) gts = (mod $gsr 60) if (< $gts 10) [ gts = (concatword 0 $gts) ] [ ] gtm = (div $gsr 60) if (< $gtm 10) [ gtm = (concatword 0 $gtm) ] [ ] echo (concatword $gtm : $gts) remaining ] [ echo gametime not updated yet ] ]] [];
  389. docident [gametimemaximum] [Returns the maximum time (in milliseconds) of the currently played game. READ ONLY];
  390. docident [getclientmode] [Returns the current game mode number.];
  391. docident [getdemo] [];
  392. docargument [X] [number in list] [] [0];
  393. docargument [P] [subpath (optional)] [] [0];
  394. docident [getmap] [Retrieves the last map that was sent to the server using 'sendmap'.];
  395. docident [hidecustomskins] [];
  396. docargument [B] [] [min 0/max 1/default 0];
  397. docident [idlebots] [Enables or disables the processing of the bots artificial intelligence];
  398. docargument [T] [off OR on] [0||1] [0];
  399. docexample [idlebots 1] [Will make the bots stand still.];
  400. docexample [idlebots 0] [Will enable the bots to move and shoot.];
  401. docident [ignore] [Ignore a player.];
  402. docargument [A] [client number] [] [0];
  403. docremark [You won't see any further game chat or hear any more voice com messages from that player.];
  404. docident [inputcommand] [Makes an input perform a certain command.];
  405. docargument [I] [input] [] [0];
  406. docargument [C] [command] [] [0];
  407. docargument [P] [prompt] [] [0];
  408. docident [kickallbots] [Kicks all bots out of the current game.];
  409. docargument [] [this command does not take any arguments] [none] [0];
  410. docident [kickbot] [Kicks the bot with the given name out of the current game.];
  411. docargument [N] [botname] [name of the bot to kick.] [0];
  412. docexample [kickbot Robbie] [Will make the bot named "Robbie" dissapear from the current game.];
  413. docident [lanconnect] [];
  414. docident [lastgametimeupdate] [Returns the last time (in milliseconds) the gametime was updated. READ ONLY];
  415. docident [listcomplete] [];
  416. docident [listdemos] [Get the game demos listing from the server we are currently connected.];
  417. docident [listignored] [Print a list of all players that you are currently ignoring.];
  418. docident [listmuted] [Print a list of all players that you have muted.];
  419. docident [loadcrosshair] [Loads a crosshair for a specific weapon of - if the weapon argument is omitted or <0 - for all weapons.];
  420. docargument [I] [image] [] [0];
  421. docargument [W] [weapon] [-1,0..7] [0];
  422. docident [localfootsteps] [Indicates if the footsteps sound for the local player should be played];
  423. docargument [B] [enable footsteps] [1 (true), 0 (false) min 0/max 1/default 1];
  424. docident [magcontent] [Returns contents of current magazine.];
  425. docargument [N] [the weapon number] [0 (knife), 1 (pistol), 2 (shotgun), 3 (sub), 4 (sniper), 5 (assault), 6 (grenades)] [0];
  426. docremark [A knife will always return 1.];
  427. docremark [Weapons that aren't available will return -1.];
  428. docexample [wnames = "Knife Pistol Shotgun Sub Sniper Assault Grenades" numtwo = [ if (< $arg1 10) [ result (concatword 0 $arg1) ] [ result $arg1 ] ] ammoinfo = [ loop w (listlen $wnames) [ mc = (magcontent $w) mr = (magreserve $w) mt = (+ $mr $mc) if (> $mt 0) [ echo (numtwo $mc) "/" (numtwo $mr) ":" (at $wnames $w) ] ] ] Output: 01 / 01 : Knife 08 / 64 : Pistol 30 / 60 : Sub] [];
  429. docident [magreserve] [Returns contents of magazine reserve.];
  430. docargument [N] [the weapon number] [0 (knife), 1 (pistol), 2 (shotgun), 3 (sub), 4 (sniper), 5 (assault), 6 (grenades)] [0];
  431. docident [map] [Loads up a map in the gamemode set previously by the 'mode' command.];
  432. docargument [M] [Name of the map to load] [string] [0];
  433. docremark [If connected to a multiplayer server, it votes to load the 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.];
  434. docremark [A map given as "blah" refers to "packages/maps/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 there can be overridden per package or per map by creating a "mapname.cfg" which contains whatever you want to do differently from the default.];
  435. docremark [When the map finishes it will load the next map when one is defined, otherwise it 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").];
  436. docident [mapname] [returns the mapname];
  437. docident [mapsize] [outputs the mapsize.];
  438. docident [mapstartalways] [If this alias exists it will be run every time the game starts a new map.];
  439. docexample [mapstartalways = [ echo "------------------------------" ]] [This will output the string and override any other actions that might've been defined.];
  440. docexample [addOnLoadAlways [ echo "------------------------------" ]] [This will output the string after any previously defined actions have run.];
  441. docident [mapstartonce] [If this alias exists it will be run when the game starts a new map, then it is deleted.];
  442. docexample [mapstartonce = [ echo "------------------------------" ]] [This will output the string and override any other actions that might've been defined.];
  443. docexample [addOnLoadOnce [ echo "------------------------------" ]] [This will output the string after any previously defined actions have run.];
  444. docident [mdldyncache] [];
  445. docargument [V] [] [min 1/max 32/default 2];
  446. docident [mdlstatcache] [];
  447. docargument [V] [] [min 1/max 32/default 1];
  448. docident [me] [Action chat message.];
  449. docargument [...] [...] [] [1];
  450. docident [minutesremaining] [Returns the remaining minutes of the currently played game. READ ONLY];
  451. docident [modconnect] [Connect to a modded server.];
  452. docargument [A] [IP] [] [0];
  453. docargument [B] [port] [] [0];
  454. docargument [C] [password] [] [0];
  455. docremark [The modified server needs to use the original client-server protocol. The protocol version number will be the negated value of an unmodded server.];
  456. docident [modconnectadmin] [Connect to a modded server and claim admin.];
  457. docargument [A] [IP] [] [0];
  458. docargument [B] [port] [] [0];
  459. docargument [C] [admin password] [] [0];
  460. docremark [The modified server needs to use the original client-server protocol. The protocol version number will be the negated value of an unmodded server.];
  461. docident [modlanconnect] [Connect to a modified LAN server.];
  462. docremark [The modified server needs to use the original client-server protocol. The protocol version number will be the negated value of an unmodded server.];
  463. docident [muteplayer] [Mute a player];
  464. docargument [A] [client number] [] [0];
  465. docremark [You won't hear any further voice com messages from that player.];
  466. docident [name] [Sets the nick name for the local player.];
  467. docargument [N] [the name] [] [0];
  468. docident [nextprimary] [Returns the primary weapon on next respawn.];
  469. docargument [A] [weapon id] [value] [0];
  470. docident [nickcomplete] [adds a command to complete nicknames on];
  471. docremark [your own nick will be ignored];
  472. docexample [nickgreet = [ say (concat "Hello," (concatword $arg1 "!")) ]; nickcomplete nickgreet] [with this you can enter "/nickgreet " and cycle via TAB to the nickname you want to greet.];
  473. docident [paused] [Determines if the game should be paused.];
  474. docargument [B] [pause game] [min 0/max 1/default 0];
  475. docident [prevweapon] [Returns the weapon-index the local player was previously holding.];
  476. docident [pstat_score] [Returns the score statistics for the player with the given clientnumber.];
  477. docargument [C] [client] [0..N] [0];
  478. docexample [echo (pstat_score 0)] [Output: 0 5 3 43 1 unarmed];
  479. docident [pstat_weap] [Returns the shot statistics for the player with the given clientnumber.];
  480. docargument [C] [client] [0..N] [0];
  481. docexample [echo (pstat_weap 0)] [Output: 0 0 0 0 0 0 0 0 0 0 1 240 15 312 0 0 3 112 0 0];
  482. docident [reload] [Reloads the weapon.];
  483. docargument [A] [] [value] [0];
  484. docident [say] [Outputs text to other players.];
  485. docargument [S...] [the text] [] [1];
  486. docremark [If the text begins with a percent character (%), only team mates will receive the message.];
  487. docident [saycommand] [Puts a prompt on screen.];
  488. docargument [S...] [the text to display in the prompt] [] [1];
  489. docremark [this puts a prompt on screen that you can type into, and 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.];
  490. dockey [T] [] [opens empty prompt];
  491. dockey [BACKQUOTE] [`] [opens a command prompt /];
  492. dockey [TAB] [] [autocompletes commands/variables/aliases];
  493. dockey [UP] [] [browse command history forwards];
  494. dockey [DOWN] [] [browse command history backwards];
  495. docident [scopefov] [Determines the FOV when scoping.];
  496. docargument [V] [] [min 5/max 60/default 50];
  497. docident [setscope] [will display a scope for the sniper-rifle. used in the zoom-script (config/scripts.cfg [l. 92ff "alias zoom"]];
  498. docargument [Y] [scope on?] [0||1] [0];
  499. docident [shiftweapon] [shifts your selected weapon by a given delta. By default the mouse-wheel shifts one up or down according to your scroll direction.];
  500. docargument [D] [delta] [-N..-1,+1..N] [0];
  501. dockey [MOUSE4] [] [cycle one up];
  502. dockey [MOUSE5] [] [cycle one down];
  503. docident [showmap] [Determines if the mini-map should be shown on screen.];
  504. docargument [B] [show mini-map] [min 0/max 1/default 0];
  505. docident [showscores] [Shows or hides the scores.];
  506. dockey [TAB] [] [];
  507. docident [showscoresondeath] [Determines if scores should be shown on death.];
  508. docargument [V] [] [min 0/max 1/default 1];
  509. docident [skin] [Determines the skin of the current player.];
  510. docargument [N] [skin id] [value] [0];
  511. docremark [See the player model folder for the according skin-id.];
  512. docident [skin_cla] [Choose skin when playing for team CLA.];
  513. docargument [N] [skin id] [] [0];
  514. docident [skin_rvsf] [Choose skin when playing for team RVSF.];
  515. docargument [N] [skin id] [] [0];
  516. docident [spectatemode] [Toggle into spectator mode - only possible when you're dead!];
  517. dockey [SPACE] [] [switch spectator mode];
  518. dockey [MOUSE4] [] [next player];
  519. dockey [MOUSE5] [] [previous player];
  520. docident [start_intermission] [If this alias exists it will be run when the game reaches intermission.];
  521. docexample [start_intermission = [ echo "INTERMISSION - STATISTICS TIME" loop p 255 [ pn = (findpn $p) if (strcmp $pn "") [ ] [ echo (concatword Player $p ":") (pstat_score $p) ":" (pstat_weap $p) ] ] echo "------------------------------" ]] [This will output the full statistics line for all players.];
  522. docident [stopdemo] [Stops any demo recording or playback.];
  523. docident [suicide] [Kills your player. You will lose 1 frag point and gain 1 death point when using this command.];
  524. docident [team] [Sets the team for the local player.];
  525. docargument [S] [the team name] [either CLA or RVSF] [0];
  526. docexample [team CLA] [];
  527. docident [togglespect] [cycles through all available spectator modes. Follow-1stPerson, Follow-3rdPerson, Follow-3rdPerson-transparent and Fly.];
  528. dockey [SPACE] [] [cycle spectator modes];
  529. docident [voicecom] [];
  530. docargument [S] [sound] [must be a registered voicecom-sound] [0];
  531. docargument [T] [text] [] [0];
  532. dockey [V] [] [opens the voicecom menu, use number keys for your choice];
  533. docident [vote] [agree or disagree to the currently running vote];
  534. docargument [V] [vote value] [1 (yes) OR 2 (no)] [0];
  535. dockey [F1] [] [votes YES];
  536. dockey [F2] [] [votes NO];
  537. docident [watchingdemo] [Returns 1 when the current game is being played from a demo, else 0.];
  538. docexample [echo I am (at [not now] (watchingdemo)) watching a demo. "so, are you?"] [];
  539. docident [weapon] [Changes the weapon.];
  540. docargument [N] [the weapon number] [0 (knife), 1 (pistol), 2 (shotgun), 3 (sub), 4 (sniper), 5 (assault), 6 (grenades)] [0];
  541. docident [whois] [get the IP address of a given clientnumber - only admins get shown the last octet];
  542. docargument [C] [clientnum] [] [0];
  543. docident [xhairwpsel] [Determines if bot waypoints should be selected/placed using the crosshair or by the nearest location to your player.];
  544. docargument [V] [Note: This is turned on by default.] [min 0/max 1/default 1];
  545. docsection [Editing]
  546. docident [addpath1way1] [];
  547. docident [addpath1way2] [];
  548. docident [addpath2way1] [];
  549. docident [addpath2way2] [];
  550. docident [addwp] [];
  551. docident [advancemaprevision] [Select the increment of the map revision number for the next 'savemap'.];
  552. docargument [N] [increment] [min 1/max 100/default 1];
  553. docident [ambientsoundvol] [Deletes the entity closest to the player];
  554. docremark [hotkey x];
  555. docident [applymapsoundchanges] [during map editing, drop all mapsounds so they can be re-added];
  556. docident [arch] [Makes an arch out of the current selection.];
  557. docargument [S] [side delta (optional)] [] [0];
  558. docremark [The selection must be a heightfield 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 at least 2 thick to see the effect). Not all arch sizes are necessarily available, see config/prefabs.cfg.];
  559. docident [archvertex] [Defines a vertex delta for a specific arch span prefab, used by the 'arch' command.];
  560. docargument [S] [span value] [integer] [0];
  561. docargument [V] [vertex value] [integer] [0];
  562. docargument [D] [delta value] [integer] [0];
  563. docremark [See config/prefabs.cfg for an example on usage.];
  564. docident [autowp] [];
  565. docident [clearents] [Deletes all entities of said type.];
  566. docargument [T] [the entity type, see command 'newent'] [string] [0];
  567. docident [closestenttype] [Restrict 'closest entity' display to one entity type.];
  568. docargument [A] [entity type] [] [0];
  569. docident [copy] [Copies the current selection into a buffer.];
  570. docremark [hotkey c];
  571. docident [copyent] [Copies the current closest entity into a buffer.];
  572. docident [corner] [Makes the current selection into a "corner".];
  573. 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).];
  574. 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.];
  575. dockey [K] [] [];
  576. docident [delent] [Deletes the entity closest to the player];
  577. docremark [hotkey x];
  578. docident [delpath1way1] [];
  579. docident [delpath1way2] [];
  580. docident [delpath2way1] [];
  581. docident [delpath2way2] [];
  582. docident [delwp] [];
  583. docident [editaxis] [Contains the main axis of the player orientation.];
  584. docargument [N] [11: X, 12: Y, 13: Z] [min 0/max 13/default 0];
  585. docident [editheight] [Changes the height of the current selection.];
  586. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  587. docargument [D] [the delta value to move it in] [1 (forwards), -1 (backwards)] [0];
  588. docremark [Default keys are [ and ] for floor level, and o/p for ceiling.];
  589. docident [editing] [];
  590. docargument [V] [] [min 1/max 0/default 0];
  591. docident [edittag] [];
  592. docargument [T] [tag] [integer value] [0];
  593. docident [edittex] [Changes the texture on current selection by browsing through a list of textures directly shown on the cubes.];
  594. docargument [T] [an integer denoting the type] [0 (floor), 1 (lower or wall), 2 (ceiling), 3 (upper wall)] [0];
  595. docargument [D] [the direction you want to cycle the textures in] [1 (forwards), -1 (backwards)] [0];
  596. 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).];
  597. 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.];
  598. docident [edittoggle] [switches between map edit mode and normal.];
  599. 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, normal physics and collision don't apply (clips), 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.];
  600. docremark [Hotkey E];
  601. docident [entproperty] [Changes property of the closest entity.];
  602. docargument [P] [the property to change] [0..3] [0];
  603. docargument [A] [amount by which the property is increased] [integer] [0];
  604. docremark [For example 'entproperty 0 2' when executed near a lightsource would increase its radius by 2.];
  605. docident [entset] [Edits the closest entity.];
  606. docargument [type] [the entity type] [light, sound, clip, plclip, playerstart, pistol, ammobox, grenades, health, armour, akimbo, mapmodel, ladder, ctf-flag, helmet] [0];
  607. docargument [value1] [see newent 'type'] [] [0];
  608. docargument [value2] [see newent 'type'] [] [0];
  609. docargument [value3] [see newent 'type'] [] [0];
  610. docargument [value4] [see newent 'type'] [] [0];
  611. docremark [Overwrites the closest entity with the specified values.];
  612. docident [entstats] [Print some map entity statistics to the console.];
  613. docident [equalize] [Levels the floor/ceiling of the selection.];
  614. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  615. docremark [default keys , and .];
  616. docident [flrceil] [A variable indicating if the player looks at the floor or at the ceiling.];
  617. docargument [B] [flrceil] [0 (floor), 2 (ceiling) read-only];
  618. docident [fullbright] [Sets all light values to fullbright.];
  619. docargument [B] [sets fullbright on or off] [0 (off), 1 (on)] [0];
  620. docremark [Will be reset when you issue a 'recalc'. Only works in edit mode.];
  621. docident [getentattr] [];
  622. docident [getenttype] [];
  623. docident [getmapmsg] [Returns the map message of the current map.];
  624. docident [heightfield] [Marks the current selection as a heightfield.];
  625. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  626. 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).];
  627. 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 heightfield. This also means if you have 2 independent heightfields accidentally touch each other, you will not get correct caps. Also, a heightfield is slightly slower to render than a non-heightfield 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.];
  628. docident [lightscale] [Used to finetune the "overbright lighting" rendering feature when enabled.];
  629. docargument [N] [the brightness of the scene] [min 1/max 100/default 4];
  630. docremark [After changing this value, a "recalc" is needed to see the differences.];
  631. docident [listmapdependencies] [Prints all media dependencies of a map to a file.];
  632. docargument [A] [map name] [] [0];
  633. docremark [The output will be added to the file 'mapdependencies.txt'.];
  634. docident [listmapdependencies_all] [Prints all media dependencies of all maps to a file.];
  635. docargument [A] [42] [] [0];
  636. docremark [The output will be written to the file 'mapdependencies.txt'.];
  637. docident [Map editing] [A variable indicating if the game is in editmode.];
  638. docargument [B] [editmode] [1 (true), 0 (false) read-only];
  639. docident [mapenlarge] [Enlarges the current map.];
  640. docremark [This command will make the current map 1 power of two bigger. So a size 6 map (64x64 units) will become a size 7 map (128x128), with the old map in the middle (from 32-96) and the new areas solid.];
  641. docident [mapmsg] [Sets the map message, which will be displayed when the map loads.];
  642. docargument [M] [The map message] [String] [0];
  643. docremark [You will need to use quote marks around the message, otherwise it save the message correctly.];
  644. docremark [For example: /mapmsg "Map By Author"];
  645. docident [mapshrink] [Reduces the world size by 1.];
  646. docremark [This command will make the current map 1 power of two smaller. So a size 7 map (128x128) will become a 6 size map (64x64 units), by removing 32 cubes from each side. The area to be removed needs to be empty (= all solid).];
  647. docident [movemap] [Move the whole map (including all entities) in the specified direction.];
  648. docargument [dX] [x-offset] [] [0];
  649. docargument [dY] [y-offset] [] [0];
  650. docargument [dZ] [z-offset] [] [0];
  651. docident [newent] [Adds a new entity];
  652. docargument [type] [the entity type] [light, sound, clip, plclip, playerstart, pistol, ammobox, grenades, health, armour, akimbo, mapmodel, ladder, ctf-flag, helmet] [0];
  653. docargument [value1] [see newent 'type'] [] [0];
  654. docargument [value2] [see newent 'type'] [] [0];
  655. docargument [value3] [see newent 'type'] [] [0];
  656. docargument [value4] [see newent 'type'] [] [0];
  657. 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).];
  658. docident [newent akimbo] [Adds a new akimbo item.];
  659. docident [newent ammobox] [Adds a new ammo box item.];
  660. docident [newent armour] [Adds a new armour item.];
  661. docident [newent clip] [Adds a clip entity.];
  662. docargument [Z] [elevation above the ground] [integer] [0];
  663. docargument [X] [X radius around the box center] [integer] [0];
  664. docargument [Y] [Y radius around the box center] [integer] [0];
  665. docargument [H] [height of the box] [integer] [0];
  666. docremark [Defines a clipping box against which the player will collide.];
  667. docremark [Use this clip type to clip visible obstacles like fences or the gas tank. If you only want to prevent a player from entering an area, use plclip instead.];
  668. docident [newent ctf-flag] [Adds a CTF flag entity.];
  669. docargument [T] [denotes the flag's team] [0 (CLA), 1 (RVSF)] [0];
  670. docremark [Note that this entity is only rendered as flag if the current game mode is CTF.];
  671. docident [newent grenades] [Adds a new grenades item.];
  672. docident [newent health] [Adds a new health item.];
  673. docident [newent helmet] [Adds a new helmet item.];
  674. docident [newent ladder] [Adds a ladder entity.];
  675. docargument [H] [the height of the ladder] [integer] [0];
  676. docremark [Note that this entity is used for physics only, to create a visual ladder you will need to add a mapmodel entity too.];
  677. docident [newent light] [Adds a new light entity];
  678. docargument [radius] [the light radius] [1..32] [0];
  679. docargument [R] [red colour component. see remarks below.] [1..255] [0];
  680. docargument [G] [green colour component] [1..255] [0];
  681. docargument [B] [blue colour component] [1..255] [0];
  682. docremark [if only argument R is specified, it is interpreted as brightness for white light.];
  683. docident [newent mapmodel] [Adds a map model to the map (i.e. a rendered md2/md3 model which you collide against but has no behaviour or movement)];
  684. docargument [N] [The mapmodel identifier] [Integer] [0];
  685. docargument [Z] [Extra elevation above ground] [Integer] [0];
  686. docargument [T] [The map texture to use (optional)] [Integer] [0];
  687. docremark [The mapmodel identifier is the desired map model which is defined by the 'mapmodel' command. The order in which the mapmodel is placed in the map config file defines the mapmodel identifier. 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, so do not use insane amounts of them to replace normal geometry.];
  688. docident [newent pistol] [Adds a pistol magazine item.];
  689. docident [newent playerstart] [Adds a new spawn spot.];
  690. docremark [The yaw is taken from the current camera yaw.];
  691. docident [newent plclip] [Adds a player clip entity.];
  692. docargument [Z] [elevation above the ground] [integer] [0];
  693. docargument [X] [X radius around the box center] [integer] [0];
  694. docargument [Y] [Y radius around the box center] [integer] [0];
  695. docargument [H] [height of the box] [integer] [0];
  696. docremark [Defines a clipping box against which (only) the player will collide.];
  697. docremark [Use this clip type to define no-go areas for players without visible obstacles, for example to prevent players from walking on a wall.];
  698. docremark [Nades will not be affected by this clip type.];
  699. docident [newent sound] [Adds a sound entity.];
  700. docargument [N] [the sound to play] [integer] [0];
  701. docargument [R] [the radius] [] [0];
  702. docargument [S] [the size] [default 0] [0];
  703. docargument [V] [the volume] [default 255] [0];
  704. docremark [Will play map-specific sound so long as the player is within the radius. However, only up to the max uses allowed for N (specified in the mapsound command) will play, even if the player is within the radius of more N sounds than the max. By default (size 0), the sound is a point source. Its volume is maximal at the entity's location, and tapers off to 0 at the radius. If size is specified, the volume is maximal within the specified size, and only starts tapering once outside this distance. Radius is always defined as distance from the entity's location, so a size greater than or equal to the radius will just make a sound that is always max volume within the radius, and off outside.];
  705. docremark [A sound entity can be either ambient or non-ambient. Ambient sounds have no specific direction, they are 'just there'. Non-ambient sounds however appear to come from a specific direction (stereo panning). If S is set to 0, the sound is a single point and will therefore be non-ambient. However if S is greater than 0, the sound will be ambient as it covers a specified area instead of being a single point.];
  706. docident [newmap] [Creates a new map.];
  707. docargument [S] [the size of the new map] [6..12] [0];
  708. docremark [The new map has 2^S cubes. For S, 6 is small, 7 medium, 8 large.];
  709. docident [nextclosestent] [Choose another 'closest ent'.];
  710. docremark [Use this, when two entities are placed in exactly the same location.];
  711. docident [nextplayerstart] [Visit next player spawn entity.];
  712. docargument [TYPE] [0|1|100] [] [0];
  713. docident [paste] [Pastes a previously copied selection.];
  714. 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.];
  715. docremark [hotkey v];
  716. docident [pasteent] [Pastes a previously copied entity.];
  717. docident [perlin] [Generates a perlin noise landscape in the current selection.];
  718. docargument [S] [the scale, frequency of the features] [default is 10] [0];
  719. docargument [E] [the random seed] [integer] [0];
  720. docargument [C] [cube size, how many cubes to generate a surface for at once (unused)] [] [0];
  721. docremark [Keep the seed the same to create multiple perlin areas which fit with each other, or use different numbers if to create alternative random generations.];
  722. docident [recalc] [Recomputes all there is to recompute about a map, currently only lighting.];
  723. docremark [hotkey R];
  724. docident [registersound] [Registers a sound.];
  725. docargument [N] [sound name] [string, see config/sounds.cfg] [0];
  726. 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.];
  727. docremark [See for example config/sounds.cfg.];
  728. docident [replace] [Repeats the last texture edit throughout the map.];
  729. docremark [The way it works is intuitive: simply edit any texture anywhere, then using "replace" will replace all textures throughout the map in the same way (taking into account whether 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.];
  730. docident [savemap] [Saves the current map.];
  731. docargument [M] [file name of the map, see command 'map' for the naming scheme] [string] [0];
  732. 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.];
  733. 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.];
  734. docident [scalelights] [Scales all lights in the map.];
  735. docargument [S] [size change (percentage)] [] [0];
  736. docargument [I] [intensity change (percentage)] [] [0];
  737. docremark [This command is useful if a map is too dark or bright but you want to keep the light entities where they are.];
  738. docident [select] [Selects the given area, as if dragged with the mouse.];
  739. docargument [X] [the X coordinate] [] [0];
  740. docargument [Y] [the Y coordinate] [] [0];
  741. docargument [XS] [the length along the X axis] [] [0];
  742. docargument [XY] [the length along the Y axis] [] [0];
  743. 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.];
  744. 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.).];
  745. docident [selectionflip] [Flip the selected part of the map at an axis.];
  746. docargument [AXIS] [X or Y] [] [0];
  747. docident [selectionrotate] [Rotate the selected part of the map in 90 degree steps.];
  748. docargument [D] [steps] [] [0];
  749. docremark [To rotate clockwise, use a positive number of steps. Note, that only quadratic selections can be rotated by 90 degrees.];
  750. docident [selx] [Current selection: x-coordinate];
  751. docargument [N] [x] [min 0/max 4096/default 0];
  752. docident [selxs] [Current selection: x-span];
  753. docargument [N] [xs] [min 0/max 4096/default 0];
  754. docident [sely] [Current selection: y-coordinate];
  755. docargument [N] [y] [min 0/max 4096/default 0];
  756. docident [selys] [Current selection: y-span];
  757. docargument [N] [ys] [min 0/max 4096/default 0];
  758. docident [setjumpwp] [];
  759. docident [setwpyaw] [takes the current player yaw for the current waypoint];
  760. docident [showmip] [Toggles between showing what parts of the scenery are rendered.];
  761. docremark [Shows what parts of the scenery are rendered using what size cubes, and outputs some statistics about it. This can give map editors hints as to what architecture to align, textures to change, etc.];
  762. docident [showmodelclipping] [Show mapmodel clipping during edit mode.];
  763. docargument [N] [-] [min 0/max 1/default 0];
  764. docident [slope] [Makes a slope out of the current selection.];
  765. docargument [X] [x delta step] [integer] [0];
  766. docargument [Y] [y delta step] [integer] [0];
  767. docremark [The selection must be a heightfield 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.];
  768. docident [solid] [makes the current selection all solid (i.e. wall) or all non-solid.];
  769. docargument [B] [an integer denoting the solid-ness] [0 (non-solid), 1..* (solid)] [0];
  770. docremark [This operation retains floor/ceiling heights/textures while swapping between the two. Default keys f and g respectively.];
  771. docident [telebot] [teletransports the bot with the lowest connection number to you current position.];
  772. docargument [] [this command does not take any arguments] [none] [0];
  773. docremark [This is a debugging command and only works for single player modes.];
  774. docident [testvisible] [];
  775. docargument [D] [direction] [0..5 for Forward, Backward, Left, Right, Up AND Down] [0];
  776. docident [togglebotview] [When used you will see what the bot sees. Type it again (with or without name) to return to the game(you will respawn).];
  777. docargument [N] [botname] [the name of the bot] [0];
  778. docident [togglegrap] [Will toggle the focus of the mouse in game. Normally you can use your mouse to look around, when you type this command your mouse cursor is visible and can be used as normally. This is only useful when you run cube windowed, of course.];
  779. docident [toggleocull] [Turns occlusion culling on and off.];
  780. 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.];
  781. docident [undo] [Multi-level undo of any of the changes caused by editing operations];
  782. docremark [hotkey u];
  783. docident [undomegs] [Sets the number of megabytes used for the undo buffer.];
  784. docargument [N] [number of megabytes, default is 1] [integer] [0];
  785. 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).];
  786. docident [unsetjumpwp] [];
  787. docident [vdelta] [changes the vdelta value of the current selection];
  788. docargument [N] [vdelta value] [] [0];
  789. 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 :)];
  790. 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.];
  791. docident [waterlevel] [Sets the global water level for the map.];
  792. docargument [H] [the water level] [integer] [0];
  793. 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.];
  794. 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 each other. Players can influence how accurate the water is rendered using the "watersubdiv" command (map config).];
  795. docident [wpclear] [];
  796. docident [wpflood] [];
  797. docident [wpinfo] [makes waypoints visible and either turns on or off the waypoint information display.];
  798. docargument [Y] [show info?] [0||1] [0];
  799. docident [wpload] [];
  800. docident [wpsave] [];
  801. docident [wpvisible] [];
  802. docargument [V] [visible] [0||1] [0];
  803. docsection [Menus]
  804. docident [chmenumdl] [Changes the menu model of a specified menu.];
  805. docargument [N] [the name of the menu] [] [0];
  806. docargument [M] [the (new) model] [] [0];
  807. docargument [A] [the animation to play] [] [0];
  808. docargument [R] [the rotation speed] [] [0];
  809. docargument [S] [the scale] [] [0];
  810. docident [closemenu] [Closes the specified menu if it is open.];
  811. docargument [N] [the name of a previously defined menu] [] [0];
  812. docremark [If it is open multiple times in the stack only the topmost instance will be closed!];
  813. docident [menuinit] [Specifies commands to be executed when a menu opens.];
  814. docargument [C] [The code to execute on init] [] [0];
  815. docremark [This command should be placed after newmenu.];
  816. docident [menuinitselection] [Defines the initial selection for a menu.];
  817. docargument [A] [line number] [] [0];
  818. docident [menuitem] [Creates a new menuitem.];
  819. docargument [N] [The menuitem description.] [] [0];
  820. docargument [A] [The command to execute on selection of the menuitem.] [] [0];
  821. docargument [H] [The command to execute upon rolling over the menuitem.] [] [0];
  822. docremark [Upon activating the menuitem, the associated command will be executed. (See config/menus.cfg for examples). If the command argument is omitted, then it will be set to the same value as the description. If -1 is specified instead of the command to execute, then no command is executed when activating the item. If the rollover option is used, the menuitem will execute that command when selecting (but not activating) the menuitem.];
  823. docremark [(Note: To activate the menu item, select it, and either: Click, press SPACE or press ENTER/Return).];
  824. docident [menuitemcheckbox] [];
  825. docident [menuitemimage] [];
  826. docident [menuitemkeyinput] [];
  827. docident [menuitemslider] [];
  828. docident [menuitemtextinput] [];
  829. docident [menuitemvar] [Creates a new menuitem with variable content.];
  830. docargument [N] [The cubescript to generate the menuitem description.] [] [0];
  831. docargument [A] [The command to execute on selection of the menuitem.] [] [0];
  832. docargument [H] [The command to execute upon rolling over the menuitem.] [] [0];
  833. docremark [Like 'menuitem', but the menuitem description will be the result of an evaluation, everytime the menu gets displayed.];
  834. docident [menumdl] [Specifies a model to render while displaying the last added menu.];
  835. docargument [M] [the model] [] [0];
  836. docargument [A] [the animation to play] [] [0];
  837. docargument [R] [the rotation speed] [] [0];
  838. docargument [S] [the scale] [] [0];
  839. docident [menuselection] [Selects a line in a menu.];
  840. docargument [A] [menu name] [] [0];
  841. docargument [B] [line number] [] [0];
  842. docident [menuselectionbgcolor] [Defines the background color for the menu selection bar.];
  843. docargument [R] [red (0..100)] [] [0];
  844. docargument [G] [green (0..100)] [] [0];
  845. docargument [B] [blue (0..100)] [] [0];
  846. docargument [A] [alpha (0..100)] [] [0];
  847. docident [newmenu] [Creates a new menu.];
  848. docargument [N] [The name of the menu] [] [0];
  849. docremark [All menu commands placed after newmenu (i.e. menuitem, menuitemcheckbox, etc) are added into the menu until another "newmenu" command is specified.];
  850. docident [showmenu] [Displays the specified menu.];
  851. docargument [N] [the name of a previously defined menu] [] [0];
  852. 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.];
  853. docsection [Head-Up Display]
  854. docident [aboveheadiconfadetime] [Time in milliseconds before the abovehead icon dissapears.];
  855. docargument [V] [abovehead icon display time] [min 1/max 10000/default 2000];
  856. docident [altconsize] [Sets the number of text lines on an alternate F11 history display.];
  857. docargument [V] [] [min 0/max 100/default 0];
  858. docident [clearminimap] [Recreates the minimap for the current map.];
  859. docident [clockdisplay] [Sets the display mode for the HUD clock.];
  860. docargument [D] [display mode] [min 0/max 2/default 0];
  861. docremark [The clock shows game-time, it is either off (0) or counts backward (1) or forward (2).];
  862. docident [confade] [Sets how many seconds before the console text rolls up.];
  863. docargument [V] [time before text rollout] [min 0/max 60/default 20];
  864. docremark [It may also be viewed as the speed at which the console text dissapears.];
  865. docident [consize] [Sets how many lines of text the console displays.];
  866. docargument [V] [] [min 0/max 100/default 6];
  867. docident [conskip] [Allows to browse through the console history by offsetting the console output.];
  868. docargument [N] [the offset] [] [0];
  869. dockey [KP_MINUS] [- on the keypad] [scrolls into the history (conskip 1)];
  870. dockey [KP_PLUS] [+ on the keypad] [resets the history (conskip -1000)];
  871. docident [crosshairfx] [Turns on or off crosshair effects.];
  872. docargument [B] [Turns the effects on (1) or off (0)] [min 0/max 1/default 1];
  873. docremark [When on, the crosshair will go grey when the weapon is reloading, orange when health is 50 or red when is 25.];
  874. docident [crosshairsize] [Sets the size of your crosshair.];
  875. docargument [N] [the crosshair size] [min 0/max 50/default 15];
  876. docremark [The crosshair is turned off entirely if the size is set to 0.];
  877. docident [crosshairteamsign] [Turns on/off display of team warning crosshair.];
  878. docargument [V] [enable/disable warning crosshair] [min 0/max 1/default 1];
  879. docident [damageindicatoralpha] [Set the level of transparency of the damage indicator, 0 = is fully transparent, 100 = totaly solid.];
  880. docargument [V] [damage indicator alpha value] [min 1/max 100/default 50];
  881. docident [damageindicatordist] [Sets the separation of the arrows in the damage indicator.];
  882. docargument [V] [damage indicator separation size] [min 0/max 10000/default 500];
  883. docident [damageindicatorsize] [Sets the size of the damage indicator.];
  884. docargument [V] [damage indicator icon size] [min 0/max 10000/default 200];
  885. docident [damageindicatortime] [Sets how long the damage indicator stays on screen.];
  886. docargument [V] [damage indicator display time] [min 1/max 10000/default 1000];
  887. docident [fullconsize] [Sets the number of text lines on the F11 history display.];
  888. docargument [V] [] [min 0/max 100/default 40];
  889. docident [hidebigmenuimages] [Hide big images in menus.];
  890. docargument [N] [0: show, 1: hide] [min 0/max 1/default 0];
  891. docident [hidecompass] [Turns on/off the radar compass];
  892. docargument [V] [enable/disable radar compass] [min 0/max 1/default 0];
  893. docident [hideconsole] [Turns on or off the display of console text.];
  894. docargument [V] [enable/disable console text] [min 0/max 1/default 0];
  895. docident [hidectfhud] [Turns on or off the display of flag icons.];
  896. docargument [V] [enable/disable flag icons] [min 0/max 1/default 0];
  897. docident [hidedamageindicator] [Turns on/off the damage indicator];
  898. docargument [V] [enable/disable damage indicator] [min 0/max 1/default 0];
  899. docident [hidehudequipment] [Turns on or off the display of equipement icons.];
  900. docargument [V] [enable/disable equipement icons] [min 0/max 1/default 0];
  901. docident [hidehudmsgs] [Turns on or off the display of messages at the bottom of the screen.];
  902. docargument [V] [enable/disable messages] [min 0/max 1/default 0];
  903. docident [hideradar] [Turns on or off the display of the on-screen radar.];
  904. docargument [V] [enable/disable radar] [min 0/max 1/default 0];
  905. docident [hidespecthud] [Turns on or off the display of spectator staus.];
  906. docargument [V] [enable/disable spectator status] [min 0/max 1/default 0];
  907. docident [hideteam] [Turns on or off the display of local player team icons.];
  908. docargument [V] [enable/disable team icons] [min 0/max 1/default 0];
  909. docident [hidevote] [Turns on or off the display of vote icons.];
  910. docargument [V] [enable/disable vote info] [min 0/max 2/default 0];
  911. docident [history] [Executes the specified command in the command line history.];
  912. docargument [N] [the N'th command from the history] [] [0];
  913. docremark [For example, binding "history 1" to a key allows you to quickly repeat the last command typed in (useful for placing many identical entities etc.)];
  914. docident [hudgun] [Turns on or off the display of the current selected gun.];
  915. docargument [V] [show/hide guns 3D models] [min 0/max 1/default 1];
  916. docident [maxcon] [Sets the total number of text lines from the console to store as history.];
  917. docargument [V] [] [min 10/max 1000/default 200];
  918. docident [maxhistory] [Sets how many typed console commands to store.];
  919. docargument [N] [Total of stored commands] [min 0/max 10000/default 1000];
  920. docremark [This value sets how many command lines to store in memory, everytime a command is entered it gets store so it can be recalled using the "/" key along with the arrow keys to scroll back and forth through the list.];
  921. docident [maxrecoil] [.];
  922. docargument [V] [] [min 0/max 1000/default 1000];
  923. docident [minimapres] [Sets the resolution for the minimap.];
  924. docargument [N] [the resolution] [min 7/max 10/default 9];
  925. docident [nosway] [];
  926. docargument [V] [] [min 0/max 1/default 0];
  927. docident [oldfashionedgunstats] [Show ammo stats like in 1.0];
  928. docargument [N] [0: new, 1: old] [min 0/max 1/default 0];
  929. docident [radarentsize] [Sets the icon size of the players shown in the radar and the minimap.];
  930. docargument [V] [size of icons inside radar] [min 1/max 64/default 4];
  931. docident [recoilbackfade] [];
  932. docargument [V] [] [min 0/max 1000/default 100];
  933. docident [recoilbase] [];
  934. docargument [V] [] [min 0/max 1000/default 40];
  935. docident [recoilincrease] [];
  936. docargument [V] [] [min 1/max 10/default 2];
  937. docident [recoiltest] [.];
  938. docargument [V] [] [min 0/max 1/default 0];
  939. docident [righthanded] [Choose player hand to carry the weapon.];
  940. docargument [N] [0: lefty, 1: righty] [min 0/max 1/default 1];
  941. docident [showstats] [Turns on/off display of FPS/rendering statistics on the HUD.];
  942. docargument [N] [0: Show no stats, 1: Only show FPS stats, 2: Show all stats] [min 0/max 2/default 1];
  943. docident [swaymovediv] [];
  944. docargument [V] [] [min 1/max 1000/default 200];
  945. docident [swayspeeddiv] [];
  946. docargument [V] [] [min 1/max 1000/default 105];
  947. docident [swayupmovediv] [];
  948. docargument [V] [] [min 1/max 1000/default 200];
  949. docident [swayupspeeddiv] [];
  950. docargument [V] [] [min 1/max 1000/default 105];
  951. docsection [Visuals]
  952. docident [aadynshadow] [Sets the size/resolution of the dynamic shadow data.];
  953. docargument [] [the size] [min 0/max 3/default 2];
  954. docident [aboveheadiconsize] [Sets the size for the icon shown above a player using comunications voices.];
  955. docargument [V] [Icon size] [min 0/max 1000/default 50];
  956. docident [animationinterpolationtime] [Sets the time available for interpolation between model animations.];
  957. docargument [N] [the amount of milliseconds for the interpolation] [min 0/max 1000/default 100];
  958. docident [ati_mda_bug] [];
  959. docargument [V] [] [min 0/max 1/default 0];
  960. docident [bilinear] [];
  961. docargument [V] [] [min 0/max 1/default 1];
  962. docident [blood] [Turn on and off the display of blood.];
  963. docargument [V] [Enable/Disable blood] [min 0/max 1/default 1];
  964. docident [bloodttl] [Sets the amount of time in milliseconds that blood is displayed on the ground.];
  965. docargument [V] [Blood display time] [min 0/max 30000/default 10000];
  966. docident [bullethole] [Turns on/off the display of bullet holes];
  967. docargument [V] [Enable/Disable bullet holes] [min 0/max 1/default 1];
  968. docident [bulletholettl] [Specifies how long (in milliseconds) to display bullet holes.];
  969. docargument [V] [Bullethole display time] [min 0/max 30000/default 10000];
  970. docident [colorbits] [Sets the bits per pixel value.];
  971. docargument [] [bits per pixel] [min 0/max 32/default 0];
  972. docident [dbgmbatch] [];
  973. docargument [V] [] [min 0/max 1/default 0];
  974. docident [dbgpos] [Displays local player's current x,y,z position in map, showstats 1 must be enabled.];
  975. docargument [V] [display current position] [min 0/max 1/default 0];
  976. docident [dbgstenc] [];
  977. docargument [V] [] [min 0/max 2/default 0];
  978. docident [dbgtiles] [];
  979. docargument [V] [] [min 0/max 1/default 0];
  980. docident [dbgvlight] [];
  981. docargument [V] [] [min 0/max 1/default 0];
  982. docident [depthbits] [Sets the bits for the depth buffer.];
  983. docargument [] [depth pixels] [min 0/max 32/default 0];
  984. docident [depthoffset] [];
  985. docargument [V] [] [min /max /default 0.005f];
  986. docident [dynlight] [Determines whether dynamic shadows and lights are rendered, provided just incase they slow your fps down too much.];
  987. docargument [R] [the radius of a dynamic light] [min 0/max 32/default 16];
  988. 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).];
  989. docident [dynshadow] [Sets the alpha value (transparency) for dynamic shadows.];
  990. docargument [] [the alpha value] [min 0/max 100/default 40];
  991. docident [dynshadowdecay] [];
  992. docargument [V] [] [min 0/max 3000/default 1000];
  993. docident [dynshadowquad] [];
  994. docargument [V] [] [min 0/max 1/default 0];
  995. docident [dynshadowsize] [Sets the display size of the dynamic shadows.];
  996. docargument [] [the size] [min 4/max 8/default 5];
  997. docident [font] [Loads an image to be used as a text font.];
  998. docargument [A] [Check font.cfg for examples of use] [value] [0];
  999. docident [fontchar] [Especify a region of an image to be used as a font character.];
  1000. docargument [A] [Check font.cfg for examples of use] [value] [0];
  1001. docident [fov] [Sets the field of view (fov).];
  1002. docargument [N] [the FOV value] [min 75/max 120/default 90];
  1003. docident [fovcompat] [Sets the field of view (fov) based on the rules of AC v0.93];
  1004. docargument [A] [FOV degree] [] [0];
  1005. docremark [This command is supplied for backward compatibility.];
  1006. docident [fpsrange] [(descripton unavailable)];
  1007. docargument [A] [min] [] [0];
  1008. docargument [B] [max] [] [0];
  1009. docident [fsaa] [Sets the level of fullscreen antialiasing (FSAA).];
  1010. docargument [] [fsaa] [min 0/max 16/default 0];
  1011. docident [fullbrightlevel] [Sets the level of brightness to use when using the command "/fullbright 1".];
  1012. docargument [V] [Light intensity level] [min 0/max 255/default 176];
  1013. docident [fullscreen] [Enables or disables fullscreen.];
  1014. docargument [] [fullscreen] [min 0/max 1/default 1];
  1015. docremark [Not supported on Windows and Mac.];
  1016. docident [gamma] [Sets the hardware gamma value.];
  1017. docargument [N] [the gamma value] [min 30/max 300/default 100];
  1018. docremark [May not work if your card/driver doesn't support it.];
  1019. docident [gibnum] [Sets the number of gibs to display when performing a "messy" kill (grenade, knife, sniper headshot).];
  1020. docargument [N] [number of gibs] [min 0/max 1000/default 6];
  1021. docremark [Larger values are more spectacular, but can slow down less powerful machines. Reducing gibttl may help in this case.];
  1022. docident [gibsgore] [Adjusts gib/gibnum/gibspeed/gibttl variables collectively.];
  1023. docargument [] [] [0 - Off] [0];
  1024. docargument [] [] [1 - Default/Normal values] [0];
  1025. docargument [] [] [2 - Good] [0];
  1026. docargument [] [] [3 - Messy] [0];
  1027. docargument [] [] [4 - Unrealistic] [0];
  1028. docargument [N] [] [min 0/max 4/default 1];
  1029. docident [gibspeed] [Sets the velocity at which gibs will fly from a victim.];
  1030. docargument [N] [velocity] [min 1/max 100/default 30];
  1031. docident [gibttl] [Sets the time for gibs to live (in milliseconds), after which they will disappear.];
  1032. docargument [N] [time to live] [min 0/max 15000/default 5000];
  1033. docident [glext] [checks for the searchstring in all loaded extensions];
  1034. docargument [E] [extension] [] [0];
  1035. docexample [if (glext shadow_funcs) [echo you have shadow functionality] [echo no shadows for you]] [];
  1036. docident [hwtexsize] [];
  1037. docargument [V] [] [min 1/max 0/default 0];
  1038. docident [lighterror] [Allows to finetune the amount of "error" the mipmapper/stripifier allow themselves for changing lightlevels.];
  1039. docargument [E] [the error value, 1 being the best quality] [ read-only];
  1040. docremark [If this variable is changed this during play, a "recalc" is needed to see the effect.];
  1041. docident [maxtexsize] [];
  1042. docargument [V] [] [min 0/max 4096/default 0];
  1043. docident [mergestrips] [];
  1044. docargument [V] [] [min 0/max 1/default 1];
  1045. docident [mtexplosion] [];
  1046. docargument [V] [] [min 0/max 1/default 1];
  1047. docident [mtwater] [];
  1048. docargument [V] [] [min 0/max 1/default 1];
  1049. docident [particlesize] [Scales all particles.];
  1050. docargument [P] [the scale percentage] [min 20/max 500/default 100];
  1051. docident [polygonoffsetfactor] [];
  1052. docargument [V] [] [min /max /default -3.0f];
  1053. docident [polygonoffsetunits] [];
  1054. docargument [V] [] [min /max /default -3.0f];
  1055. docident [reflectclip] [];
  1056. docargument [V] [] [min 0/max 100/default 3];
  1057. docident [reflectscissor] [];
  1058. docargument [V] [] [min 0/max 1/default 1];
  1059. docident [reflectsize] [];
  1060. docargument [V] [] [min 6/max 10/default 8];
  1061. docident [resetgl] [Resets the OpenGL rendering settings];
  1062. docident [saveshadows] [Sets if dynamic shadows should be saved to disk.];
  1063. docargument [] [auto save] [min 0/max 1/default 1];
  1064. docident [scorch] [];
  1065. docargument [V] [] [min 0/max 1/default 1];
  1066. docident [scorchttl] [];
  1067. docargument [V] [] [min 0/max 30000/default 10000];
  1068. docident [screenres] [Changes the screen resolution, available only for LINUX];
  1069. docargument [W] [width] [] [0];
  1070. docargument [H] [height] [] [0];
  1071. docident [scr_h] [Sets the screen height.];
  1072. docargument [] [the screen height] [min 0/max 768/default 10000];
  1073. docident [scr_w] [Sets the screen width.];
  1074. docargument [] [the screen width] [min 0/max 1024/default 10000];
  1075. docident [setfont] [Changes the current font.];
  1076. docargument [N] [Font name] [name of the font] [0];
  1077. docident [shadowcasters] [];
  1078. docargument [V] [] [min 1/max 0/default 0];
  1079. docident [shadowclip] [];
  1080. docargument [V] [] [min 0/max 1/default 1];
  1081. docident [shadowtile] [];
  1082. docargument [V] [] [min 0/max 1/default 1];
  1083. docident [shotline] [];
  1084. docargument [V] [] [min 0/max 1/default 1];
  1085. docident [shotlinettl] [];
  1086. docargument [V] [] [min 0/max 10000/default 75];
  1087. docident [skyclip] [];
  1088. docargument [V] [] [min 0/max 1/default 1];
  1089. docident [spectfov] [Specifies the Field Of View when in spectating/ghost mode.];
  1090. docargument [V] [Spectate FOV size] [min 5/max 120/default 120];
  1091. docident [stencilbits] [];
  1092. docargument [V] [] [min 0/max 32/default 0];
  1093. docident [stencilshadow] [Sets the transparency/opacity level of stencil shadows.];
  1094. docargument [V] [Alpha level] [min 0/max 100/default 40];
  1095. docident [teamdisplaymode] [Sets the team display mode.];
  1096. docargument [N] [the team display mode] [0 (none), 1 (color vests), 2 (color skins) min 0/max 2/default 1];
  1097. docremark [In mode 0 team display is disabled In mode 1 players will be rendered with a colored vest to make the teams distinguishable. In mode 2 almost the whole suit of the players will be colored. These display modes are only applied in team gameodes.];
  1098. docident [trilinear] [];
  1099. docargument [V] [] [min 0/max 1/default 1];
  1100. docident [vsync] [Enables or disables vsync.];
  1101. docargument [] [vsync] [min -1/max 1/default -1];
  1102. docremark [-1 uses the default settings obtained from the system. 0 disables, 1 enables vsync.];
  1103. docident [waterreflect] [Turns on/off the reflections in the water surface.];
  1104. docargument [V] [enable/disable water reflections] [min 0/max 1/default 1];
  1105. docident [waterrefract] [Turns on/off water refractions.];
  1106. docargument [V] [enable/disable water refractions] [min 0/max 1/default 0];
  1107. docident [watersubdiv] [Determines the subdivision of the water surface in maps.];
  1108. docargument [N] [the subdivisioin value] [min 1/max 64/default 4];
  1109. 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.];
  1110. docsection [Sound]
  1111. docident [al_referencedistance] [The distance from the source emitting the sound to the listener.];
  1112. docargument [V] [] [min 0/max 1000000/default 400];
  1113. docident [al_rollofffactor] [This value indicates the relative "strength" of a sound (how far away the sound can be heard.];
  1114. docargument [V] [] [min 0/max 1000000/default 100];
  1115. docident [audio] [Enables or disables the audio subsystem in AC.];
  1116. docargument [B] [enable] [min 0/max 1/default 1];
  1117. docident [audiodebug] [Enables verbose output for debugging purposes.];
  1118. docargument [B] [enable audio debug] [min 0/max 1/default 0];
  1119. docident [bulletairsound] [];
  1120. docargument [V] [] [min 0/max 1/default 1];
  1121. docident [bulletairsounddestrad] [];
  1122. docargument [V] [] [min 0/max 1000/default 8];
  1123. docident [bulletairsoundrad] [];
  1124. docargument [V] [] [min 0/max 1000/default 15];
  1125. docident [bulletairsoundsourcerad] [];
  1126. docargument [V] [] [min 0/max 1000/default 8];
  1127. docident [bulletbouncesound] [];
  1128. docargument [V] [] [min 0/max 1/default 1];
  1129. docident [bulletbouncesoundrad] [];
  1130. docargument [V] [] [min 0/max 1000/default 15];
  1131. docident [gainscale] [Each subsequent played sound's gain-value is scaled by this percentage.];
  1132. docargument [N] [percentage] [min 0/max 100/default 100];
  1133. docremark [This lowers the gain of the sounds before they are mixed, this might be useful in cases when the mixer has problems with too high gain values.];
  1134. docident [mapsoundrefresh] [Specifies the interval for checking mapsounds.];
  1135. docargument [N] [interval in milliseconds] [min 0/max 1000/default 50];
  1136. docremark [If set to value 0, the map sounds will be checked in every frame without any interval limitation.];
  1137. docident [maxsoundsatonce] [];
  1138. docargument [V] [] [min 0/max 100/default 40];
  1139. docident [music] [Play music in the background.];
  1140. docargument [A] [music file name] [] [0];
  1141. docargument [B] [playtime] [] [0];
  1142. docargument [C] [command to be executed, when music is done] [] [0];
  1143. docident [musicvol] [Sets the music volume.];
  1144. docargument [N] [the volume] [min 0/max 255/default 128];
  1145. docident [mutesound] [Mute a specific game sound.];
  1146. docargument [N] [ID of the sound to mute] [see config/sounds.cfg, starting at ID 0] [0];
  1147. docargument [A] [audible?] [(mute) 0 || 1 (unmute)] [0];
  1148. docident [sound] [Plays the specified sound.];
  1149. docargument [S] [the sound to play] [string, see config/sounds.cfg] [0];
  1150. 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.];
  1151. docident [soundchannels] [Sets the desired amount of allocated sound channels.];
  1152. docargument [] [number of channels] [min 4/max 1024/default 32];
  1153. docremark [AC will try to allocate that number of channels but it is not guaranteed to succeed.];
  1154. docident [soundscheddistancescore] [];
  1155. docargument [V] [] [min 0/max 1000/default 5];
  1156. docident [soundschedoldbonus] [];
  1157. docargument [V] [] [min 0/max 1000/default 100];
  1158. docident [soundschedpriorityscore] [];
  1159. docargument [V] [] [min 0/max 1000/default 100];
  1160. docident [soundschedreserve] [];
  1161. docargument [V] [] [min 0/max 100/default 2];
  1162. docident [soundvol] [Sets the sound volume for all sounds.];
  1163. docargument [N] [the volume] [min 0/max 255/default 128];
  1164. docident [unmuteallsounds] [Unmutes all previously muted sounds.];
  1165. docsection [Ingame Reference]
  1166. docident [docargument] [Adds a new argument documentation to the last added identifier.];
  1167. docargument [T] [the token] [] [0];
  1168. docargument [D] [the description] [] [0];
  1169. docargument [V] [the value notes] [] [0];
  1170. docargument [I] [flags this argument as variable-length] [1 (true), 0 (false)] [0];
  1171. docremark [An argument represents either a command argument or a variable value.];
  1172. docremark [The last argument of an identifier can be flagged as variable-length to indicate that it represents an unknown number of arguments.];
  1173. docident [docexample] [Adds an example to the last added identifier.];
  1174. docargument [C] [the example code] [] [0];
  1175. docargument [E] [the explanation] [] [0];
  1176. docident [docfind] [Searches the ingame docs for identifier documentations matching the specified search string.];
  1177. docargument [S] [the search string] [] [0];
  1178. docremark [The name, description and remarks are included in the search.];
  1179. docident [docident] [Adds a new identifier documentation to the last added section.];
  1180. docargument [N] [name of the identifier] [] [0];
  1181. docargument [D] [the description] [] [0];
  1182. docremark [An identifier represents a command or variable. The new identifier];
  1183. docremark [The name may contain 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.];
  1184. docexample [docident fov "Sets the field of view."] [];
  1185. docexample [docident "newent light" "Adds a new light entity."] [];
  1186. docident [docinvalid] [Outputs a list of identifier documentations that do not match any existing identifier.];
  1187. docremark [Multipart identifiers are not included in this list, see 'docident'.];
  1188. docident [dockey] [];
  1189. docargument [A] [] [value] [0];
  1190. docident [docref] [Adds a new documentation reference to an identifier.];
  1191. docargument [N] [the display name] [] [0];
  1192. docargument [I] [the identifier to refer to] [] [0];
  1193. docargument [U] [the URL to refer to] [] [0];
  1194. docremark [The new reference is added to the last added identifier documentation.];
  1195. docident [docremark] [Adds a new documentation remark to the last added identifier.];
  1196. docargument [S] [the remark] [] [0];
  1197. docident [docsection] [Adds a new section to the ingame documentation.];
  1198. docargument [S] [the section name] [] [0];
  1199. docident [docskip] [];
  1200. docargument [V] [] [min 0/max 1000/default 0];
  1201. docident [docundone] [Outputs a list of yet undocumented identifiers (commands,variables, etc)];
  1202. docargument [A] [output all identifiers] [1 (true), 0 (false)] [0];
  1203. docremark [If the one argument is omitted, only the builtin identifiers will be listed. Therefore specify the argument other identifiers like aliases should be included too.];
  1204. docremark [Note that the list also includes identifiers that contain the substrings "TODO" or "UNDONE" in their documentation.];
  1205. docident [docvisible] [];
  1206. docargument [V] [] [min 0/max 1/default 1];
  1207. docident [docwritebaseref] [Writes out a base XML documentation reference containing templates for the builtin identifiers.];
  1208. docargument [R] [the reference name] [] [0];
  1209. docargument [S] [the XML schema location string] [] [0];
  1210. docargument [T] [XML stylesheet to use] [] [0];
  1211. docremark [The generated reference is written to "docs/autogenerated_base_reference.xml" by default. The three arguments can be changed later on in the generated XML document.];
  1212. docsection [Server commands]
  1213. docident [addfavcategory] [Adds a new category in the serverbrowser favourites.];
  1214. docargument [A] [reference designator (keep short and unique)] [] [0];
  1215. docremark [Add new categories to your autoexec.cfg, check favourites.cfg for examples.];
  1216. docident [autoteam] [Sets automated team assignment.];
  1217. docargument [B] [Enables or disables auto team.] [1 (On), 0 (Off)] [0];
  1218. docident [ban] [Temporary ban of the specified player from the server.];
  1219. docargument [CN] [The player to ban] [Client number] [0];
  1220. docremark [Temporary ban duration is fixed at 20 minutes.];
  1221. docident [callvote] [Calls a vote on the server.];
  1222. docargument [T] [Vote type] [value] [0];
  1223. docargument [A] [First argument] [] [0];
  1224. docargument [B] [Second argument] [] [0];
  1225. docremark [This command is wrapped by aliases for better usability and is used to action votes such as ban, kick, etc. See config/admin.cfg for actual uses.];
  1226. docident [deleteservermap] [Deletes a map from the current server.];
  1227. docargument [A] [map name] [] [0];
  1228. docident [forceteam] [Forces the specified player to join the enemy team.];
  1229. docargument [CN] [The player to assign to a team] [Client number] [0];
  1230. docident [giveadmin] [Gives admin state to the specified player.];
  1231. docargument [CN] [The player to become admin] [Client number] [0];
  1232. docremark [Requires admin state. The admin will lose his admin state after successfully issuing this command.];
  1233. docident [hidefavicons] [Hide favourites icons in serverbrowser.];
  1234. docargument [N] [0: show, 1: hide] [min 0/max 1/default 0];
  1235. docident [kick] [Kicks the specified player from the server.];
  1236. docargument [CN] [The player to kick] [Client number] [0];
  1237. docident [listfavcats] [List all registered serverbrowser favourites categories];
  1238. docident [mastermode] [Sets the mastermode for the server.];
  1239. docargument [N] [The master mode] [0 (Open), 1 (Private), 2 (Match)] [0];
  1240. docremark [If the mastermode is set to 'private', no more clients can join the server. Default is 'open' which allows anyone to join the server.];
  1241. docident [masterupdatefrequency] [];
  1242. docargument [V] [] [min 1/max 24*60*60/default 60*60];
  1243. docident [maxservpings] [];
  1244. docargument [V] [] [min 0/max 1000/default 0];
  1245. docident [removebans] [Removes all temporary bans from the server. Temporary bans are normally automatically removed after 20 minutes.];
  1246. docident [searchlan] [];
  1247. docargument [V] [] [min 0/max 2/default 1];
  1248. docident [searchnickname] [Search a nickname (or -part) on all servers.];
  1249. docargument [N] [nickname to search] [] [0];
  1250. docident [sendmap] [Sends a map to the server.];
  1251. docargument [M] [map to send] [] [0];
  1252. docremark [During coop edit, the current map gets saved to file and sent to the server. Other players can use 'getmap' to download it.];
  1253. docremark [When not in edit mode, the map will not be saved. The new map will be used, when the next game on that map starts on the server.];
  1254. docident [serverbrowserhidefavtag] [Hide favourites tag column in serverbrowser];
  1255. docargument [N] [-] [min 0/max 2/default 1];
  1256. docident [serverbrowserhideip] [Hide server IP and port in serverbrowser.];
  1257. docargument [N] [-] [min 0/max 2/default 2];
  1258. docident [serverdesc] [If the server was run with -n1 and -n2 arguments (prefix and suffix of descriptive title) a serveradmin can set a user-defined server description with this command, if it wasn't this command results in "invalid vote". This title will only stay until the next map is loaded.];
  1259. docargument [D] [description] [] [0];
  1260. docremark [If, for example, the server was run with -n"Fred's Server" -n1"Fred's " -n2" Server", then you could call "/serverdesc [pWn4g3 TOSOK]" and it would show up as ""Fred's pWn4g3 TOSOK Server" in the serverbrowser.];
  1261. docident [serverextension] [Modded servers announcement of features. See source/src/server.cpp [Line 2926ff. "case SV_EXTENSION:"]];
  1262. docargument [E] [extension] [] [0];
  1263. docargument [D] [description] [] [0];
  1264. docident [serversort] [];
  1265. docargument [V] [] [min 0/max NUMSERVSORT-1/default 0];
  1266. docident [serversortdir] [Select ascending of descending sort order in serverbrowser.];
  1267. docident [serversortpreferofficial] [Sort official maps over custom maps in serverbrowser.];
  1268. docargument [N] [-] [min 0/max 1/default 1];
  1269. docident [servpingrate] [];
  1270. docargument [V] [] [min 1000/max 60000/default 5000];
  1271. docident [setadmin] [Claims or drops admin status.];
  1272. docargument [B] [Status] [1 (Claim), 0 (Drop)] [0];
  1273. docargument [PASS] [Password] [case sensitive] [0];
  1274. docremark [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. If the admin votes on any (other players) call, his vote is final. In the scoreboard, the admin will be shown as a red colour.];
  1275. docident [showallservers] [];
  1276. docargument [V] [] [min 0/max 1/default 1];
  1277. docident [showminremain] [Show 'minutes remaining' in serverbrowser.];
  1278. docargument [N] [] [min 0/max 1/default 0];
  1279. docident [shownamesinbrowser] [Show player names in serverbrowser.];
  1280. docargument [N] [-] [min 0/max 1/default 0];
  1281. docident [showonlyfavourites] [Show only servers of one favourites category in serverbrowser.];
  1282. docargument [N] [category index] [min 0/max 100/default 0];
  1283. docident [showonlygoodservers] [Show only servers with the correct protocol in serverbrowser.];
  1284. docargument [N] [-] [min 0/max 1/default 0];
  1285. docident [showweights] [Show 'weights' in serverbrowser.];
  1286. docargument [N] [] [min 0/max 1/default 0];
  1287. docremark ['weights' are the sort criteria with the highest priority. Favourites categories can change the weights. Use 'showweights' to debug problems with serverbrowser sorting.];
  1288. docsection [Game modes]
  1289. docident [coop] [Starts a map with the mode "Co-op edit"];
  1290. docargument [M] [The name of the map you wish to edit] [] [1];
  1291. docremark [See the co-op edit section in page 4 of the map editing guide for more information.];
  1292. docexample [coop ac_newmap] [];
  1293. docident [ctf] [Starts a map with the mode "Capture the Flag"];
  1294. docargument [M] [The name of the map you wish to play] [] [1];
  1295. docexample [ctf ac_mines] [];
  1296. docident [dm] [Starts a map with the mode "Deathmatch"];
  1297. docargument [M] [The name of the map you wish to play] [] [1];
  1298. docexample [dm ac_complex] [];
  1299. docident [gamemodedesc] [];
  1300. docargument [M] [mode] [integer] [0];
  1301. docargument [D] [description] [string] [0];
  1302. docident [htf] [Starts a map with the mode "Hunt the Flag"];
  1303. docargument [M] [The name of the map you wish to play] [] [1];
  1304. docexample [htf ac_mines] [];
  1305. docident [ktf] [Starts a map with the mode "Keep the Flag"];
  1306. docargument [M] [The name of the map you wish to play] [] [1];
  1307. docexample [ktf ac_mines] [];
  1308. docident [lms] [Starts a map with the mode "Last Man Standing"];
  1309. docargument [M] [The name of the map you wish to play] [] [1];
  1310. docexample [lms ac_complex] [];
  1311. docident [lss] [Starts a map with the mode "Last Swiss Standing"];
  1312. docargument [M] [The name of the map you wish to play] [] [1];
  1313. docexample [lss ac_complex] [];
  1314. docident [mode] [Sets the gameplay mode to N for the next map loaded.];
  1315. docargument [N] [The mode number] [0..15] [0];
  1316. docremark [You will need to define mode before loading the map or it will stay as the last mode played.];
  1317. docremark [There are many aliases for you to use instead of remembering the numeric mapping.];
  1318. docexample [mode 7;map ac_complex;echo "Bot Team Deathmatch on ac_complex"] [];
  1319. docexample [mode 8;map ac_mines;echo "Bot Deathmatch on ac_mines"] [];
  1320. docexample [mode 5;map ac_shine;echo "CTF @ ac_shine"] [];
  1321. docident [osok] [Starts a map with the mode "One shot, One kill"];
  1322. docargument [M] [The name of the map you wish to play] [] [1];
  1323. docexample [osok ac_complex] [];
  1324. docident [pf] [Starts a map with the mode "Pistol Frenzy"];
  1325. docargument [M] [The name of the map you wish to play] [] [1];
  1326. docexample [pf ac_complex] [];
  1327. docident [tdm] [Starts a map with the mode "Team Deathmatch"];
  1328. docargument [M] [The name of the map you wish to play] [] [1];
  1329. docexample [tdm ac_complex] [];
  1330. docident [tktf] [Starts a map with the mode "Team Keep the Flag"];
  1331. docargument [M] [The name of the map you wish to play] [] [1];
  1332. docexample [tktf ac_mines] [];
  1333. docident [tosok] [Starts a map with the mode "Team One Shot, One Kill"];
  1334. docargument [M] [The name of the map you wish to play] [] [1];
  1335. docexample [tosok ac_complex] [];
  1336. docident [ts] [Starts a map with the mode "Team Survivor"];
  1337. docargument [M] [The name of the map you wish to play] [] [1];
  1338. docexample [ts ac_complex] [];
  1339. docident [vip] [Starts a map with the mode "Hunt the Flag". Some players prefer the name "VIP" for this mode.];
  1340. docargument [M] [The name of the map you wish to play] [] [1];
  1341. docexample [vip ac_mines] [];
  1342. docsection [Editing configs]
  1343. docident [fog] [Sets the fog distance.];
  1344. docargument [N] [The fog distance] [64...1024, default is 180] [0];
  1345. 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. It is also good for aesthetic features of maps especially when combined with "fogcolour".];
  1346. docident [fogcolour] [Sets the fog and clearing colour.];
  1347. docargument [C] [The colour] [Hexadecimal colour, default is 0x8099B3] [0];
  1348. docident [isolatecontext] [Isolates the given context. This disables access from this context to identifiers located in other contexts, also it removes all aliases created in this context once the running context changes];
  1349. docargument [C] [the context] [] [0];
  1350. docident [loadnotexture] [Binds a texture to be used if a slot couldn't be loaded with a given textures path.];
  1351. docargument [F] [file name of the texture to bind] [string] [0];
  1352. docremark [Binds the texture indicated in the filename to the texture slot of any textures that aren't found. The path is given exactly as with the texture-command, if it is omitted (or can't be loaded) the default is used. The default is located in packages/misc/notexture.jpg (not in packages/textures - where custom ones must reside!)];
  1353. docexample [loadnotexture // Reset to default] [];
  1354. docexample [loadnotexture "makke/black.jpg" // Any missing texture will show up black] [];
  1355. docident [loadsky] [Loads a skymap for a map.];
  1356. docargument [P] [path to the six skybox textures] [string] [0];
  1357. docremark [The available skymaps reside in packages/textures/skymaps/..];
  1358. docremark [To select a skymap you need to use the full path from "packages/" but only up to the underscore "_" in the filename.];
  1359. docexample [loadsky "textures/skymaps/makke/mountain"] [];
  1360. docident [mapmodel] [Registers a mapmodel that can be placed in maps.];
  1361. docargument [R] [The square radius of the bounding box.] [Integer] [0];
  1362. docargument [H] [The height of the bounding box.] [Integer] [0];
  1363. docargument [Z] [The initial height offset from the ground.] [Integer] [0];
  1364. docargument [0] [This integer is redundant. Leave it at zero so you don't break the command.] [0] [0];
  1365. docargument [N] [The name of the map model] [string] [0];
  1366. docremark [A mapmodel registered with this command can be placed in a map using the 'newent mapmodel' command. The bounding box is an invisible force surrounding the model, allowing players to collide against it, instead of walking through the mapmodel. For more information about this command, read mapediting5.xml.];
  1367. docremark [Example: mapmodel 4 2 4 0 "modelname"];
  1368. docremark [This mapmodel has a bounding box of 8x8x2 in size (X/Y/Z) and by default hovers 4 units above ground.];
  1369. docident [mapmodelreset] [Resets the mapmodel slots/indices to 0 for the subsequent "mapmodel" commands.];
  1370. docremark [Each subsequent mapmodel command increases it again. See config/default_map_settings.cfg for an example.];
  1371. docident [mapsound] [Defines a mapsound.];
  1372. docargument [N] [Path to the sound file] [] [0];
  1373. docargument [M] [Maximum simultaneous sounds] [default -1 (unlimited)] [0];
  1374. docremark [Registers the sound as a map-specific sound. These map-specific sounds may currently only be used with "sound" entities within a map. The first map sound registered in a map has slot/index number 0 and increases afterwards.];
  1375. docident [mapsoundreset] [Resets the mapsound slots/indices to 0 for the subsequent "mapsound" commands.];
  1376. docremark [Each subsequent mapsound command increases it again. See config/default_map_settings.cfg for an example.];
  1377. docident [md2anim] [];
  1378. docargument [A] [anim] [] [0];
  1379. docargument [F] [frame] [] [0];
  1380. docargument [R] [range] [] [0];
  1381. docargument [S] [speed] [] [0];
  1382. docident [md2emit] [];
  1383. docargument [T] [tag] [] [0];
  1384. docargument [Y] [type] [] [0];
  1385. docargument [A] [arg1] [] [0];
  1386. docargument [B] [arg2] [] [0];
  1387. docident [md2tag] [];
  1388. docargument [N] [name] [] [0];
  1389. docargument [A] [vert1] [] [0];
  1390. docargument [B] [vert2] [] [0];
  1391. docargument [C] [vert3] [] [0];
  1392. docargument [D] [vert4] [] [0];
  1393. docident [md3anim] [];
  1394. docargument [A] [anim] [] [0];
  1395. docargument [S] [startframe] [] [0];
  1396. docargument [R] [range] [] [0];
  1397. docargument [V] [speed] [] [0];
  1398. docident [md3emit] [];
  1399. docargument [T] [tag] [] [0];
  1400. docargument [Y] [type] [] [0];
  1401. docargument [A] [arg1] [] [0];
  1402. docargument [B] [arg2] [] [0];
  1403. docident [md3link] [];
  1404. docargument [P] [parentno] [] [0];
  1405. docargument [C] [childno] [] [0];
  1406. docargument [T] [tagname] [] [0];
  1407. docident [md3load] [];
  1408. docargument [M] [model] [] [0];
  1409. docident [md3skin] [];
  1410. docargument [N] [object name] [] [0];
  1411. docargument [S] [skin texture] [] [0];
  1412. docident [mdlalphatest] [];
  1413. docargument [A] [alphatest] [] [0];
  1414. docident [mdlcachelimit] [];
  1415. docargument [L] [cachelimit] [] [0];
  1416. docident [mdlcullface] [];
  1417. docargument [C] [cullface] [0||1] [0];
  1418. docident [mdlscale] [];
  1419. docargument [P] [percent] [0..100..N*100] [0];
  1420. docident [mdlshadowdist] [];
  1421. docargument [D] [shadow distance] [] [0];
  1422. docident [mdltrans] [translates (= moves) the model];
  1423. docargument [X] [] [] [0];
  1424. docargument [Y] [] [] [0];
  1425. docargument [Z] [] [] [0];
  1426. docident [mdltranslucent] [];
  1427. docargument [T] [translucency] [0..100..N*100] [0];
  1428. docident [mdlvertexlight] [];
  1429. docargument [V] [vertexligh] [0||1] [0];
  1430. docident [scriptcontext] [];
  1431. docargument [C] [context] [] [0];
  1432. docargument [N] [idname] [] [0];
  1433. docident [sealcontexts] [secure this configuration for the rest of the game];
  1434. docident [shadowyaw] [Shadow yaw specifies the angle at which shadow stencils are drawn on a map.];
  1435. docargument [D] [The angle in degrees to rotate the stencil shadows] [0...360, default is 45] [0];
  1436. docremark [When specifying shadowyaw, remember that the default angle is 45 degrees. The example below would make the shadows appear at 90 degrees (45 degrees more to the left).];
  1437. docexample [shadowyaw 90] [];
  1438. docident [texture] [Binds a texture to the current texture slot.];
  1439. docargument [0] [This is a redundant value. Always leave this value as 0 here so it doesn'tbreak your configurations.] [0] [0];
  1440. docargument [F] [File name of the texture to bind] [String] [0];
  1441. docremark [Binds the texture indicated in the filename to the current texture slot and increments the slot number.];
  1442. docident [texturereset] [Sets the texture slots/indicies to 0 for the subsequent "texture" commands.];
  1443. docremark [Each subsequent texture command increases it again. See config/default_map_settings.cfg for an example.];
  1444. docident [watercolour] [Determines the water colour in a map.];
  1445. docargument [R] [Red colour intensity] [Between 1 and 255] [0];
  1446. docargument [G] [Green colour intensity] [Between 1 and 255] [0];
  1447. docargument [B] [Blue colour intensity] [Between 1 and 255] [0];
  1448. docremark [You must define all 3 values, otherwise this command may not work correctly (use "1" as a placeholder if needed).];
  1449. docsection [TODO]
  1450. docident [addzip] [TODO: Description];
  1451. docargument [A] [TODO] [] [0];
  1452. docargument [B] [TODO] [] [0];
  1453. docargument [C] [TODO] [] [0];
  1454. docident [akimboendaction] [0: none, 1: switch to primary?, 2: switch to nades?-before-switch to primary?];
  1455. docargument [N] [TODO] [min 0/max 2/default 0];
  1456. docident [ambient] [TODO];
  1457. docargument [N] [TODO] [min 0/max 16777215/default 0];
  1458. docident [applydialog] [do you reall want to quit?];
  1459. docargument [N] [TODO] [min 0/max 1/default 1];
  1460. docident [autoscopesens] [TODO];
  1461. docargument [N] [TODO] [min 0/max 1/default 0];
  1462. docident [checkmapdependencies] [Find what media the map depends on, this is used for mediapack providers.];
  1463. docident [cncolumncolor] [colour of CN column in scoreboard];
  1464. docargument [N] [TODO] [min 0/max 9/default 5];
  1465. docident [damagescreen] [show the blood-spat overlay when receiving damage?];
  1466. docargument [N] [TODO] [min 0/max 1/default 1];
  1467. docident [damagescreenalpha] [if overlay of blood-spat, at what blending (transparency) level?];
  1468. docargument [N] [TODO] [min 1/max 100/default 45];
  1469. docident [damagescreenfactor] [if overlay of blood-spat, use which factor];
  1470. docargument [N] [TODO] [min 1/max 100/default 7];
  1471. docident [damagescreenfade] [if overlay of blood-spat, at what speed does it fade];
  1472. docargument [N] [TODO] [min 0/max 1000/default 125];
  1473. docident [findcn] [find client number (cn)];
  1474. docargument [N] [NAME] [] [0];
  1475. docident [findpn] [find player name];
  1476. docargument [C] [CLIENTNUM] [] [0];
  1477. docident [fontskip] [At what char does the definition proceed?];
  1478. docargument [A] [TODO] [] [0];
  1479. docident [gettext] [An alias used for i18n. Translateable text should be marked [(_ "this is the EN-us variant of the text")].];
  1480. docargument [M] [I18Nmessage] [] [0];
  1481. docident [gib] [TODO];
  1482. docargument [N] [TODO] [min 0/max 1/default 1];
  1483. docident [hitsound] [TODO];
  1484. docargument [N] [TODO] [min 0/max 1/default 0];
  1485. docident [hudextras] [TODO];
  1486. docargument [N] [TODO] [min 0/max 3/default 0];
  1487. docident [interms] [TODO];
  1488. docargument [N] [TODO] [min 0/max 1/default 0];
  1489. docident [mapdimsfactor] [TODO];
  1490. docargument [N] [TODO] [min 0/max 4/default 2];
  1491. docident [maploaditemlength] [change at what position to truncate the map title string];
  1492. docargument [N] [CHAR] [min 0/max 255/default 46];
  1493. docident [mapshot] [save an image of the entire radar-overview of the map.];
  1494. docident [maxrollremote] [TODO];
  1495. docargument [N] [TODO] [min 0/max 1/default 1];
  1496. docident [mdldlist] [TODO];
  1497. docargument [N] [TODO] [min 0/max 1/default 1];
  1498. docident [menufont] [switch the font in which the menu is displayed];
  1499. docargument [F] [FONT] [] [0];
  1500. docident [menuitemmapload] [a menuitem that loads a map, displays the title and the preview or a default image];
  1501. docargument [M] [MAP] [] [0];
  1502. docargument [T] [TEXT] [] [0];
  1503. docident [mfilter] [TODO];
  1504. docargument [N] [TODO] [min 0,0/max 6,0/default 0,0];
  1505. docident [mouseaccel] [TODO];
  1506. docargument [N] [TODO] [min 0,0/max 1000,0/default 0,0];
  1507. docident [musicpreload] [TODO: Description];
  1508. docargument [A] [TODO] [] [0];
  1509. docident [orderscorecolumns] [variants of ordering CN first or not in scoreboard];
  1510. docargument [N] [TODO] [min 0/max 1/default 0];
  1511. docident [quicknadethrow] [TODO: Description];
  1512. docident [radarheight] [change at what height you are floating in the radar-view];
  1513. docargument [H] [height] [min 20/max 70/default 35];
  1514. docident [removezip] [TODO: Description];
  1515. docargument [A] [TODO] [] [0];
  1516. docident [scopesensscale] [TODO];
  1517. docargument [N] [TODO] [min 0,001/max 1000,0/default 0,5];
  1518. docident [scorefont] [use monspacefont to render the scoreboard? or the default one?];
  1519. docargument [N] [TODO] [min 0/max 1/default 0];
  1520. docident [sensitivityscale] [TODO];
  1521. docargument [N] [TODO] [min 0,001/max 1000,0/default 1,0];
  1522. docident [setburst] [TODO: Description];
  1523. docident [setedithide] [hides the list of entity types you set. pass 1 for light, 2 for spawn, or use "playerstart".];
  1524. docargument [L] [list of types to hide] [] [0];
  1525. docremark [pass light or 1, playerstart or 2. Call [setedithide 1 10] to just hide all lights and mapmodels.];
  1526. docremark [Or [setedithide [3 4 5 6 7 8 9 12 13]] for all the clips, ammo, nades, health, helmet, armour, akimbo, ladder, and flag.];
  1527. docremark [Reversly just use [1 2 10 11 13 14 15 16] to hide light, spawn, mapmodel, ladder, sound, clip, plclip.];
  1528. docremark [Only shown entity types are potential 'closest entity'.];
  1529. docident [seteditshow] [hides all but the single entity type you give. pass 1 for light, 2 for spawn, or use [playerstart].];
  1530. docargument [T] [type to show exclusively] [] [0];
  1531. docremark [Just run [seteditshow model] and see just the model entities.];
  1532. docremark [The other entity types are ignored as closestentity too.];
  1533. docremark [other call forms may use the numerical item type];
  1534. docident [setwptriggernr] [TODO: Description];
  1535. docargument [A] [TODO] [] [0];
  1536. docident [showedithide] [shows the settings of edithide (sparklies)];
  1537. docident [showmapbackdrop] [change wether to have a see-through map overview (0), or render it on a black backdrop (1) or a combination of both (2)];
  1538. docargument [B] [backdrop-style] [min 0/max 2/default 0];
  1539. docident [showmapbackdroptransparency] [];
  1540. docargument [T] [transparency] [min 0/max 100/default 75];
  1541. docident [soundmuted] [TODO: Description];
  1542. docargument [A] [TODO] [] [0];
  1543. docident [testvel] [TODO];
  1544. docargument [N] [TODO] [min 0/max 1/default 0];
  1545. docident [texreduce] [-1: 2x2 : 0 : 1: x0.5 : 2: x0.25 : 3: x0.125];
  1546. docargument [N] [TODO] [min -1/max 3/default 0];
  1547. docident [texturescale] [TODO];
  1548. docargument [N] [TODO] [min 16/max 64/default 32];
  1549. docident [voicecomsounds] [TODO];
  1550. docargument [N] [TODO] [min 0/max 2/default 1];
Advertisement
Add Comment
Please, Sign In to add comment