diff --git a/config/docs.cfg b/config/docs.cfg
index a17cb09c..fa570668 100644
--- a/config/docs.cfg
+++ b/config/docs.cfg
@@ -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];
diff --git a/config/scripts.cfg b/config/scripts.cfg
index 0c435d54..59229c8c 100644
--- a/config/scripts.cfg
+++ b/config/scripts.cfg
@@ -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) ]
diff --git a/docs/reference.xml b/docs/reference.xml
index 18c77178..deedb68d 100644
--- a/docs/reference.xml
+++ b/docs/reference.xml
@@ -4543,6 +4543,22 @@ Output:
enables or disables showing the player name on the HUD when in your crosshair.
+
+
+ Stores your current HUD configuration in a buffer and disables it entirely.
+
+
+
+
+
+
+
+ Restores your HUD configuration after using disablehud.
+
+
+
+
+