setmr is now hard coded..

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6426 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-05-14 12:13:29 +00:00
parent d3c8df87bf
commit 2d4feb3673
-22
View File
@@ -333,28 +333,6 @@ getscrext = [
gamemodes_list = "TDM COOP DM SURV TSURV CTF PF BTDM BDM LSS OSOK TOSOK BOSOK HTF TKTF KTF"
getmodeacr = [ result (at $gamemodes_list $gamemode) ]
// setmr - Restart the current demo and fast forward to, a predefined minutes remaining.
tmp_ff = 0
setmr = [
if (! $tmp_ff) [
if (watchingdemo) [
if (! (> $arg1 (- (div $gametimemaximum 60000) 1))) [
if (! (< $arg1 1)) [
tmp_mrem = (*f $arg1 60000)
add2alias mapstartonce [
tmp_svol = $soundvol
checkinit 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.
omit_idents = "curname curteam idlebots name"