cleanup/updates

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6499 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-06-04 19:23:34 +00:00
parent f6848c2f84
commit 0e212b7b6c
3 changed files with 26 additions and 10 deletions
+2
View File
@@ -1145,6 +1145,8 @@ docident [radarheight] [change at what height you are floating in the radar-view
docargument [H] [height] [min 20/max 70/default 35];
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] [0];
docident [disablehud] [Stores your current HUD configuration in a buffer and disables it entirely.];
docident [enablehud] [Restores your HUD configuration after using disablehud.];
docsection [Visuals]
docident [aadynshadow] [Sets the size/resolution of the dynamic shadow data.];
docargument [] [the size] [min 0/max 3/default 2];
+8 -10
View File
@@ -329,19 +329,17 @@ getscrext = [
]
// storesets - Generates an alias (list) of the current values for the given CVARs.
omit_idents = "curname curteam idlebots name"
omit_idents = "botsshoot curname curteam idlebots name"
storesets = [
if (> $numargs 1) [
if (listlen $arg1) [
badargs = 0; $arg2 = ""
loop ssl (listlen $arg1) [
if (&& (isIdent (at $arg1 $ssl)) (! (strstr $omit_idents (at $arg1 $ssl)))) [
add2list $arg2 (getvar (at $arg1 $ssl))
] [ badargs = 1; break ]
]
if $badargs [ delalias $arg2; echo (c 3)Error: (c 5)Bad "argument(s)" given! ]
badargs = 0; $arg2 = ""
loop ssl (listlen $arg1) [
if (&& (isIdent (at $arg1 $ssl)) (! (strstr $omit_idents (at $arg1 $ssl)))) [
add2list $arg2 (getvar (at $arg1 $ssl))
] [ badargs = 1; break ]
]
if $badargs [ delalias $arg2; echo (c 3)Error: (c 5)Bad "argument(s)" given! ]
]
]
@@ -372,7 +370,7 @@ if (! (checkalias onVoteEnd)) [ onVoteEnd = "" ]; if (! (strstr $onVoteEnd votep
// convertcase - Zap a list of strings to lower/uppercase.
convertcase = [
if (> $numargs 0) [
if (> $numargs 1) [
tmpCCO = ""
loop ccl $numargs [ if (> $ccl 0) [ tmpCCO = (concatword $tmpCCO " " (getalias (format arg%1 (+ $ccl 2)))) ] [ tmpCCO = (concatword $tmpCCO $arg2) ] ]
if (!= $arg1 0) [ result (toupper $tmpCCO) ] [ result (tolower $tmpCCO) ]
+16
View File
@@ -4543,6 +4543,22 @@ Output:
<description>enables or disables showing the player name on the HUD when in your crosshair.</description>
<value token="N" description="0 off, 1 on" minValue="0" maxValue="1" defaultValue="1"/>
</variable>
<command name="disablehud">
<description>Stores your current HUD configuration in a buffer and disables it entirely.</description>
<references>
<identifierReference identifier="cleanshot"/>
<identifierReference identifier="enablehud"/>
</references>
</command>
<command name="enablehud">
<description>Restores your HUD configuration after using disablehud.</description>
<references>
<identifierReference identifier="cleanshot"/>
<identifierReference identifier="disablehud"/>
</references>
</command>
</identifiers>
</section>