diff --git a/docs/reference.xml b/docs/reference.xml index b43ef202..82d730c1 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -29,6 +29,49 @@
This section describes identifiers that are closely related to the CubeScript language. + + + sets the result value of a CubeScript block + + + + + + + + + + + + + + + Performs a floating-point modulo operation. + + + + + + + + + Output: 7.5 + + + + Output: 5.0 + + + + + + + + + + + + Performs an addition. @@ -50,6 +93,22 @@ + + Subtracts two floating-point numbers. + + + + + + + + Adds up two floating-point numbers. + + + + + + Performs a multiplication. @@ -59,13 +118,21 @@ - Performs a division. + Performs an integer division. - + + + Performs a division with floating-point precision. + + + + + + Performs a modulo operation. @@ -277,6 +344,12 @@ + + returns the element count of the given list. + + + + Searches a list for a specified value. @@ -304,6 +377,20 @@ The number of arguments passed to the current alias + + + + + + + + + + output: 99 bottles of beer on the wall, 99 bottles of beer! + + + +
@@ -312,6 +399,27 @@ This section describes general identifiers. + + Plays all hardcoded sounds in order. + + + writes current configuration to config/saved.cfg - automatic on quit + + + registers a track as music - the first three tracks have special meaning. Track #1 is for "flag grab" the second and third are used as "last minute" tracks. + + + + + + + + + + + + + Toggles getting descriptive text from CGZ or DMO files in menudirlist. @@ -791,6 +899,141 @@ This section describes gameplay related identifiers. + + + shifts your selected weapon by a given delta. By default the mouse-wheel shifts one up or down according to your scroll direction. + + + + + + + + + + + will display a scope for the sniper-rifle. used in the zoom-script (config/scripts.cfg [l. 92ff "alias zoom"] + + + + + + + cycles through all available spectator modes. Follow-1stPerson, Follow-3rdPerson, Follow-3rdPerson-transparent and Fly. + + + + + + + get the IP address of a given clientnumber - only admins get shown the last octet + + + + + + + agree or disagree to the currently running vote + + + + + + + + + + + + + + + + + + + + + returns the mapname + + + + outputs the mapsize. + + + + Loads a crosshair for a specific weapon of - if the weapon argument is omitted or <0 - for all weapons. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + add a bot for a given team with a given skill calling him a given name. + + + + + + + + + will add a given count of bots for the given team with the given skill and select random names for them. + + + + + + + + + + + + + + + + + + + + + Returns 1 if the local player is alive. @@ -835,7 +1078,7 @@ - + Returns the weapon-index the local player currently has selected as primary. This is not the same as curweapon - which could be a grenade or the knife. @@ -919,6 +1162,19 @@ bind PRINT [ + + Returns the weapon-index the local player was previously holding. + + + + + + + + + + + @@ -1022,8 +1278,24 @@ bind PRINT [ + + + Makes an input perform a certain command. + + + + + + + + + + + + + @@ -1350,6 +1622,89 @@ Output:
+ + + Will toggle the focus of the mouse in game. Normally you can use your mouse to look around, when you type this command your mouse cursor is visible and can be used as normally. This is only useful when you run cube windowed, of course. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + makes waypoints visible and either turns on or off the waypoint information display. + + + + + + + + + + + + + + + + takes the current player yaw for the current waypoint + + + + + When used you will see what the bot sees. Type it again (with or without name) to return to the game(you will respawn). + + + + + + + + + + + + + + + + + + + + + + + + + + + + during map editing, drop all mapsounds so they can be re-added + + @@ -1929,7 +2284,7 @@ Output: A variable indicating if the player looks at the floor or at the ceiling. - + Used to finetune the "overbright lighting" rendering feature when enabled. @@ -1999,6 +2354,41 @@ Output: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Displays the specified menu. @@ -2235,6 +2625,34 @@ Output: This section describes identifiers to configure the visuals. + + + + + + + + + + + checks for the searchstring in all loaded extensions + + + + + + + + + + + + + + + + + @@ -2833,6 +3251,14 @@ Output: + + Modded servers announcement of features. See source/src/server.cpp [Line 2926ff. "case SV_EXTENSION:"] + + + + + + @@ -3020,6 +3446,13 @@ Output:
+ + + + + + + Starts a map with the mode "Co-op edit" @@ -3238,6 +3671,130 @@ Output: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + translates (= moves) the model + + + + + + + + + + + + + + + + + + + Isolates the given context. This disables access from this context to identifiers located in other contexts, also it removes all aliases created in this context once the running context changes + + + + + + + + + + secure this configuration for the rest of the game + + + + + + + + + Sets the fog distance.