// "Rewind" workaround by V-Man
// rewind x, where "x" is the number of minutes back to rewind
// setmr x, where "x" is the "minutes remaining" mark to skip to
[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 30; 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 30; soundvol $tmp]]
demo $_demofile)]
stopdemo
] [echo Not currently watching a demo.]]
// Thanks to GeneralDisarray for saving our ears:
// tmp = $soundvol; soundvol 0 and afterwards soundvol $tmp
[/cubescript]
This is the Script obviously...and i already deleted saved.cfg once when i installed the script
Mod edit: put code into cubescript tags.
// rewind x, where "x" is the number of minutes back to rewind
// setmr x, where "x" is the "minutes remaining" mark to skip to
[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 30; 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 30; soundvol $tmp]]
demo $_demofile)]
stopdemo
] [echo Not currently watching a demo.]]
// Thanks to GeneralDisarray for saving our ears:
// tmp = $soundvol; soundvol 0 and afterwards soundvol $tmp
[/cubescript]
This is the Script obviously...and i already deleted saved.cfg once when i installed the script
Mod edit: put code into cubescript tags.