diff --git a/config/docs.cfg b/config/docs.cfg index 928d115c..43b39e7e 100644 --- a/config/docs.cfg +++ b/config/docs.cfg @@ -17,7 +17,7 @@ docremark [Integer values are 32-bit signed values, so for example "echo (!b 1)" docref [&b]; docref [|b]; docref [^b]; -docident [&&] [logical AND.]; +docident [&&] [Logical AND.]; docargument [A] [first value] [] [0]; docargument [B] [second value] [] [0]; docexample [echo (&& 1 1)] [Output: 1]; @@ -52,7 +52,7 @@ docexample [i = 0; ++ i; echo $i] [Output: 1]; docref [--]; docref [++f]; docref [--f]; -docident [++f] [Increments an alias by 1.]; +docident [++f] [Increments an alias by floating-point 1.]; docargument [A] [the alias name] [] [0]; docexample [i = 2.14; ++f i; echo $i] [Output: 3.14]; docref [--f]; @@ -78,7 +78,7 @@ docexample [i = 0; -- i; echo $i] [Output: -1]; docref [++]; docref [--f]; docref [++f]; -docident [--f] [Decrements an alias by 1.]; +docident [--f] [Decrements an alias by floating-point 1.]; docargument [A] [the alias name] [] [0]; docexample [i = 4.14; --f i; echo $i] [Output: 3.14]; docref [++f]; @@ -126,6 +126,11 @@ docargument [B] [the second value] [] [0]; docident [>f] [Determines if the first floating-point value is greater than the second floating-point value.]; docargument [A] [the first value] [] [0]; docargument [B] [the second value] [] [0]; +docident [\f] [Adds color to a string.]; +docargument [N] [color id] [0-9, A-Z] [0]; +docremark [The whole string has to be included in quotes.]; +docexample [echo "\f3Hello \f0world!"] [Output: a red "Hello" and a green "world!"]; +docref [cncolumncolor]; docident [^b] [Performs the operation XOR using binary arithmetic on integer values (32-bit signed).]; docargument [A] [the first argument] [] [0]; docargument [B] [the second argument] [] [0]; @@ -174,11 +179,7 @@ docexample [loop i 10 [ if (= $i 4) [ break ]; echo $i]] [output: 0 1 2 3]; docref [continue]; docref [loop]; docref [while]; -docident [c] [Adds color to a string.]; -docargument [N] [color id] [0-9, A-Z] [0]; -docexample [echo (c 3)Hello (c 0)world!] [Output: a red "Hello" and a green "world!"]; -docref [cncolumncolor]; -docident [ceil] [Upper value of a float number]; +docident [ceil] [Upper value of a float number.]; docargument [F] [The float number to get the ceil from] [] [0]; docident [check2init] [Defines an alias only if it does not already exist.]; docargument [A] [alias name] [] [0]; @@ -257,21 +258,21 @@ docremark [Returns a table with two entries per alias: 1) full name and 2) name docref [alias]; docident [escape] [Replaces control characters in a string with escaped sequences.]; docargument [S] [string to escape] [] [0]; -docexample [echo (escape (concat (c 3) "Hello World"] [Output: "\f3Hello World"]; +docexample [echo (escape (concat (c 3) "Hello World"))] [Output: "\f3Hello World"]; docident [execute] [Executes the specified string as CubeScript.]; docargument [S] [the string to execute] [] [0]; docexample [execute (concat echo (addpunct fov 3))] [Example output: 90.0]; docident [findlist] [Searches a list for a specified value.]; docargument [L] [the list] [] [0]; docargument [I] [the item to find] [] [0]; -docident [floor] [Floor value of a float number]; +docident [floor] [Floor value of a float number.]; docargument [F] [The float number to get the floor from] [] [0]; docident [forceinit] [Forcibly sets a list of aliases to a specified value.]; docargument [L] [list of alias names] [] [0]; docargument [V] [alias value] [] [0]; docexample [alias1 = 0; alias2 = 0; alias3 = 0; alias4 = 0; alias 5 = 0] [Can be written as:]; docexample [forceinit [alias1 alias2 alias3 alias4 alias5] 0] []; -docident [format] []; +docident [format] [Replaces "%" format specifiers in the string by the values specified in subsequent arguments.]; docargument [F] [format] [use %1..%9 for the values] [0]; docargument [V] [value(s)] [] [0]; 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!]; @@ -372,10 +373,12 @@ docargument [A] [the dividend] [] [0]; docargument [B] [the divisor] [] [0]; docexample [echo (modf 7.5 12.5)] [Output: 7.5]; docexample [echo (modf 17.5 12.5)] [Output: 5.0]; -docident [numargs] [The number of arguments passed to the current alias]; +docident [numargs] [The number of arguments passed to the current alias.]; docargument [V] [numargs] [ read-only]; -docident [persistidents] [Controls whether aliases defined afterwards will be saved (1) or not (0). This option is useful to keep saved.cfg free from unneeded clutter.]; +docident [persistidents] [Controls whether aliases defined afterwards will be saved (1) or not (0).]; docargument [B] [control option] [1...persistent, 0...not persistent] [0]; +docremark [This option is useful to keep saved.cfg free from unneeded clutter.]; +docremark [Note: in map and model configs, this option is always disabled.]; docexample [persistidents 0; foo = [ echo "bar"]] [foo will not be saved and has to be redefined when restarting AC.]; docexample [persistidents 1; bar = [ echo "foo"]] [bar will be saved and persistent across sessions.]; docident [pop] [Resets a previously pushed alias to it's original value.]; @@ -383,7 +386,7 @@ docargument [A] [alias] [] [0]; docremark [It is allowed to use multiple arguments for "pop". So instead of "pop var_a ; pop var_b" you can write "pop var_a var_b". Also, "pop" will now give back the removed value of the first alias from the argument list. This allows using the pop'd value one last time.]; docexample [pop p; echo $p] [Output: 1]; docref [push]; -docident [powf] [Returns A raised to the power of B (floating-point)]; +docident [powf] [Returns A raised to the power of B (floating-point).]; docargument [A] [the mantissa] [] [0]; docargument [B] [the exponent] [] [0]; docident [push] [Temporarily redefines the value of an alias.]; @@ -400,14 +403,14 @@ docident [return] [Sets the result value of a CubeScript block.]; docargument [R] [the result] [] [0]; docref [execute]; docref [result]; -docident [rnd] [Random value]; +docident [rnd] [Random value.]; docargument [A] [The upper limit of the random value] [] [0]; -docident [round] [Round the given float]; +docident [round] [Rounds the given float.]; docargument [F] [The float number to round] [] [0]; docident [scriptcontext] []; docargument [C] [context] [] [0]; docargument [N] [idname] [] [0]; -docident [sealcontexts] [secure this configuration for the rest of the game]; +docident [sealcontexts] [Secures this configuration for the rest of the game.]; docident [sleep] [Executes a command after specified time period.]; docargument [N] [the amount of milliseconds] [] [0]; docargument [C] [the command to execute] [] [0]; @@ -443,7 +446,6 @@ docargument [S] [the original string to modify] [] [0]; docargument [T] [the target sub-string to replace] [] [0]; docargument [N] [the new sub-string to replace the target] [] [0]; docexample [echo (strreplace "Hello cruel world" cruel "")] [Output: Hello world]; -docref [strins]; docref [strpos]; docref [substr]; docident [strstr] [Determines if string B was found in string A.]; @@ -511,7 +513,7 @@ docargument [B] [the second argument] [] [0]; docref [&b]; docref [^b]; docref [!b]; -docident [||] [logical OR.]; +docident [||] [Logical OR.]; docargument [A] [first value] [] [0]; docargument [B] [second value] [] [0]; docexample [echo (|| 1 0)] [output: 1]; @@ -556,7 +558,7 @@ docident [autogetnewmaprevisions] [Automatically get new map revisions from the docargument [N] [0: no, 1: yes] [min 0/max 1/default 0]; docident [autoscreenshot] [Toggle for taking an automatic screenshot during intermission.]; docargument [B] [0=Off, 1=On] [min 0/max 1/default 1]; -docident [cleanshot] [Take a "clean" screenshot with no HUD items.]; +docident [cleanshot] [Takes a "clean" screenshot with no HUD items.]; docremark [Your current HUD configuration is stored into a buffer, and is re-enabled afterwards.]; docref [screenshot]; docref [blankouthud]; @@ -574,7 +576,7 @@ docargument [P] [path] [path to search] [0]; docargument [E] [extension] [extension to match] [0]; docremark [The completion will work on the first word of your console input.]; docexample [complete demo "demos" dmo] [If you enter "/demo " and press TAB you will cycle through all available demos.]; -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")]; +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").]; docref [saycommand]; docref [listcomplete]; docident [conline] [Returns text from the last line in the console.]; @@ -588,11 +590,11 @@ docident [conskip] [Allows to browse through the console history by offsetting t docargument [N] [the offset] [] [0]; dockey [KP_MINUS] [- on the keypad] [scrolls into the history (conskip 1)]; dockey [KP_PLUS] [+ on the keypad] [resets the history (conskip -1000)]; -docident [datestring] [representation of date]; -docremark [format: Www Mmm dd hh:mm:ss yyyy]; +docident [datestring] [Representation of date.]; +docremark [Format: Www Mmm dd hh:mm:ss yyyy]; docremark [Use timestamp to create your own formatting.]; docexample [echo (datestring) "Sat Jun 7 17:08:35 2008"] []; -docident [debugargs] [Dump all command arguments to STDOUT]; +docident [debugargs] [Dumps all command arguments to STDOUT.]; docargument [...] [...] [] [1]; docident [demonameformat] [Sets the formatstring for demo filenames.]; docargument [S] [string] [] [0]; @@ -642,6 +644,7 @@ docref [screenshottype]; docident [groupvariables] [Controls how many variables (with similar names) are grouped together on one line in saved.cfg.]; docargument [N] [Variables per line] [min 0/max 10/default 4]; docremark [This only pertains to commented variables in saved.cfg caused by omitunchangeddefaults being 0.]; +docremark [This only pertains to commented variables in saved.cfg caused by omitunchangeddefaults being 0.]; docref [omitunchangeddefaults]; docident [history] [Executes the specified command in the command line history.]; docargument [N] [the N'th command from the history] [] [0]; @@ -663,7 +666,7 @@ docexample [en, de, fr, ...] []; docident [listcomplete] []; docref [saycommand]; docref [complete]; -docident [mapshot] [save an image of the entire radar-overview of the map.]; +docident [mapshot] [Saves an image of the entire radar-overview of the map.]; docident [maxcon] [Sets the total number of text lines from the console to store as history.]; docargument [V] [] [min 10/max 1000/default 200]; docident [maxhistory] [Sets how many typed console commands to store.]; @@ -671,35 +674,6 @@ docargument [N] [Total of stored commands] [min 0/max 10000/default 1000]; 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.]; docident [millis] [Returns the number of milliseconds since engine start.]; docexample [echo (millis)] []; -docident [modmdlbounceN] [Changes name of directory used for bounce model number N.]; -docremark [These setting should be loaded from config/autoexec.cfg, but they work on-the-fly too.]; -docremark [If the model fails to load you will end up with nothing being displayed; use delalias to get back to default.]; -docexample [modmdlbounce0 = misc/my_gib1] [This will make the gib 1 model use the data inside packages/models/misc/my_gib1]; -docexample [modmdlbounce1 = misc/my_gib2] [This will make the gib 2 model use the data inside packages/models/misc/my_gib2]; -docexample [modmdlbounce2 = misc/my_gib3] [This will make the gib 3 model use the data inside packages/models/misc/my_gib3]; -docexample [modmdlbounce3 = weapons/grenade2/static] [This will make the grenade static model use the data inside packages/models/weapons/grenade2/static]; -docref [modmdlweapN]; -docref [modmdlvwepN]; -docref [modmdlpickupN]; -docident [modmdlpickupN] [Changes name of directory used for pickup model number N.]; -docremark [These setting should be loaded from config/autoexec.cfg, but they work on-the-fly too.]; -docremark [If the model fails to load you will end up with nothing being displayed; use delalias to get back to default.]; -docexample [modmdlpickup3 = health2] [This will make the health pickup model use the data inside packages/models/pickups/health2]; -docexample [modmdlpickup1 = my_ammobox] [This will make the ammobox pickup model use the data inside packages/models/pickups/my_ammobox]; -docref [modmdlweapN]; -docref [modmdlvwepN]; -docref [modmdlbounceN]; -docident [modmdlvwepN] [Changes name of directory used for weapon model (viewable/world) number N.]; -docref [modmdlweapN]; -docref [modmdlpickupN]; -docref [modmdlbounceN]; -docident [modmdlweapN] [Changes name of directory used for weapon model (hudgun) number N.]; -docremark [These setting should be loaded from config/autoexec.cfg, but they work on-the-fly too.]; -docremark [If the model fails to load you will end up with nothing being displayed; use delalias to get back to default.]; -docexample [modmdlweap4 = my_subgun] [This will make the subgun hudgun model use the data inside packages/models/weapon/my_subgun]; -docref [modmdlvwepN]; -docref [modmdlpickupN]; -docref [modmdlbounceN]; docident [networkdebug] [Enables output of processed network packets.]; docargument [B] [enable network debugging] [min 0/max 1/default 0]; docremark [This variable only has an effect if the client binary is compiled in debug mode.]; @@ -732,7 +706,7 @@ docref [autodownload]; docref [getpckserver]; docident [resetsecuremaps] [Clears the list of secured maps.]; docref [securemap]; -docident [run] [Executes a config file within /config/]; +docident [run] [Executes a config file within "config" folder.]; docargument [N] [the file name (without extension)] [] [0]; docident [saycommand] [Puts a prompt on screen.]; docargument [S...] [the text to display in the prompt] [] [1]; @@ -760,11 +734,11 @@ docremark [Secured maps can not be overwritten by the commands sendmap and getma docref [resetsecuremaps]; docref [sendmap]; docref [getmap]; -docident [systime] [seconds since the epoch (00:00:00 UTC on January 1, 1970)]; +docident [systime] [Seconds since the epoch (00:00:00 UTC on January 1, 1970).]; docexample [echo (systime)] []; docident [throttle_accel] [Determines how fast network throttling accelerates.]; docargument [V] [acceleration] [min 0/max 32/default 2]; -docref [throttle_accel]; +docref [throttle_interval]; docref [throttle_decel]; docident [throttle_decel] [Determines how fast network throttling decelerates.]; docargument [V] [deceleration] [min 0/max 32/default 2]; @@ -774,12 +748,12 @@ docident [throttle_interval] [Determines the interval of re-evaluating network t docargument [V] [interval] [seconds min 0/max 30/default 5]; docref [throttle_accel]; docref [throttle_decel]; -docident [timestamp] [a list of values for current time]; -docremark [format: YYYY mm dd HH MM SS]; +docident [timestamp] [A list of values for current time.]; +docremark [Format: YYYY mm dd HH MM SS]; docexample [echo (timestamp) "2008 08 08 08 08 08"] []; docexample [echo (timestamp) "2063 04 05 12 00 00"] []; docexample [echo (at (timestamp) 0) (at (timestamp) 2) (at (timestamp) 1) "2063 05 04"] []; -docident [timestring] [the current time in (H)H:MM:SS format]; +docident [timestring] [The current time in (H)H:MM:SS format.]; docexample [echo (timestring) "12:34:56"] []; docexample [echo (timestring) "1:02:03"] []; docident [tsswap] [Swaps vertices of model triangles.]; @@ -789,7 +763,7 @@ docargument [B] [force update] [0 (delayed), 1 (immediate)] [0]; docremark [The servers are written to the config/servers.cfg file. This menu can be reached through the Multiplayer menu.]; docident [version] [Gets an integer representing the game version. READ ONLY]; docremark [As example, version 1.2.0.2 is represented as value 1202.]; -docident [writecfg] [writes current configuration to config/saved.cfg - automatic on quit]; +docident [writecfg] [Writes current configuration to config/saved.cfg - automatic on quit.]; docident [zipcachemaxsize] [Maximal size of the file, which is cached in memory.]; docargument [S] [size [kB]] [min 0/max 1024/default 512]; docremark [If the size of the zip file is below "zipcachemaxsize", then during loading the whole zip file is cached in memory. When the size is greater, then zip is just opened as a file and read from disk.]; @@ -852,7 +826,7 @@ docargument [B] [the autoreload state] [on (1), off (0) min 0/max 1/default 1]; docident [backward] [Moves the player backward.]; docremark [default keys: S and Down Arrow]; docident [benchme] [Moves from active team to spectator during match.]; -docident [burstshots] [Set the firing mode of automatic weapons between full auto mode and burst fire mode.]; +docident [burstshots] [Sets the firing mode of automatic weapons between full auto mode and burst fire mode.]; docargument [N] [the weapon number or name] [4 (subgun), 6 (assault), 8 (akimbo)] [0]; docargument [S] [shots per burst] [Special values: 0: set weapon to full auto, -1: don't set, instead check and return shots per burst] [0]; docident [changefollowplayer] []; @@ -867,7 +841,7 @@ docref [magreserve]; docident [clearignored] [Clear list of ignored players.]; docargument [A] [client number, or -1 to clear the whole list] [] [0]; docremark [Omit the client number to clear the whole list.]; -docident [clearmuted] [Clear list of muted players.]; +docident [clearmuted] [Clears a list of muted players.]; docargument [A] [client number, or -1 to clear the whole list] [] [0]; docremark [Omit the client number to clear the whole list.]; docident [connect] [Connects to a server.]; @@ -947,19 +921,20 @@ docident [dlmap] [Downloads and loads the specified map from an available packag docargument [S] [the name of the map] [] [0]; docref [getmap]; docref [sendmap]; -docident [drawzone] [Draws a zone marker with the specified color and dimensions on the minimap/radar. This is primarily intended for the survival mode.]; +docident [drawzone] [Draws a zone marker with the specified color and dimensions on the minimap/radar.]; docargument [X1] [X-coordinate - top-left corner] [] [0]; docargument [X2] [X-coordinate - bottom-right corner] [] [0]; docargument [Y1] [Y-coordinate - top-left corner] [] [0]; docargument [Y2] [Y-coordinate - bottom-right corner] [] [0]; docargument [C] [a color for the zone, in hexadecimal notation] [default: 0x00FF00 (green)] [0]; +docremark [This is primarily intended for the survival mode.]; docremark [You can draw a few zones at a time. They will be reset (i.e. removed) once a new game starts.]; docremark [Note that the coordinates must be specified as integers, not as floating-point values.]; docref [resetzones]; docref [survival]; docident [dropflag] [Drops the taken flag.]; -docident [findcn] [find client number (cn)]; -docargument [N] [NAME] [] [0]; +docident [findcn] [Finds client number (cn) of player with given name.]; +docargument [N] [player name] [] [0]; docident [flyspeed] [Determines by how much to multiply the fly speeds by.]; docargument [N] [the multiplier] [min 1.0/max 5.0/default 2.0]; docident [forward] [Moves the player forward.]; @@ -1009,10 +984,10 @@ docargument [M] [the message you want to appear] [example: slashed] [0]; docremark [This command is identical to fragmessage, please see it.]; docref [fragmessage]; docref [weapon]; -docident [gndtoggle] [Toggles between your primary weapon and grenades. (must be binded to a key)]; +docident [gndtoggle] [Toggles between your primary weapon and grenades. (must be bound to a key)]; docref [sndtoggle]; docref [knftoggle]; -docident [grenades] [Switches to grenades. (if available) (must be binded to a key)]; +docident [grenades] [Switches to grenades (if available). (must be bound to a key)]; docref [primary]; docref [secondary]; docref [melee]; @@ -1027,15 +1002,15 @@ docident [highestcn] [Returns the highest valid client number available.]; docident [ignore] [Ignore a player.]; docargument [A] [client number] [] [0]; docremark [You won't see any further game chat or hear any more voice com messages from that player.]; -docident [ignoreall] [Ignores all clients currently on the server. (only works in multiplayer)]; +docident [ignoreall] [Ignore all clients currently on the server.]; docref [unignoreall]; docref [ignoreteam]; docref [ignoreenemy]; -docident [ignoreenemy] [Ignores all clients on the enemy team.]; +docident [ignoreenemy] [Ignore all clients on the enemy team.]; docref [ignoreall]; docref [unignoreall]; docref [ignoreteam]; -docident [ignoreteam] [Ignores all clients on the specified team.]; +docident [ignoreteam] [Ignore all clients on the specified team.]; docargument [T] [the team to ignore] [0 or 1 || cla or rvsf] [0]; docref [ignoreall]; docref [unignoreall]; @@ -1047,10 +1022,10 @@ docexample [echo (isclient 32)] [Example output: 0]; docref [curplayers]; docident [jump] [Triggers a jump.]; docremark [default keys: space and right ctrl.]; -docident [knftoggle] [Toggles between your primary weapon and your knife. (must be binded to a key)]; +docident [knftoggle] [Toggles between your primary weapon and knife. (must be bound to a key)]; docref [sndtoggle]; docref [gndtoggle]; -docident [lanconnect] [Connect to a LAN server.]; +docident [lanconnect] [Tries to connect to a LAN server.]; docident [lastgametimeupdate] [Returns the last time (in milliseconds) the gametime was updated. READ ONLY]; docref [minutesremaining]; docref [gametimecurrent]; @@ -1065,8 +1040,8 @@ docremark [default keys: A and Left Arrow]; docident [listdemos] [Get the game demos listing from the server we are currently connected.]; docref [getdemo]; docident [listignored] [Print a list of all players that you are currently ignoring.]; -docident [listmuted] [Print a list of all players that you have muted.]; -docident [loadcrosshair] [Loads a crosshair for argument T.]; +docident [listmuted] [Prints a list of all players that you have muted.]; +docident [loadcrosshair] [Loads a crosshair for given type.]; docargument [T] [type] [default, teammate, scope, edit, knife, pistol, carbine, shotgun, subgun, sniper, assault, grenade, akimbo] [0]; docargument [I] [image] [] [0]; docexample [loadcrosshair red_dot.png] [Loads the red_dot.png crosshair for all weapons.]; @@ -1119,7 +1094,7 @@ docref [mapstartalways]; docref [onNewMap]; docident [me] [Action chat message.]; docargument [...] [...] [] [1]; -docident [melee] [Switches to your knife. (must be binded to a key)]; +docident [melee] [Switches to knife. (must be bound to a key)]; docref [primary]; docref [secondary]; docref [grenades]; @@ -1128,19 +1103,19 @@ docref [gametimecurrent]; docref [gametimemaximum]; docref [lastgametimeupdate]; docref [millis]; -docident [modconnect] [Connect to a modded server.]; +docident [modconnect] [Connects to a modded server.]; docargument [A] [IP] [] [0]; docargument [B] [port] [] [0]; docargument [C] [password] [] [0]; 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.]; -docident [modconnectadmin] [Connect to a modded server and claim admin.]; +docident [modconnectadmin] [Connects to a modded server and tries to claim admin state.]; docargument [A] [IP] [] [0]; docargument [B] [port] [] [0]; docargument [C] [admin password] [] [0]; 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.]; -docident [modlanconnect] [Connect to a modified LAN server.]; +docident [modlanconnect] [Tries to connect to a modified LAN server.]; 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.]; -docident [muteplayer] [Mute a player]; +docident [muteplayer] [Mutes a player.]; docargument [A] [client number] [] [0]; docremark [You won't hear any further voice com messages from that player.]; docident [name] [Sets the nick name for the local player.]; @@ -1148,7 +1123,7 @@ docargument [N] [the name] [] [0]; docref [curname]; docident [nextprimary] [Sets the primary weapon on next respawn.]; docargument [A] [the weapon number or name] [2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault)] [0]; -docident [nickcomplete] [Ads a command to complete nicknames on.]; +docident [nickcomplete] [Adds a command to complete nicknames on.]; docremark [Your own nick will be ignored.]; 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.]; docref [complete]; @@ -1177,7 +1152,7 @@ docargument [damage] [The damage done] [integer] [0]; docargument [gun] [The number of the gun used] [integer] [0]; docargument [gib] [Is it a gib or a normal frag] [integer (0 or 1)] [0]; docremark [Remark: it works only in singleplayer.]; -docident [onKill] [If it exists, this alias will be executing when any player get killed, receiving a few arguments :]; +docident [onKill] [If it exists, this alias will be executing when any player get killed, receiving a few arguments.]; docargument [actor] [The client number of the actor] [integer] [0]; docargument [target] [The client number of the target] [integer] [0]; docargument [gun] [The number of the gun used] [integer] [0]; @@ -1223,7 +1198,7 @@ docref [curweapon]; docref [weapon]; docref [magcontent]; docref [magreserve]; -docident [primary] [Switches to your current primary weapon. (must be binded to a key)]; +docident [primary] [Switches to your current primary weapon. (must be bound to a key)]; docref [secondary]; docref [melee]; docref [grenades]; @@ -1235,10 +1210,11 @@ docexample [echo (pstat_weap 0)] [Output: 0 0 0 0 0 0 0 0 0 0 1 240 15 312 0 0 3 docref [start_intermission]; docref [pstat_score]; docref [weapon]; -docident [quickanswer] [Easily respond the the last client who sent you a private message.]; +docident [quickanswer] [Easily respond the last client who sent you a private message.]; docref [pm]; docref [lastpm]; -docident [quicknadethrow] [Switches to grenades (if available). If grenades are already selected, throw a grenade and switch back to previous weapon. (must be binded to a key)]; +docident [quicknadethrow] [Switches to grenades (if available). (must be bound to a key)]; +docremark [If grenades are already selected, throw a grenade and switch back to previous weapon.]; docref [grenades]; docident [reconnect] [Disconnects then reconnects you to the current server.]; docargument [P] [the server password] [] [0]; @@ -1263,7 +1239,7 @@ docremark [If the text begins with a percent character (%), only team mates will docident [scopefov] [Determines the FOV when scoping.]; docargument [V] [] [min 5/max 60/default 50]; docref [fov]; -docident [secondary] [Switches to your secondary weapon. (must be binded to a key)]; +docident [secondary] [Switches to your secondary weapon. (must be bound to a key)]; docref [primary]; docref [melee]; docref [grenades]; @@ -1275,13 +1251,15 @@ docident [setmr] [Go to a predefined number of minutes before the end of the gam docargument [M] [the minutes remaining to skip to] [] [0]; docref [demo]; docref [rewind]; -docident [setscope] [will display a scope for the sniper-rifle. used in the zoom-script (config/scripts.cfg [l. 92ff "alias zoom"]]; +docident [setscope] [Displays a scope for the sniper-rifle.]; docargument [Y] [scope on?] [0||1] [0]; -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.]; +docremark [It is used in the zoom-script (config/scripts.cfg: "const zoom").]; +docident [shiftweapon] [Shifts your selected weapon by a given delta.]; docargument [D] [delta] [-N..-1,+1..N] [0]; +docremark [By default the mouse-wheel shifts one up or down according to your scroll direction.]; dockey [MOUSE4] [] [cycle one up]; dockey [MOUSE5] [] [cycle one down]; -docident [sndtoggle] [Toggles between your primary weapon and your secondary weapon. (must be binded to a key)]; +docident [sndtoggle] [Toggles between your primary weapon and secondary weapon. (must be bound to a key)]; docref [knftoggle]; docref [gndtoggle]; docident [spectate] [Toggles spectator mode.]; @@ -1310,9 +1288,10 @@ docref [changeteam]; docident [teaminfo] [Returns attributes of a team.]; docargument [T] [Team] [cla, rvsf, 0, 1] [0]; docargument [A] [Attribute] [Valid attributes: flags, frags, deaths, points, name, players] [0]; -docident [togglespect] [cycles through all available spectator modes. Follow-1stPerson, Follow-3rdPerson, Follow-3rdPerson-transparent and Fly.]; +docident [togglespect] [Cycles through all available spectator modes.]; +docremark [These modes are: Follow-1stPerson, Follow-3rdPerson, Follow-3rdPerson-transparent and Fly.]; dockey [SPACE] [] [cycle spectator modes]; -docident [unignoreall] [Unignores all clients currently on the server. (only works in multiplayer)]; +docident [unignoreall] [Unignore all clients currently on the server.]; docref [ignoreall]; docref [ignoreteam]; docref [ignoreenemy]; @@ -1325,7 +1304,7 @@ docargument [] [] [0 (off)] [0]; docargument [] [] [1 (always play voicecom audio)] [0]; docargument [] [] [2 (only play voicecom audio from you and your teammates)] [0]; docargument [N] [voicecom sounds] [min 0/max 2/default 1]; -docident [vote] [agree or disagree to the currently running vote]; +docident [vote] [Agree or disagree to the currently running vote.]; docargument [V] [vote value] [1 (yes) OR 2 (no)] [0]; dockey [F1] [] [votes YES]; dockey [F2] [] [votes NO]; @@ -1339,10 +1318,10 @@ docident [votepending] [Determines if there is a vote pending or not.]; docexample [echo $votepending] [Output: if there is currently a vote pending, returns 1, else returns 0.]; docident [watchingdemo] [Returns 1 when the current game is being played from a demo, else 0.]; docexample [echo I am (at [not now] (watchingdemo)) watching a demo. "so, are you?"] []; -docident [weapon] [Changes the weapon. (must be binded to a key)]; +docident [weapon] [Changes the weapon. (must be bound to a key)]; docargument [N] [the number/name of available weapon] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0]; docident [whereami] [Prints the local client's (x,y) coordinates.]; -docident [whois] [get the IP address of a given clientnumber - only admins get shown the last octet]; +docident [whois] [Get the IP address of a given clientnumber - only admins get shown the last octet.]; docargument [C] [clientnum] [] [0]; docident [winners] [Returns the team number with the highest score, or if in a non-team mode, returns the CN of the player with the highest score.]; docsection [Keyboard and mouse] @@ -1355,7 +1334,6 @@ docident [KEYRELEASE] [If defined, this will be executed every time you release docargument [I] [integer key code] [] [0]; docexample [checkinit KEYRELEASE [echo You released key: (findkey $arg1)]] []; docref [KEYPRESS]; -docref [KEYPRESS]; docref [findkey]; docident [_resetallbinds] [Clears all binds for all keys and all modes, including self-assigned ones.]; docremark [Do not use the command manually.]; @@ -1365,6 +1343,13 @@ docargument [K] [the key to add to] [] [0]; docargument [C] [the code to add] [] [0]; docref [add2alias]; docref [add2list]; +docident [autoscopesens] [Switches between scopesensscale and autoscopesensscale.]; +docargument [N] [auto on/off] [min 0 (scopesensscale)/max 1 (autoscopesens)/default 0]; +docremark [Determines how to calculate scoped sensitivity if scopesens is zero. If enabled, derives scoped sensitivity from scopefov and fov.]; +docref [sensitivity]; +docref [sensitivityscale]; +docref [scopesens]; +docref [scopesensscale]; docident [bind] [Binds a key to a command.]; docargument [K] [the key to bind] [string] [0]; docargument [A] [the command] [string, usually an alias] [0]; @@ -1394,9 +1379,9 @@ docexample [echo (findkeycode BACKSPACE)] [Output: 8]; docexample [echo (findkeycode PAGEUP)] [Output: 280]; docref [keybind]; docref [findkey]; -docident [findsens] [Initiate sensitivity training, to help you find what sensitivity setting you like.]; docident [invmouse] [Sets mouse to "flight sim" mode.]; docargument [B] [sets invmouse] [0 (off), else (on)] [0]; +docremark [Inverts movement on the y-axis.]; docident [keybind] [Returns the contents of a keybind, bound with 'bind'.]; docargument [K] [name of key] [] [0]; docref [bind]; @@ -1431,9 +1416,9 @@ docremark [This command requires 6 arguments, no less. Use an empty set of brack docexample [megabind F9 [echo Demo!] [echo Editing or coop!] [echo Connected!] [echo Bots!] [echo Other!]] []; docref [bind]; docref [onrelease]; -docident [mfilter] [Sets the degree of mouse filtering (0.0 being no filtering)]; +docident [mfilter] [Sets the degree of mouse filtering (0.0 being no filtering).]; docargument [N] [Amount of mouse filtration] [min 0.0/max 6.0/default 0.0]; -docident [mouseaccel] [Sets the mouse acceleration]; +docident [mouseaccel] [Sets the mouse acceleration.]; docargument [N] [acceleration factor] [min 0.0/max 1000.0/default 0.0]; docref [sensitivity]; docident [onrelease] [Executes a command on the release of a key/button.]; @@ -1446,29 +1431,50 @@ docident [resetbinds] [Resets all binds back to their default values.]; 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.]; docref [resetcfg]; docref [_resetallbinds]; -docident [scopesensscale] [Scales the effect of an increase or decrease in the sensitivity value when scoping. The larger the value, the smaller the difference between sensitivity values.]; -docargument [N] [the scope sensitivity scale] [min 0.001/max 1000.0/default 0.5]; -docident [searchbinds] [Search keybinds (bound with 'bind'), return keys with matching contents.]; +docident [scopesens] [Mouse sensitivity while scoped.]; +docargument [N] [scoped sensitivity] [min 0/max 1000/default 0]; +docremark [If zero, autoscopesens determines, how sensitivity is changed during scoping.]; +docref [sensitivity]; +docref [sensitivityscale]; +docref [autoscopesens]; +docref [scopesensscale]; +docident [scopesensscale] [Change sensitivity when scoping.]; +docargument [N] [factor to change sensitivity while scoped] [min 0.001/max 1000.0/default 0.5]; +docremark [If used, scoped sens = sensitivity * scopesensscale (roughly). Ignored, if autoscopesens is set.]; +docref [sensitivity]; +docref [sensitivityscale]; +docref [scopesens]; +docref [autoscopesens]; +docident [searchbinds] [Searches keybinds (bound with 'bind'), returns keys with matching contents.]; docargument [S] [search string] [] [0]; docremark [This is the inverse of 'keybind']; docexample [echo (searchbinds "reload")] [Output: R]; docref [bind]; docref [keybind]; -docident [searcheditbinds] [Search keybinds (bound with 'editbind'), return keys with matching contents.]; +docident [searcheditbinds] [Searches keybinds (bound with 'editbind'), returns keys with matching contents.]; docargument [s] [search string] [] [0]; docremark [This is the inverse of 'keyeditbind']; docexample [echo (searcheditbinds "toggleocull")] [Output: F5]; docref [editbind]; docref [keyeditbind]; -docident [searchspecbinds] [Search keybinds (bound with 'specbind'), return keys with matching contents.]; +docident [searchspecbinds] [Searches keybinds (bound with 'specbind'), returns keys with matching contents.]; docargument [s] [search string] [] [0]; docremark [This is the inverse of 'keyspecbind']; docref [specbind]; docref [keyspecbind]; docident [sensitivity] [Sets the mouse sensitivity.]; docargument [S] [the sensitivity] [floating-point] [0]; -docident [sensitivityscale] [Scales the effect of an increase or decrease in the sensitivity value. The larger the value, the smaller the difference between sensitivity values.]; +docref [sensitivityscale]; +docref [scopesens]; +docref [autoscopesens]; +docref [scopesensscale]; +docident [sensitivityscale] [Scales all mouse sensitivity values.]; docargument [N] [the sensitivity scale] [min 0.001/max 1000.0/default 1.0]; +docremark [Changes all sensitivity values. If unsure, keep this at "1".]; +docref [sensitivity]; +docref [scopesens]; +docref [autoscopesens]; +docref [scopesensscale]; docident [specbind] [Similar to bind, but is only active while spectating, where it overrides the regular bind for the specified key.]; docargument [K] [the key to bind] [string] [0]; docargument [A] [the command] [string, usually an alias] [0]; @@ -1483,7 +1489,7 @@ docremark [It also returns the index number of the new entity, so that the other docref [enumentities]; docref [editentity]; docref [deleteentity]; -docident [addselection] [Select the given area, as if dragged with the mouse holding editmeta.]; +docident [addselection] [Selects the given area, as if dragged with the mouse holding editmeta.]; docargument [X] [the X coordinate] [] [0]; docargument [Y] [the Y coordinate] [] [0]; docargument [XS] [the length along the X axis] [] [0]; @@ -1509,7 +1515,7 @@ docargument [C] [comment] [] [0]; docremark [Entity errors during map load are automatically added to the list. The list is saved and restored with xmaps.]; docref [cleartodoentities]; docref [enumtodoentities]; -docident [advancemaprevision] [Select the increment of the map revision number for the next 'savemap'.]; +docident [advancemaprevision] [Selects the increment of the map revision number for the next 'savemap'.]; docargument [N] [increment] [min 1/max 100/default 1]; docident [ambient] [Controls the ambient lighting of the map, i.e. how bright areas not affected by any light entities will appear.]; docargument [N] [the ambient color] [min 0x000000/max 0xFFFFFF/default 0]; @@ -1546,7 +1552,7 @@ docref [enumtodoentities]; docident [clearvantagepoint] [Clears a set parameters of vantage point.]; docref [setvantagepoint]; docref [gotovantagepoint]; -docident [closestenttype] [Restrict 'closest entity' display to one entity type.]; +docident [closestenttype] [Restricts 'closest entity' display to one entity type.]; docargument [A] [entity type] [] [0]; docident [convertclips] [Converts the nearest entity (if its a clip or plclip) to its opposite type.]; docexample [convertclips] [Assuming the nearest entity is a clip, it will be converted to a plclip.]; @@ -1675,7 +1681,7 @@ dockey [LCTRL] [left Shift] [second modifier key for editing mode]; docref [entproperty]; docref [undelent]; docref [editmeta2down]; -docident [editmeta2down] [Indicates if editmeta key is pressed.]; +docident [editmeta2down] [Indicates if second editmeta key is pressed.]; docargument [N] [state of the second editmeta key] [0: unpressed, 1: pressed read-only]; docref [editmeta2]; docident [editmetakeydown] [Indicates if editmeta key is pressed.]; @@ -1691,7 +1697,7 @@ docident [edittex] [Changes the texture on current selection by browsing through docargument [T] [an integer denoting the type] [0 (floor), 1 (lower or wall), 2 (ceiling), 3 (upper wall)] [0]; docargument [D] [the direction you want to cycle the textures in] [1 (forwards), -1 (backwards)] [0]; 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).]; -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.]; +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.]; docref [hudtexttl]; docident [edittextureslot] [Edits the parameters of a texture slot.]; docargument [N] [texture slot number] [0..255] [0]; @@ -1717,7 +1723,7 @@ docref [textureslotusagelist]; docref [textureslotbyname]; docref [deletetextureslot]; docref [edittextureslot]; -docident [edittoggle] [switches between map edit mode and normal.]; +docident [edittoggle] [Switches between map edit mode and normal.]; 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.]; dockey [E] [] []; docref [select]; @@ -1757,7 +1763,7 @@ docargument [attr3] [see newent 'type'] [] [0]; docargument [attr4] [see newent 'type'] [] [0]; docremark [Overwrites the closest entity with the specified attributes. Some attributes may be specified as floats.]; docref [editentity]; -docident [entstats] [Print some map entity statistics to the console.]; +docident [entstats] [Prints some map entity statistics to the console.]; docident [enumentities] [Returns a list of the numbers of all entities of that type.]; docargument [type] [the entity type] [light, sound, clip, plclip, playerstart, pistol, ammobox, grenades, health, armour, akimbo, mapmodel, ladder, ctf-flag, helmet] [0]; docremark [If no such entities exist or the entity type could not be recognised, the list is empty.]; @@ -1865,7 +1871,7 @@ docident [gotoentity] [Jump to the location of a map entity.]; docargument [N] [the entity number] [] [0]; docremark [You can get the entity number with use "enumentities" command.]; docref [enumentities]; -docident [gotoposition] [Only in edit mode: get and set camera position.]; +docident [gotoposition] [Only in edit mode: gets and sets camera position.]; docargument [x] [X coordinate] [float] [0]; docargument [y] [Y coordinate] [float] [0]; docargument [z] [Z coordinate] [float] [0]; @@ -1884,7 +1890,7 @@ docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0]; 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).]; 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.]; docref [vdelta]; -docident [hudtexttl] [show preview of textures during editing.]; +docident [hudtexttl] [Show preview of textures during editing.]; docargument [T] [time to show texture preview [ms]] [min 0/max 10000/default 2500]; docremark [When textures of the map geometry are changed, five textures around the current pick from the "last used" stack are shown.]; docremark [The texture assigned to the "sky" slot is not shown. Instead, a plain blue rectangle is used.]; @@ -2054,11 +2060,11 @@ docref [deletemapsoundslot]; docident [mapstats_hud] [Controls whether or not to show map statistics on map load.]; docargument [N] [0: Don't show, 1: Show] [min 0/max 1/default 0]; docref [showmapstats]; -docident [movemap] [Move the whole map (including all entities) in the specified direction.]; +docident [movemap] [Moves the whole map (including all entities) in the specified direction.]; docargument [dX] [x-offset] [] [0]; docargument [dY] [y-offset] [] [0]; docargument [dZ] [z-offset] [] [0]; -docident [newent] [Adds a new entity]; +docident [newent] [Adds a new entity.]; docargument [E] [the entity type or number] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0]; docargument [attr1] [see newent 'type'] [] [0]; docargument [attr2] [see newent 'type'] [] [0]; @@ -2085,13 +2091,13 @@ docident [newent ladder] [Adds a ladder entity.]; docargument [H] [the height of the ladder] [integer] [0]; docremark [Note that this entity is used for physics only, to create a visual ladder you will need to add a mapmodel entity too.]; docref [newent mapmodel]; -docident [newent light] [Adds a new light entity]; +docident [newent light] [Adds a new light entity.]; docargument [radius] [the light radius] [1..32] [0]; docargument [R] [red colour component. see remarks below.] [1..255] [0]; docargument [G] [green colour component] [1..255] [0]; docargument [B] [blue colour component] [1..255] [0]; docremark [if only argument R is specified, it is interpreted as brightness for white light.]; -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)]; +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).]; docargument [N] [The mapmodel identifier] [Integer] [0]; docargument [Z] [Extra elevation above ground] [Integer] [0]; docargument [T] [The map texture to use] [Integer] [0]; @@ -2121,7 +2127,7 @@ docremark [The new map has 2^S cubes. For S, 6 is small, 7 medium, 8 large.]; docref [mapsize]; docref [mapenlarge]; docref [mapshrink]; -docident [nextclosestent] [Choose another 'closest ent'.]; +docident [nextclosestent] [Chooses another 'closest ent'.]; docremark [Use this, when two entities are placed in exactly the same location.]; docident [nextplayerstart] [Visit next player spawn entity.]; docargument [TYPE] [0|1|100] [] [0]; @@ -2212,9 +2218,9 @@ docident [selectall] [Selects the whole map (minus the two cubes wide border).]; docref [select]; docref [addselection]; docref [resetselections]; -docident [selectionflip] [Flip the selected part of the map at an axis.]; +docident [selectionflip] [Flips the selected part of the map at an axis.]; docargument [AXIS] [X or Y] [] [0]; -docident [selectionrotate] [Rotate the selected part of the map in 90 degree steps.]; +docident [selectionrotate] [Rotates the selected part of the map in 90 degree steps.]; docargument [D] [steps] [] [0]; docremark [To rotate clockwise, use a positive number of steps. Note, that only quadratic selections can be rotated by 90 degrees.]; docident [selectionwalk] [Iterates over all cubes in all selections and executes "action" for each cube.]; @@ -2254,7 +2260,24 @@ docref [select]; docref [selx]; docref [sely]; docref [selxs]; -docident [settex] [Set a texture for the current selection.]; +docident [setedithide] [Hides the list of entity types you set. Pass 1 for light, 2 for spawn, or use "playerstart".]; +docargument [L] [list of entity types or numbers to hide] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0]; +docremark [Pass light or 1, playerstart or 2. Call "setedithide [1 10]" to just hide all lights and mapmodels.]; +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.]; +docremark [Reversly just use [1 2 10 11 13 14 15 16] to hide light, spawn, mapmodel, ladder, sound, clip, plclip.]; +docremark [Only shown entity types are potential 'closest entity'.]; +docremark ["setedithide" without any arguments restores visibility of all entities.]; +docref [seteditshow]; +docref [showedithide]; +docident [seteditshow] [Hides all but the single entity type you give. Pass 1 for light, 2 for spawn, or use [playerstart].]; +docargument [T] [the entity type or number to show exclusively] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0]; +docremark [Just run "seteditshow mapmodel" and see just the mapmodel entities.]; +docremark [The other entity types are ignored as closestentity too.]; +docremark [Other call forms may use the numerical item type.]; +docremark ["seteditshow" without any argument hides all entities.]; +docref [setedithide]; +docref [showedithide]; +docident [settex] [Sets a texture for the current selection.]; docargument [T] [position of the texture to set in map cfg] [integer] [0]; docargument [t] [the type of the texture] [0 (floor), 1 (wall), 2 (ceil), 3 (upper wall)] [0]; docident [setvantagepoint] [Sets vantage point in current camera position.]; @@ -2271,6 +2294,9 @@ docref [watercolour]; docref [getwatercolour]; docident [showclips] [Show clips/plclips/mapmodel clips in edit mode.]; docargument [N] [-] [min 0/max 1/default 1]; +docident [showedithide] [Shows the settings for hidden entities (sparklies).]; +docref [setedithide]; +docref [seteditshow]; docident [showfocuscubedetails] [Shows detailed geometry data of the cube inside editing focus.]; docremark [It shows on the HUD cube type, floor and ceiling heights, vdelta and all textures.]; docref [showmip]; @@ -2303,10 +2329,10 @@ docargument [X] [x delta step] [integer] [0]; docargument [Y] [y delta step] [integer] [0]; 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.]; docref [enlargearchslopeselections]; -docident [solid] [makes the current selection all solid (i.e. wall) or all non-solid.]; +docident [solid] [Makes the current selection all solid (i.e. wall) or all non-solid.]; docargument [B] [an integer denoting the solid-ness] [0 (non-solid), 1..* (solid)] [0]; docremark [This operation retains floor/ceiling heights/textures while swapping between the two. Default keys f and g respectively.]; -docident [sortmapmodelslots] [Sorts all mapmoodel slots alphabetically and merge identical slots.]; +docident [sortmapmodelslots] [Sorts all mapmoodel slots alphabetically and merges identical slots.]; docargument [nosort] [do not sort the list alphabetically] [] [0]; docargument [nomerge] [do not merge any slots] [] [0]; docargument [mergeused] [merge used and unused (identical) slots freely] [] [0]; @@ -2318,7 +2344,7 @@ docexample [sortmapmodelslots mergeused] [- sorts the mapmodel slot list and mer docref [mapmodel]; docref [sorttextureslots]; docref [sortmapsoundslots]; -docident [sortmapsoundslots] [Sorts all mapsound slots alphabetically and merge identical slots.]; +docident [sortmapsoundslots] [Sorts all mapsound slots alphabetically and merges identical slots.]; docargument [nosort] [do not sort the list alphabetically] [] [0]; docargument [nomerge] [do not merge any slots] [] [0]; docargument [mergeused] [merge used and unused (identical) slots freely] [] [0]; @@ -2327,7 +2353,7 @@ docremark [See examples in the "sortmapmodelslots" reference.]; docref [mapsound]; docref [sortmapmodelslots]; docref [sorttextureslots]; -docident [sorttextureslots] [Sorts all texture slots alphabetically and merge identical slots.]; +docident [sorttextureslots] [Sorts all texture slots alphabetically and merges identical slots.]; docargument [nosort] [do not sort the list alphabetically] [] [0]; docargument [nomerge] [do not merge any slots] [] [0]; docargument [mergeused] [merge used and unused (identical) slots freely] [] [0]; @@ -2420,7 +2446,7 @@ docref [getdeletedentities]; docref [undelent]; docref [deleteentity]; docident [unsavededits] [Holds the number of unsaved edits.]; -docident [vdelta] [changes the vdelta value of the current selection]; +docident [vdelta] [Changes the vdelta value of the current selection.]; docargument [N] [vdelta value] [] [0]; 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 :)]; 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.]; @@ -2508,10 +2534,11 @@ docargument [N] [0: show, 1: hide] [min 0/max 1/default 0]; docident [maploaditemlength] [Changes at what position to truncate the map title string.]; docargument [N] [chars] [min 0/max 255/default 46]; docref [menuitemmapload]; -docident [menucanblink] [for toggling on the ability for menutext to have the blinking bit set. The global setting of 'allowblinkingtext' overrides this]; -docargument [T] [0 = Off, Any other integer = On] [Any integer is valid, positive or negative] [0]; +docident [menucanblink] [Toggles the ability for menutext to have the blinking bit set.]; +docargument [T] [0 = Off, any other integer = On] [Any integer is valid, positive or negative] [0]; +docremark [The global setting of 'allowblinkingtext' overrides this.]; docref [allowblinkingtext]; -docident [menudirlist] [Create a menu listing of files from a path and perform an action on them when clicked.]; +docident [menudirlist] [Creates a menu listing of files from a path and perform an action on them when clicked.]; docargument [P] [the directory path from the assaultcube root] [] [0]; docargument [E] [file extension] [] [0]; docargument [A] [action] [] [0]; @@ -2522,7 +2549,7 @@ docremark [Compare the usage inside config/menus.cfg]; docexample [menudirlist "packages/maps" "cgz" "map $arg1"] [will create a list of maps and load them when clicked]; docref [newmenu]; docref [browsefiledesc]; -docident [menufont] [Switches the font in which the menu is displayed]; +docident [menufont] [Switches the font in which the menu is displayed.]; docargument [F] [font] [default, mono, serif] [0]; docref [font]; docident [menuheader] [Adds header and/or footer to the menu.]; @@ -2569,7 +2596,7 @@ docargument [T] [text] [] [0]; docargument [B] [bind command] [] [0]; docref [menuitemeditkeyinput]; docref [menuitemspectkeyinput]; -docident [menuitemmapload] [a menuitem that loads a map, displays the title and the preview or a default image]; +docident [menuitemmapload] [Menuitem that loads a map, displays the title and the preview or a default image.]; docargument [M] [map] [] [0]; docargument [T] [text] [] [0]; docref [maploaditemlength]; @@ -2612,7 +2639,7 @@ docref [menutexturesize]; docident [menurenderoffset] [Moves a menu away from the middle of the screen.]; docargument [X] [x-offset] [] [0]; docargument [Y] [y-offset] [] [0]; -docremark [Values of "100" represent half the screen width and height.]; +docremark [Values of "0" represent half the screen width and height.]; docident [menuselection] [Selects a line in a menu.]; docargument [A] [menu name] [] [0]; docargument [B] [line number] [] [0]; @@ -2626,7 +2653,7 @@ docargument [R] [red] [0..100] [0]; docargument [G] [green] [0..100] [0]; docargument [B] [blue] [0..100] [0]; docargument [A] [alpha] [0..100] [0]; -docident [menuselectionpersistent] [Enables persistent selections for the currently displayed menu]; +docident [menuselectionpersistent] [Enables persistent selections for the currently displayed menu.]; docremark [When enabled, it restores a previously saved selection.]; docremark [Probably most efficient inside "menuinit". The position is restored during execution of this command, so the menu entry has to already exist and the alias with the last position has to be read from saved.cfg. In automatically created menus it may be necessary to execute the command with a short delay.]; docident [menutexturesize] [Changes the size of textures displayed in menus (mostly for testing purposes).]; @@ -2684,18 +2711,17 @@ docargument [V] [] [min 0/max 100/default 6]; docref [altconsize]; docref [fullconsize]; docident [crosshairfx] [Turns on or off crosshair effects.]; -docargument [] [turn off all effects] [0] [0]; +docargument [V] [turn off all effects] [0] [0]; docargument [] [turn on all effects (color and size change)] [1 (default)] [0]; docargument [] [turn on color change/turn off size change] [2] [0]; docargument [] [turn off color change/turn on size change] [3] [0]; -docargument [B] [Crosshair effects] [min 0/max 3/default 1]; docremark [When on, the crosshair will go orange when health is 50 or red when is 25. Size change of crosshair occurs when player holds assault rifle and has more than 3 shots in a row.]; docident [crosshairsize] [Sets the size of your crosshair.]; docargument [N] [the crosshair size] [min 0/max 50/default 15]; docremark [The crosshair is turned off entirely if the size is set to 0.]; docident [crosshairteamsign] [Turns on/off display of team warning crosshair.]; docargument [V] [enable/disable warning crosshair] [min 0/max 1/default 1]; -docident [damageindicatoralpha] [Sets the level of transparency of the damage indicator, 100 = totaly solid.]; +docident [damageindicatoralpha] [Sets the level of transparency of the damage indicator, 100 = totally solid.]; docargument [V] [damage indicator alpha value] [min 1/max 100/default 50]; docident [damageindicatordist] [Sets the separation of the arrows in the damage indicator.]; docargument [V] [damage indicator separation size] [min 0/max 10000/default 500]; @@ -2722,16 +2748,14 @@ docident [gametimedisplay] [Show the game-time clock on the HUD.]; docargument [D] [off (0), count backward (1), count forward (2)] [min 0/max 2/default 1]; docremark [The clock can count backward (from time limit to 0s) or forward (from 0s to time limit).]; docref [wallclockformat]; -docident [hidecompass] [Turns on/off the radar compass]; +docident [hidecompass] [Turns on/off the radar compass.]; docargument [V] [enable/disable radar compass] [min 0/max 1/default 0]; docident [hideconsole] [Turns on or off the display of console text.]; docargument [V] [enable/disable console text] [min 0/max 1/default 0]; -docident [hidectfhud] [Turns on or off the display of flag icons.]; -docargument [V] [enable/disable flag icons] [min 0/max 1/default 0]; -docident [hidedamageindicator] [Turns on/off the damage indicator]; +docident [hidedamageindicator] [Turns on/off the damage indicator.]; docargument [V] [enable/disable damage indicator] [min 0/max 1/default 0]; -docident [hidehudequipment] [Turns on or off the display of equipement icons.]; -docargument [V] [enable/disable equipement icons] [min 0/max 1/default 0]; +docident [hidehudequipment] [Turns on or off the display of equipment icons.]; +docargument [V] [enable/disable equipment icons] [min 0/max 1/default 0]; docident [hidehudmsgs] [Turns on or off the display of messages at the bottom of the screen.]; docargument [V] [enable/disable messages] [min 0/max 1/default 0]; docident [hidektfindicator] [Turns on or off the display of ktf flag direction indicator.]; @@ -2739,13 +2763,15 @@ docargument [V] [enable/disable ktf indicator] [min 0/max 1/default 0]; docref [ktfindicatoralpha]; docident [hideradar] [Turns on or off the display of the on-screen radar.]; docargument [V] [enable/disable radar] [min 0/max 1/default 0]; -docident [hidespecthud] [Turns on or off the display of spectator staus.]; +docident [hidespecthud] [Turns on or off the display of spectator status.]; docargument [V] [enable/disable spectator status] [min 0/max 1/default 0]; docident [hideteam] [Turns on or off the display of local player team icons.]; docargument [V] [enable/disable team icons] [min 0/max 1/default 0]; +docident [hideteamscorehud] [Turns on or off the display of team score icons.]; +docargument [V] [enable/disable flag icons] [min 0/max 1/default 0]; docident [hidevote] [Turns on or off the display of vote icons.]; docargument [V] [0=on; 1=on, but hide after own vote; 2=off] [min 0/max 2/default 0]; -docident [hudextras] [Shows extra gameplay messages on certain events if connected to a server.]; +docident [hudextras] [Show extra gameplay messages on certain events if connected to a server.]; docargument [] [] [0 (off)] [0]; docargument [] [] [1 (show extra messages in the console)] [0]; docargument [] [] [2 (show extra messages in the console and on the HUD)] [0]; @@ -2756,17 +2782,17 @@ docref [hideconsole]; docref [hidehudmsgs]; docident [hudgun] [Turns on or off the display of the current selected gun.]; docargument [V] [show/hide guns 3D models] [min 0/max 1/default 1]; -docident [ktfindicatoralpha] [Sets the level of transparency of ktf flag direction indicator, 100 = totaly solid.]; +docident [ktfindicatoralpha] [Sets the level of transparency of ktf flag direction indicator, 100 = totally solid.]; docargument [V] [ktf indicator alpha value] [min 1/max 100/default 70]; docref [hidektfindicator]; docident [minimapres] [Sets the resolution for the minimap.]; docargument [N] [the resolution] [min 7/max 10/default 9]; docref [clearminimap]; -docident [oldfashionedgunstats] [Shows ammo statistics like version 1.0]; +docident [oldfashionedgunstats] [Shows ammo statistics like in version 1.0.]; docargument [N] [0: new, 1: old] [min 0/max 1/default 0]; docident [radarentsize] [Sets the icon size of the players shown in the radar and the minimap.]; docargument [V] [size of icons inside radar] [min 4/max 64/default 12]; -docident [radarheight] [change at what height you are floating in the radar-view]; +docident [radarheight] [Changes at what height you are floating in the radar-view.]; docargument [H] [height] [min 5/max 500/default 150]; docident [sc_clientnum] [Sets the order priority for the column cn on the scoreboard.]; docargument [V] [low priority: left, high priority: right] [min 0/max 100/default 6]; @@ -2799,10 +2825,11 @@ docident [showspeed] [Enables or disables showing the player's horizontal speed docargument [N] [0 off, 1 on] [min 0/max 1/default 0]; docident [showstats] [Turns on/off display of FPS/rendering statistics on the HUD.]; docargument [N] [0: Show no stats, 1: Only show FPS stats, 2: Show all stats] [min 0/max 2/default 1]; -docident [showtargetname] [enables or disables showing the player name on the HUD when in your crosshair.]; +docident [showtargetname] [Enables or disables showing the player name on the HUD when in your crosshair.]; docargument [N] [0 off, 1 on] [min 0/max 1/default 1]; -docident [specthudgun] [Turns on/off the display of the hudgun while spectating a player in first-person view. Works in demo mode as well.]; +docident [specthudgun] [Turns on/off the display of the hudgun while spectating a player in first-person view.]; docargument [V] [show/hide hudgun when spectating] [min 0/max 1/default 1]; +docremark [Works in demo mode as well.]; docident [toggleconsole] [Toggles the console.]; docident [votealpha] [Sets the transparency of the vote display.]; docargument [N] [Alpha value] [min 0/max 255/default 255]; @@ -2828,11 +2855,11 @@ docident [ati_mda_bug] []; docargument [V] [] [min 0/max 1/default 0]; docident [bilinear] []; docargument [V] [] [min 0/max 1/default 1]; -docident [blood] [Turn on and off the display of blood.]; +docident [blood] [Turns on and off the display of blood.]; docargument [V] [Enable/Disable blood] [min 0/max 1/default 1]; docident [bloodttl] [Sets the amount of time in milliseconds that blood is displayed on the ground.]; docargument [V] [Blood display time] [min 0/max 30000/default 10000]; -docident [bullethole] [Turns on/off the display of bullet holes]; +docident [bullethole] [Turns on/off the display of bullet holes.]; docargument [V] [Enable/Disable bullet holes] [min 0/max 1/default 1]; docident [bulletholettl] [Specifies how long (in milliseconds) to display bullet holes.]; docargument [V] [Bullethole display time] [min 0/max 30000/default 10000]; @@ -2954,7 +2981,7 @@ docref [recalc]; docident [maxfps] [Limits the FPS (frames per second) of AssaultCube's video output.]; docargument [V] [maximum FPS] [0 disables maxfps min 25 or 0/max 1000/default 200]; docremark [Remark: limit to '200' is optimal.]; -docref [maxfps]; +docref [fpsrange]; docident [maxroll] [Sets the maximum value the display will roll on strafing.]; docargument [N] [the roll value] [min 0/max 20/default 0]; docref [maxrollremote]; @@ -3000,8 +3027,8 @@ docident [reflectscissor] []; docargument [V] [] [min 0/max 1/default 1]; docident [reflectsize] []; docargument [V] [] [min 6/max 10/default 8]; -docident [resetgl] [Resets the OpenGL rendering settings]; -docident [righthanded] [Choose whether the players hand carrying the weapon appears as right or left handed.]; +docident [resetgl] [Resets the OpenGL rendering settings.]; +docident [righthanded] [Chooses whether the players hand carrying the weapon appears as right or left handed.]; docargument [N] [0: lefty, 1: righty] [min 0/max 1/default 1]; docident [saveshadows] [Sets if dynamic shadows should be saved to disk.]; docargument [] [auto save] [min 0/max 1/default 1]; @@ -3041,9 +3068,9 @@ docargument [V] [] [min 0/max 10000/default 75]; docident [skin] [Determines the skin of the current player.]; docargument [N] [skin id] [value] [0]; docremark [See the player model folder for the according skin-id.]; -docident [skin_cla] [Choose skin when playing for team CLA.]; +docident [skin_cla] [Chooses skin when playing for team CLA.]; docargument [N] [skin id] [] [0]; -docident [skin_rvsf] [Choose skin when playing for team RVSF.]; +docident [skin_rvsf] [Chooses skin when playing for team RVSF.]; docargument [N] [skin id] [] [0]; docident [skyclip] []; docargument [V] [] [min 0/max 1/default 1]; @@ -3088,7 +3115,7 @@ docargument [F] [wave height (floating-point value)] [min 0/max 1/default 0.3]; docsection [Sound] docident [al_referencedistance] [The distance from the source emitting the sound to the listener.]; docargument [V] [] [min 0/max 1000000/default 400]; -docident [al_rollofffactor] [This value indicates the relative "strength" of a sound (how far away the sound can be heard.]; +docident [al_rollofffactor] [This value indicates the relative "strength" of a sound (how far away the sound can be heard).]; docargument [V] [] [min 0/max 1000000/default 100]; docident [audio] [Enables or disables the audio subsystem in AC.]; docargument [B] [enable] [min 0/max 1/default 1]; @@ -3127,14 +3154,17 @@ docref [mapsound]; docref [newent sound]; docident [maxsoundsatonce] []; docargument [V] [] [min 0/max 100/default 32]; -docident [music] [Play music in the background.]; +docident [music] [Plays music in the background.]; docargument [A] [music file name] [] [0]; docargument [B] [playtime] [] [0]; docargument [C] [command to be executed, when music is done] [] [0]; +docident [musicpreload] [Preloads the sound track.]; +docargument [N] [soundtrack number] [0 (flag grab), 1 (last minute #1), 2 (last minute #2)] [0]; +docremark [Can be helpful if you experience a delay, e.g. when picking up a flag.]; docident [musicvol] [Sets the music volume.]; docargument [N] [the volume] [min 0/max 255/default 128]; docref [soundvol]; -docident [mutesound] [Mute a specific game sound.]; +docident [mutesound] [Mutes a specific game sound.]; docargument [N] [ID of the sound to mute] [see config/sounds.cfg, starting at ID 0] [0]; docargument [A] [audible?] [(mute) 0 || 1 (unmute)] [0]; docref [soundmuted]; @@ -3210,7 +3240,7 @@ docref [docwritebaseref]; docident [docinvalid] [Outputs a list of identifier documentations that do not match any existing identifier.]; docremark [Multipart identifiers are not included in this list, see 'docident'.]; docref [docident]; -docref [docinvalid]; +docref [docundone]; docref [docfind]; docident [dockey] []; docargument [A] [] [value] [0]; @@ -3228,7 +3258,7 @@ docargument [S] [the section name] [] [0]; docref [docident]; docident [docskip] []; docargument [V] [] [min 0/max 1000/default 0]; -docident [docundone] [Outputs a list of yet undocumented identifiers (commands,variables, etc)]; +docident [docundone] [Outputs a list of yet undocumented identifiers (commands, variables, etc.).]; docargument [A] [output all identifiers] [1 (true), 0 (false)] [0]; 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.]; docremark [Note that the list also includes identifiers that contain the substrings "TODO" or "UNDONE" in their documentation.]; @@ -3246,7 +3276,7 @@ docref [docident]; docref [docundone]; docref [docinvalid]; docref [docfind]; -docident [docwritetodoref] [Writes out an XML documentation reference file containing undocumented identifiers or identifiers marked with "TODO"]; +docident [docwritetodoref] [Writes out an XML documentation reference file containing undocumented identifiers or identifiers marked with "TODO".]; docargument [i] [Also include aliases? Optional] [1: Include aliases, 0: Don't include. Default: 0] [0]; docsection [Server commands] docident [addfavcategory] [Adds a new category in the serverbrowser favourites.]; @@ -3285,13 +3315,13 @@ docident [giveadmin] [Gives admin state to the specified player.]; docargument [C] [The player to become admin] [client number] [0]; docremark [Requires admin state. The admin will lose his admin state after successfully issuing this command.]; docref [setadmin]; -docident [hidefavicons] [Hide favourites icons in serverbrowser.]; +docident [hidefavicons] [Hides favourites icons in serverbrowser.]; docargument [N] [0: show, 1: hide] [min 0/max 1/default 0]; docident [kick] [Kicks the specified player from the server.]; docargument [C] [The player to kick] [client number] [0]; docargument [R] [The reason] [at least 4 characters] [0]; docref [setadmin]; -docident [listfavcats] [List all registered serverbrowser favourites categories]; +docident [listfavcats] [Lists all registered serverbrowser favourites categories.]; docident [mastermode] [Sets the mastermode for the server.]; docargument [N] [The master mode] [0 (Open), 1 (Private), 2 (Match)] [0]; 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.]; @@ -3300,7 +3330,8 @@ docident [masterupdatefrequency] []; docargument [V] [] [min 1/max 24*60*60/default 60*60]; docident [maxservpings] [Sets the number of servers to be pinged at once.]; docargument [V] [] [min 0/max 1000/default 10]; -docident [removebans] [Removes all temporary bans from the server. Temporary bans are normally automatically removed after 20 minutes.]; +docident [removebans] [Removes all temporary bans from the server.]; +docremark [Temporary bans are normally automatically removed after 20 minutes.]; docref [ban]; docref [setadmin]; docident [searchlan] []; @@ -3313,20 +3344,21 @@ docremark [During coop edit, the current map gets saved to file and sent to the 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.]; docref [getmap]; docref [dlmap]; -docident [serverbrowserhidefavtag] [Hide favourites tag column in serverbrowser]; +docident [serverbrowserhidefavtag] [Hides favourites tag column in serverbrowser.]; docargument [N] [-] [min 0/max 2/default 1]; -docident [serverbrowserhideip] [Hide server IP and port in serverbrowser.]; +docident [serverbrowserhideip] [Hides server IP and port in serverbrowser.]; docargument [N] [-] [min 0/max 2/default 2]; -docident [serverdesc] [Set user-define server description.]; +docident [serverdesc] [Sets user-define server description.]; docargument [D] [description] [] [0]; docremark [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.]; 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.]; -docident [serverextension] [Modded servers announcement of features. See source/src/server.cpp [Line 2926ff. "case SV_EXTENSION:"]]; -docargument [E] [extension] [] [0]; -docargument [D] [description] [] [0]; +docident [serverextension] [Sends the extension name and argument string to the server, which can use it for custom action.]; +docargument [E] [extension name] [] [0]; +docargument [A] [argument] [] [0]; +docremark [See source/src/server.cpp ["case SV_EXTENSION:"].]; docident [serversort] []; docargument [V] [] [min 0/max NUMSERVSORT-1/default 0]; -docident [serversortdir] [Select ascending of descending sort order in serverbrowser.]; +docident [serversortdir] [Selects ascending of descending sort order in serverbrowser.]; docident [serversortpreferofficial] [Sort official maps over custom maps in serverbrowser.]; docargument [N] [-] [min 0/max 1/default 1]; docident [servpingrate] []; @@ -3340,7 +3372,7 @@ docref [autoteam]; docref [mastermode]; docref [ban]; docref [removebans]; -docident [showallplayersnumber] [Shows on serverbrowser number of all players on the servers.]; +docident [showallplayersnumber] [Shows on serverbrowser number of all players on the all servers.]; docargument [N] [] [min 0/max 1/default 0]; docident [showallservers] [Whether servers that have not yet responded to a ping should be shown in the server list.]; docargument [V] [] [min 0/max 1/default 1]; @@ -3421,39 +3453,39 @@ docident [mypubkey] [Returns a public key of game account.]; docremark [It returns empty string, if no account exists or it is unusable (due to missing password, for example).]; docref [authsetup]; docsection [Game modes] -docident [bdm] [Starts a map with the mode "Bot Deathmatch"]; +docident [bdm] [Starts a map with the mode "Bot Deathmatch".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [bdm ac_complex] []; -docident [blss] [Starts a map with the mode "Bot Last Swiss Standing"]; +docident [blss] [Starts a map with the mode "Bot Last Swiss Standing".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [blss ac_complex] []; -docident [bosok] [Starts a map with the mode "Bot One Shot, One Kill"]; +docident [bosok] [Starts a map with the mode "Bot One Shot, One Kill".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [bosok ac_complex] []; -docident [bpf] [Starts a map with the mode "Bot Pistol Frenzy"]; +docident [bpf] [Starts a map with the mode "Bot Pistol Frenzy".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [bpf ac_complex] []; -docident [btdm] [Starts a map with the mode "Bot Team Deathmatch"]; +docident [btdm] [Starts a map with the mode "Bot Team Deathmatch".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [btdm ac_complex] []; -docident [btosok] [Starts a map with the mode "Bot Team One Shot, One Kill"]; +docident [btosok] [Starts a map with the mode "Bot Team One Shot, One Kill".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [btosok ac_complex] []; -docident [btsurv] [Starts a map with the mode "Bot Team Survivor"]; +docident [btsurv] [Starts a map with the mode "Bot Team Survivor".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [btsurv ac_complex] []; -docident [coop] [Starts a map with the mode "Co-op edit"]; +docident [coop] [Starts a map with the mode "Co-operative Editing".]; docargument [M] [The name of the map you wish to edit] [] [1]; -docremark [See the co-op edit section in page 4 of the map editing guide for more information.]; +docremark [See the "Co-operative map editing" section on the "Tips, tricks and advice" chapter of the map editing guide for more information.]; docexample [coop ac_newmap] []; -docident [ctf] [Starts a map with the mode "Capture the Flag"]; +docident [ctf] [Starts a map with the mode "Capture the Flag".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [ctf ac_mines] []; @@ -3463,7 +3495,7 @@ docremark [Possible attributes are: team, arena, flag and bot.]; docref [mode]; docref [gamemode]; docref [getmode]; -docident [dm] [Starts a map with the mode "Deathmatch"]; +docident [dm] [Starts a map with the mode "Deathmatch".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [dm ac_complex] []; @@ -3485,11 +3517,11 @@ docref [mode]; docref [modeacronyms]; docref [gamemode]; docref [curmodeattr]; -docident [htf] [Starts a map with the mode "Hunt the Flag"]; +docident [htf] [Starts a map with the mode "Hunt the Flag".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [htf ac_mines] []; -docident [ktf] [Starts a map with the mode "Keep the Flag"]; +docident [ktf] [Starts a map with the mode "Keep the Flag".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [ktf ac_mines] []; @@ -3497,7 +3529,7 @@ docident [lms] [Starts a map with the mode "Survivor". Some players prefer the n docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [lms ac_complex] []; -docident [lss] [Starts a map with the mode "Last Swiss Standing"]; +docident [lss] [Starts a map with the mode "Last Swiss Standing".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [lss ac_complex] []; @@ -3554,8 +3586,6 @@ docref [btdm]; docref [bdm]; docref [bpf]; docref [blss]; -docref [btdm]; -docref [bdm]; docref [btsurv]; docref [bosok]; docref [btosok]; @@ -3571,11 +3601,11 @@ docexample [echo (modenum ctf)] [Output: 5]; docexample [echo (modenum btosok)] [Output: 21]; docref [mode]; docref [modeacronyms]; -docident [osok] [Starts a map with the mode "One Shot, One Kill"]; +docident [osok] [Starts a map with the mode "One Shot, One Kill".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [osok ac_complex] []; -docident [pf] [Starts a map with the mode "Pistol Frenzy"]; +docident [pf] [Starts a map with the mode "Pistol Frenzy".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [pf ac_complex] []; @@ -3583,31 +3613,31 @@ docident [showmodedescriptions] [Enables or disables the showing of game mode de docargument [B] [0 off, 1 on] [min 0/max 1/default 1]; docref [mode]; docref [gamemodedesc]; -docident [surv] [Starts a map with the mode "Survivor"]; +docident [surv] [Starts a map with the mode "Survivor".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [1]; docexample [surv ac_complex] []; -docident [tdm] [Starts a map with the mode "Team Deathmatch"]; +docident [tdm] [Starts a map with the mode "Team Deathmatch".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [tdm ac_complex] []; -docident [tktf] [Starts a map with the mode "Team Keep the Flag"]; +docident [tktf] [Starts a map with the mode "Team Keep the Flag".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [tktf ac_mines] []; -docident [tlss] [Starts a map with the mode "Team Last Swiss Standing"]; +docident [tlss] [Starts a map with the mode "Team Last Swiss Standing".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [tlss ac_complex] []; -docident [tosok] [Starts a map with the mode "Team One Shot, One Kill"]; +docident [tosok] [Starts a map with the mode "Team One Shot, One Kill".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [tosok ac_complex] []; -docident [tpf] [Starts a map with the mode "Team Pistol Frenzy"]; +docident [tpf] [Starts a map with the mode "Team Pistol Frenzy".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [tpf ac_complex] []; -docident [tsurv] [Starts a map with the mode "Team Survivor"]; +docident [tsurv] [Starts a map with the mode "Team Survivor".]; docargument [M] [The name of the map you wish to play] [] [1]; docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [1]; docexample [tsurv ac_complex] []; @@ -3742,7 +3772,7 @@ docident [mdlscale] []; docargument [P] [percent] [0..100..N*100] [0]; docident [mdlshadowdist] []; docargument [D] [shadow distance] [] [0]; -docident [mdltrans] [translates (= moves) the model]; +docident [mdltrans] [Translates (= moves) the model.]; docargument [X] [] [] [0]; docargument [Y] [] [] [0]; docargument [Z] [] [] [0]; @@ -3785,13 +3815,13 @@ docref [getwatercolour]; docref [setwatercolour]; docref [waterlevel]; docsection [Bot mode] -docident [addbot] [add a bot for a given team with a given skill calling him a given name.]; +docident [addbot] [Adds a bot for a given team with a given skill calling him a given name.]; docargument [T] [team] [RVSF or CLA] [0]; docargument [S] [skill] [best, good, medium, worse OR bad] [0]; docargument [N] [name] [name for the bot] [0]; docremark [This command only works for single player modes.]; docexample [addbot RVSF medium Robbie] [Will add a bot named Robbie with a medium skill level to the RVSF team.]; -docident [addnbot] [will add a given count of bots for the given team with the given skill and select random names for them.]; +docident [addnbot] [Adds a given count of bots for the given team with the given skill and select random names for them.]; docargument [C] [count] [how many bots to add] [0]; docargument [T] [team] [RVSF or CLA] [0]; docargument [S] [skill] [best, good, medium, worse OR bad] [0]; @@ -3804,15 +3834,15 @@ docident [addpath2way1] []; docident [addpath2way2] []; docident [addwp] [Adds a bot waypoint at the current position.]; docargument [A] [connect automatically] [0 or 1] [0]; -docident [autowp] [Automatically place waypoints.]; -docident [botskill] [changes the skill level for the given bot.]; +docident [autowp] [Automatically places waypoints.]; +docident [botskill] [Changes the skill level for the given bot.]; docargument [N] [botname] [the name of the bot] [0]; docargument [S] [botskill] [best, good, medium, worse OR bad] [0]; docexample [botskill Robbie best] [Changes the previous bot skill level of the bot named Robbie to a 'best' skill level.]; -docident [botskillall] [changes the skill level for all bots.]; +docident [botskillall] [Changes the skill level for all bots.]; docargument [S] [botskill] [best, good, medium, worse OR bad] [0]; docexample [botskillall worse] [Changes the previous bot skill level for all bots to a 'worse' skill level.]; -docident [botsshoot] [Enables or disables the ability of the bots to fire their weapons]; +docident [botsshoot] [Enables or disables the ability of the bots to fire their weapons.]; docargument [T] [shooting bots?] [0||1] [0]; docexample [botsshoot 0] [Bots won't shoot.]; docident [delpath1way1] []; @@ -3820,7 +3850,7 @@ docident [delpath1way2] []; docident [delpath2way1] []; docident [delpath2way2] []; docident [delwp] [Deletes the selected waypoint.]; -docident [idlebots] [Enables or disables the processing of the bots artificial intelligence]; +docident [idlebots] [Enables or disables the processing of the bots artificial intelligence.]; docargument [T] [off OR on] [0||1] [0]; docexample [idlebots 1] [Will make the bots stand still.]; docexample [idlebots 0] [Will enable the bots to move and shoot.]; @@ -3833,14 +3863,15 @@ docref [unsetjumpwp]; docident [setwptriggernr] [Assigns a number to the nearest waypoint.]; docargument [N] [number] [] [0]; docremark [This is only used for trigger waypoints, so that the bots go to triggers in the right order. If you don't do this bots will search for every trigger, even when they are not reachable yet.]; -docident [setwpyaw] [takes the current player yaw for the current waypoint]; -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).]; +docident [setwpyaw] [Takes the current player yaw for the current waypoint.]; +docident [togglebotview] [When used you will see what the bot sees.]; docargument [N] [botname] [the name of the bot] [0]; +docremark [Type it again (with or without name) to return to the game (you will respawn).]; docident [unsetjumpwp] []; docref [setjumpwp]; docident [wpclear] []; docident [wpflood] []; -docident [wpinfo] [makes waypoints visible and either turns on or off the waypoint information display.]; +docident [wpinfo] [Makes waypoints visible and either turns on or off the waypoint information display.]; docargument [Y] [show info?] [0||1] [0]; docident [wpload] []; docident [wpsave] []; @@ -3892,7 +3923,7 @@ docref [load_compatibility]; docref [team]; docref [forceteam]; docref [skin]; -docident [findpn] [find player name]; +docident [findpn] [Finds player name with this client number.]; docargument [CN] [client number] [] [0]; docref [load_compatibility]; docident [getclientmode] [Returns the current game mode number.]; @@ -3951,23 +3982,3 @@ docref [load_parsestring]; docref [trimAllUnnecessaryWhitespace]; docref [parsestring]; docsection [TODO] -docident [autoscopesens] [TODO]; -docargument [N] [TODO] [min 0/max 1/default 0]; -docident [musicpreload] [TODO: Description]; -docargument [A] [TODO] [] [0]; -docident [scopesens] [TODO]; -docargument [N] [TODO] [min 0/max 1000/default 0]; -docident [scopesensfeel] [TODO]; -docargument [N] [TODO] [min 0/max 1/default 0]; -docident [setedithide] [Hides the list of entity types you set. Pass 1 for light, 2 for spawn, or use "playerstart".]; -docargument [L] [list of types to hide] [] [0]; -docremark [Pass light or 1, playerstart or 2. Call [setedithide 1 10] to just hide all lights and mapmodels.]; -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.]; -docremark [Reversly just use [1 2 10 11 13 14 15 16] to hide light, spawn, mapmodel, ladder, sound, clip, plclip.]; -docremark [Only shown entity types are potential 'closest entity'.]; -docident [seteditshow] [Hides all but the single entity type you give. Pass 1 for light, 2 for spawn, or use [playerstart].]; -docargument [T] [type to show exclusively] [] [0]; -docremark [Just run [seteditshow model] and see just the model entities.]; -docremark [The other entity types are ignored as closestentity too.]; -docremark [other call forms may use the numerical item type]; -docident [showedithide] [shows the settings of edithide (sparklies)]; diff --git a/config/menus_settings.cfg b/config/menus_settings.cfg index 1308fb19..ffef345b 100644 --- a/config/menus_settings.cfg +++ b/config/menus_settings.cfg @@ -572,30 +572,28 @@ const reducedviolencemode [ pop x ] -const DEFAULT_SCOREBOARD_NAMES [Flags Frags Deaths Ratio Score Lag "Client number" Name] -const DEFAULT_SCOREBOARD_ORDER [sc_flags sc_frags sc_deaths sc_ratio sc_score sc_lag sc_clientnum sc_name] -const DEFAULT_SCOREBOARD_POSITIONS [0 1 2 -1 4 5 6 7] -const SCOREBOARD_DISABLE_ITEMS [sc_deaths sc_ratio sc_score sc_lag] - -const refreshcurmenudelayed [ push __curmenu (curmenu); closecurmenu; sleep 0 [ showmenu (pop __curmenu) ] ] +const __DEFAULT_SCOREBOARD [ + sc_flags Flags + sc_frags Frags + sc_deaths Deaths + sc_ratio Ratio + sc_score Score + sc_lag Lag + sc_clientnum "Client number" + sc_name Name +] newmenu [Customize your scoreboard] -menuitem [0 has the highest priority...] -1 -menuitem [-1 disables the item entirely...] -1 -menuitem [] -1 -loop tsl (listlen $DEFAULT_SCOREBOARD_ORDER) [ - ccn = (at $DEFAULT_SCOREBOARD_ORDER $tsl) - cfn = (at $DEFAULT_SCOREBOARD_NAMES (findlist $DEFAULT_SCOREBOARD_ORDER $ccn)) - if (!= (findlist $SCOREBOARD_DISABLE_ITEMS $ccn) -1) [ - execute (format [menuitemslider [%1: ] -1 7 "(getalias %2)" 1 [] [ %2 $arg1 ]] $cfn $ccn) - ] [ - execute (format [menuitemslider [%1: ] 0 7 "(getalias %2)" 1 [] [ %2 $arg1 ]] $cfn $ccn) - ] +menuitem "0 has the highest priority..." -1 +menuitem "-1 disables the item entirely..." -1 +menuitem "" -1 +looplist $__DEFAULT_SCOREBOARD [ var desc ] [ + menuitemslider (concatword $desc ": ") (getvarrange min $var) 7 (concatword "$" $var) 1 [] (concat $var "$arg1") ] -menuitem [] -1 -menuitem [Reset to default scoreboard...] [ loop rsl (listlen $DEFAULT_SCOREBOARD_ORDER) [ (at $DEFAULT_SCOREBOARD_ORDER $rsl) (at $DEFAULT_SCOREBOARD_POSITIONS $rsl) ]; refreshcurmenudelayed ] -menuitem [] -1 -menuitem "\t\t\f2[ Back ]" [ closecurmenu ] +menuitem "" -1 +menuitem "Reset to default scoreboard..." [ looplist $__DEFAULT_SCOREBOARD [ var desc ] [ $var (getvarrange default $var) ] ; refreshcurmenudelayed ] +menuitem "" -1 +menuitem "\t\t\f2[ Back ]" closecurmenu alias wallclockformat "" // strftime formatting alias wallclockformatlist ["" %H:%M %H:%M:%S %I:%M%p %I:%M:%S%p U%H:%M U%H:%M:%S] //"U" at beginning means UTC/GMT time diff --git a/config/scripts.cfg b/config/scripts.cfg index c14a513c..def4bcfa 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -64,6 +64,7 @@ const return [ result $arg1 ] const run [ push n (concatword "exec config/" $arg1 ".cfg ") ; loop i (- $numargs 1) [ n = (concat $n (getalias (concatword "arg" (+ $i 2)))) ] ; n ; pop n] const closecurmenu [ closemenu (curmenu) ] const resetcurmenu [ delmenu (curmenu) ; newmenu (curmenu) ] +const refreshcurmenudelayed [ push __curmenu (curmenu); closecurmenu; sleep 0 [ showmenu (pop __curmenu) ] ] // Auto-completions const mapcomplete [complete $arg1 "packages/maps/official packages/maps" cgz] diff --git a/source/src/autodownload.cpp b/source/src/autodownload.cpp index acdf174e..f831d817 100644 --- a/source/src/autodownload.cpp +++ b/source/src/autodownload.cpp @@ -314,8 +314,8 @@ void processdownload(package *pck, stream *f) // write downloaded data to file(s stream *zf = openfile(path(filename), "wb"); if(zf) { - int got = zipmanualread(mz, i, zf, MAXMEDIADOWNLOADFILESIZE); // extract file from zip and write to @filename - clientlogf("extracted %d bytes from %s %s, written to %s", got, pck->name, files[i], filename); + DEBUGCODE(int got =) zipmanualread(mz, i, zf, MAXMEDIADOWNLOADFILESIZE); // extract file from zip and write to @filename + DEBUGCODE(clientlogf("extracted %d bytes from %s %s, written to %s", got, pck->name, files[i], filename)); delete zf; } } @@ -396,7 +396,7 @@ bool dlpackage(httpget &h, package *pck, pckserver *s) // download one package f { if(h.response == 200) { - clientlogf("downloaded %s:%d%s, %d bytes (%d raw), %d msec", u.domain, h.ip.port, url, got, h.contentlength, h.elapsedtime); + DEBUGCODE(clientlogf("downloaded %s:%d%s, %d bytes (%d raw), %d msec", u.domain, h.ip.port, url, got, h.contentlength, h.elapsedtime)); processdownload(pck, h.outstream); h.outstream = NULL; // deleted by processdownload() return true; diff --git a/source/src/docs.cpp b/source/src/docs.cpp index 82fa1c5a..805a44a8 100644 --- a/source/src/docs.cpp +++ b/source/src/docs.cpp @@ -99,9 +99,7 @@ void adddocident(char *name, char *desc) c.name = name; c.desc = newstring(desc); lastident = &c; -#ifdef _DEBUG - if(strlen(desc) > 111) clientlogf("docident: very long description for ident %s (%d)", name, (int)strlen(desc)); -#endif + DEBUGCODE(if(strlen(desc) > 111) clientlogf("docident: very long description for ident %s (%d)", name, (int)strlen(desc))); } COMMANDN(docident, adddocident, "ss"); @@ -127,6 +125,10 @@ COMMANDN(docremark, adddocremark, "s"); void adddocref(char *refident) { if(!lastident || !refident || !*refident) return; +#ifdef _DEBUG + if(!strcasecmp(refident, lastident->name)) clientlogf("docref: circular reference for %s", refident); + loopv(lastident->references) if(!strcasecmp(lastident->references[i], refident)) clientlogf("docref: double reference %s in %s", refident, lastident->name); +#endif lastident->references.add(newstring(refident)); } COMMANDN(docref, adddocref, "s"); @@ -207,14 +209,23 @@ COMMAND(docundone, "i"); void docinvalid() { - vector inames; - identnames(inames, true); + vector inames, irefs; + enumerate(docidents, docident, d, if(!strchr(d.name, ' ') && !identexists(d.name)) inames.add(d.name);); inames.sort(stringsort); + if(inames.length()) conoutf("no such ident:"); + loopv(inames) conoutf(" %s", inames[i]); enumerate(docidents, docident, d, { - if(!strchr(d.name, ' ') && !identexists(d.name)) - conoutf("%s", d.name); + loopv(d.references) if(!identexists(d.references[i])) + { + bool add = true; + loopvj(inames) if(!strcasecmp(inames[j], d.references[i])) add = false; // don't list references to nonexisting but documented entries + if(add) irefs.add(d.references[i]); + } }); + irefs.sort(stringsort); + if(irefs.length()) conoutf("no such reference:"); + loopv(irefs) conoutf(" %s", irefs[i]); } COMMAND(docinvalid, ""); diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index ca58e442..ec7bae5e 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -281,9 +281,9 @@ void unpackheaderextra(uchar *buf, int len) // break the extra data from the ma DEBUG("unpacking " << len << " bytes"); while(1) { - int len = getuint(p), flags = getuint(p), type = flags & HX_TYPEMASK; + int len = getuint(p), flags = getuint(p); if(p.overread() || len > p.remaining()) break; - clientlogf(" found headerextra \"%s\", %d bytes%s", hx_name(type), len, flags & HX_FLAG_PERSIST ? ", persistent" : ""); // debug info + DEBUGCODE(clientlogf(" found headerextra \"%s\", %d bytes%s", hx_name(flags & HX_TYPEMASK), len, flags & HX_FLAG_PERSIST ? ", persistent" : "")); // debug info headerextras.add(new headerextra(len, flags, p.subbuf(len).buf)); } } diff --git a/source/src/zip.cpp b/source/src/zip.cpp index 9bd01c4e..65f31d07 100644 --- a/source/src/zip.cpp +++ b/source/src/zip.cpp @@ -553,7 +553,7 @@ void addzipmod(char *name) mountzip(*arch, NULL, NULL, !strncmp(behindpath(name), "###", 3)); archives.add(arch); rebuildzipfilehashtable(); - clientlogf("added zipmod %s, %d bytes, %d files", pname, zipsize, arch->files.length()); + DEBUGCODE(clientlogf("added zipmod %s, %d bytes, %d files", pname, zipsize, arch->files.length())); } COMMAND(addzipmod, "s");