updated docs.cfg for r7157/script fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7158 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2013-02-06 05:15:30 +00:00
parent 8cb96ce6de
commit fd18565fe0
2 changed files with 37 additions and 8 deletions
+25
View File
@@ -128,6 +128,12 @@ docargument [N] [color id] [0 min, 9 max] [0];
docexample [echo (c 3)Hello (c 0)world!] [Output: a red "Hello" and a green "world!"];
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];
docargument [V] [alias value] [] [0];
docident [check2initlist] [Uses check2init on a list of aliases.];
docargument [L] [list of alias names] [] [0];
docargument [V] [alias value] [] [0];
docident [checkalias] [Determines if the argument given is an existing alias or not.];
docargument [A] [the alias to check for] [] [0];
docexample [hello = ""; echo (checkalias hello)] [Output: 1];
@@ -202,6 +208,11 @@ docident [findpn] [find player name];
docargument [C] [CLIENTNUM] [] [0];
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] [];
docargument [F] [format] [use %1..%9 for the values] [0];
docargument [V] [value(s)] [] [0];
@@ -350,6 +361,11 @@ docremark [Character indexes begins at 0. If "start position" is negative, the r
docexample [echo (substr abcdefgh 2 5) cdefg] [];
docexample [echo (substr abcdefgh -3 2) fg] [];
docexample [echo (substr abcdefgh 2) cdefgh] [];
docident [switch] [Takes an integer argument to determine what block of code to execute.];
docargument [I] [integer] [] [0];
docargument [C] [a variable number of 'case' arguments...] [] [0];
docremark [This command can only handle up to 23 'cases'. (because of cubescript's 24 argument limit)];
docexample [switch 2 [echo case 0] [echo case 1] [echo case 2] [echo case 3] [echo case 4]] [Output: case 2];
docident [testchar] [Tests a character argument for various things.];
docargument [C] [the character to test] [] [0];
docargument [N] [type of test to run] [min 0/max 7/default 0] [0];
@@ -791,6 +807,11 @@ 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 [modenum] [Returns the mode number for a specified mode acronym.];
docargument [M] [the mode acronym] [] [0];
docremark [Returns -1 if not found.];
docexample [echo (modenum ctf)] [Output: 5];
docexample [echo (modenum btosok)] [Output: 21];
docident [modlanconnect] [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 [modmdlvwepN] [change name of directory used for weapon model (viewable/world) number N];
@@ -859,6 +880,7 @@ docargument [C] [client] [0..N] [0];
docremark [The list is:];
docremark [knife/atk dmg pistol/atk dmg carbine/atk dmg shotgun/atk dmg smg/atk dmg sniper/atk dmg assault/atk dmg cpistol/atk dmg nade/atk dmg akimbo/atk dmg];
docexample [echo (pstat_weap 0)] [Output: 0 0 0 0 0 0 0 0 0 0 1 240 15 312 0 0 3 112 0 0];
docident [quickanswer] [Easily respond the the last client who sent you a private message.];
docident [reload] [Reloads the weapon.];
docargument [A] [] [value] [0];
docident [rewind] [Rewind the current demo to S seconds ago.];
@@ -985,6 +1007,9 @@ docident [clearents] [Deletes all entities of said type.];
docargument [T] [the entity type, see command 'newent'] [string] [0];
docident [closestenttype] [Restrict '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.];
docexample [convertclips] [Assuming the nearest entity is a plclip, it will be converted to a clip.];
docident [copy] [Copies the current selection into a buffer.];
docremark [hotkey c];
docident [copyent] [Copies the current closest entity into a buffer.];
+12 -8
View File
@@ -13,11 +13,13 @@ const MODEALIASES [map lms vip sendmap]
const return [ result $arg1 ]
const editent [
if (strcmp (getenttype) mapmodel) [ saycommand "/entset" (getenttype) (getentattr 1) (getentattr 2) (getentattr 3) ] [
if (> (findlist [light sound clip plclip] (getenttype)) -1) [
saycommand "/entset" (getenttype) (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3)
] [
saycommand "/entset" (getenttype) (getentattr ((> (findlist [playerstart ctf-flag] (getenttype)) -1)))
if $editing [
if (strcmp (getenttype) mapmodel) [ saycommand "/entset" (getenttype) (getentattr 1) (getentattr 2) (getentattr 3) ] [
if (> (findlist [light sound clip plclip] (getenttype)) -1) [
saycommand "/entset" (getenttype) (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3)
] [
saycommand "/entset" (getenttype) (getentattr ((> (findlist [playerstart ctf-flag] (getenttype)) -1)))
]
]
]
]
@@ -25,9 +27,11 @@ const editent [
// "convertclips" command:
// This command automatically changes the a "clip" to a "plclip" entity or vice-versa.
const convertclips [
if (strcmp (getenttype) clip) [ entset plclip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] [
if (strcmp (getenttype) plclip) [ entset clip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] [
echo No changes made. This entity isn't a clip or a plclip.; echo Try using the /closestenttype command to find a specific entity.
if $editing [
if (strcmp (getenttype) clip) [ entset plclip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] [
if (strcmp (getenttype) plclip) [ entset clip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] [
echo No changes made. This entity isn't a clip or a plclip.; echo Try using the /closestenttype command to find a specific entity.
]
]
]
]