11 Jun 12, 06:24PM
[cubescript]
alias rewind [
if (watchingdemo) [
alias rewindtime (*f $arg1 60000)
alias timemark (* $minutesremaining 60000)
alias mapstartonce [
alias mapstartonce [
alias demosleeplength (- (* $minutesremaining 60000) (+ $rewindtime $timemark))
gamespeed 1000
tmp = $soundvol
soundvol 0
sleep $demosleeplength [gamespeed 100; soundvol $tmp]]
demo $_demofile]
stopdemo
] [echo Not currently watching a demo.]]
alias setmr [
if (watchingdemo) [
alias millisrem (*f $arg1 60000)
alias mapstartonce [
alias mapstartonce [
alias demosleeplength (- (* $minutesremaining 60000) $millisrem)
gamespeed 1000
tmp = $soundvol
soundvol 0
sleep $demosleeplength [gamespeed 100; soundvol $tmp]]
demo $_demofile]
stopdemo
] [echo Not currently watching a demo.]]
[/cubescript]
This tested OK on my end. I don't know why we would set gamespeed to 30 at the end so I changed it to 100. Checked the brackets and they're all matched.
alias rewind [
if (watchingdemo) [
alias rewindtime (*f $arg1 60000)
alias timemark (* $minutesremaining 60000)
alias mapstartonce [
alias mapstartonce [
alias demosleeplength (- (* $minutesremaining 60000) (+ $rewindtime $timemark))
gamespeed 1000
tmp = $soundvol
soundvol 0
sleep $demosleeplength [gamespeed 100; soundvol $tmp]]
demo $_demofile]
stopdemo
] [echo Not currently watching a demo.]]
alias setmr [
if (watchingdemo) [
alias millisrem (*f $arg1 60000)
alias mapstartonce [
alias mapstartonce [
alias demosleeplength (- (* $minutesremaining 60000) $millisrem)
gamespeed 1000
tmp = $soundvol
soundvol 0
sleep $demosleeplength [gamespeed 100; soundvol $tmp]]
demo $_demofile]
stopdemo
] [echo Not currently watching a demo.]]
[/cubescript]
This tested OK on my end. I don't know why we would set gamespeed to 30 at the end so I changed it to 100. Checked the brackets and they're all matched.