diff --git a/config/docs.cfg b/config/docs.cfg
index 51ec019f..08619fc9 100644
--- a/config/docs.cfg
+++ b/config/docs.cfg
@@ -177,6 +177,7 @@ docident [storesets] [Generates an alias (list) of the current values for the gi
docargument [L] [the list of CVARs] [] [0];
docargument [A] [the alias to store them in] [] [0];
docexample [storesets "sensitivity hudgun fov" tmp] [Example result: stores "3.000 1 120" into alias "tmp".];
+docremark [Some idents cannot be stored via this command "(e.g. curname)", if an argument is given that cannot be used, the command will throw an error to notify you.];
docsection [General]
docident [addserver] [Adds a server to the list of server to query in the server list menu.];
docargument [S] [the address of the server (hostname or IP)] [] [0];
diff --git a/config/on_quit.cfg b/config/on_quit.cfg
index 2ed1edd0..0e69de33 100644
--- a/config/on_quit.cfg
+++ b/config/on_quit.cfg
@@ -24,6 +24,7 @@ on_quit_aliases = [
tmp_botskill
tmp_cl
tmp_cradius
+ tmp_ff
tmp_gamma_list
tmp_hex
tmp_mode
diff --git a/config/scripts.cfg b/config/scripts.cfg
index 9ca045b8..cbe7369c 100644
--- a/config/scripts.cfg
+++ b/config/scripts.cfg
@@ -366,22 +366,27 @@ gamemodes_list = [ TDM COOP DM SURV TSURV CTF PF BTDM BDM LSS OSOK TOSOK BOSOK H
getmodeacr = [ result (at $gamemodes_list $gamemode) ]
// setmr - Restart the current demo and fast forward to, a predefined minutes remaining.
+tmp_ff = 0
+
setmr = [
- if (watchingdemo) [
- if (! (> $arg1 (- (div $gametimemaximum 60000) 1))) [
- if (! (< $arg1 1)) [
- tmp_mrem = (*f $arg1 60000)
- add2alias mapstartonce [
- tmp_svol = $soundvol
- add2alias mapstartonce [ if (!= $soundvol $tmp_svol) [ soundvol $tmp_svol ] ] // Ensure that soundvol is reset to original setting
- sleep (- (* $minutesremaining 60000) $tmp_mrem) [ gamespeed 100; soundvol $tmp_svol ]
- soundvol 0
- gamespeed 1000
- ]
- demo $_demofile
- ] [ echo (c 3)Error: (c 1)setmr (c 5)requires a positive, non-zero argument. ]
- ] [ echo (c 3)Error: (c 5) $arg1 is not a valid minutes remaining to skip to in this demo. ]
- ] [ echo (c 3)Error: (c 5)You are not currently watching a demo. ]
+ if (! $tmp_ff) [
+ if (watchingdemo) [
+ if (! (> $arg1 (- (div $gametimemaximum 60000) 1))) [
+ if (! (< $arg1 1)) [
+ tmp_mrem = (*f $arg1 60000)
+ add2alias mapstartonce [
+ tmp_svol = $soundvol
+ add2alias mapstartonce [ if (!= $soundvol $tmp_svol) [ soundvol $tmp_svol ] ] // Ensure that soundvol is reset to original setting
+ sleep (- (* $minutesremaining 60000) $tmp_mrem) [ gamespeed 100; soundvol $tmp_svol; tmp_ff = 0 ]
+ soundvol 0
+ gamespeed 1000
+ tmp_ff = 1
+ ]
+ demo $_demofile
+ ] [ echo (c 3)Error: (c 1)setmr (c 5)requires a positive, non-zero argument. ]
+ ] [ echo (c 3)Error: (c 5) $arg1 is not a valid minutes remaining to skip to in this demo. ]
+ ] [ echo (c 3)Error: (c 5)You are not currently watching a demo. ]
+ ]
]
// storesets - Generates an alias (list) of the current values for the given CVARs.
diff --git a/docs/reference.xml b/docs/reference.xml
index 7d2b4b04..e40be05e 100644
--- a/docs/reference.xml
+++ b/docs/reference.xml
@@ -677,7 +677,7 @@
- Some idents cannot be stored via this command (e.g. curname), if an argument is given that cannot be used, the command will throw and error to notify you.
+ Some idents cannot be stored via this command (e.g. curname), if an argument is given that cannot be used, the command will throw an error to notify you.