From 2d4feb3673a9b7c6cf1918852258faef24133f9a Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sat, 14 May 2011 12:13:29 +0000 Subject: [PATCH] setmr is now hard coded.. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6426 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index 4b0ef7cc..8d814192 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -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"