Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // "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
- alias rewind [
- if (watchingdemo) [
- alias rewindtime (*f $arg1 60000)
- alias timemark (* $minutesremaining 60000)
- alias mapstartonce [
- tmp_soundVol = $soundvol
- alias demosleeplength (- (* $minutesremaining 60000) (+ $rewindtime $timemark))
- gamespeed 1000
- soundvol 0
- sleep $demosleeplength [gamespeed 30; soundvol $tmp_soundVol]
- ]
- demo $_demofile
- ] [echo Not currently watching a demo.]]
- alias setmr [
- if (watchingdemo) [
- alias millisrem (*f $arg1 60000)
- alias mapstartonce [
- tmp_soundVol = $soundvol
- alias demosleeplength (- (* $minutesremaining 60000) $millisrem)
- gamespeed 1000
- soundvol 0
- sleep $demosleeplength [gamespeed 30; soundvol $tmp_soundVol]
- ]
- demo $_demofile
- ] [echo Not currently watching a demo.]]
- // Thanks to GeneralDisarray for saving our ears:
- // tmp = $soundvol; soundvol 0 and afterwards soundvol $tmp
Advertisement
Add Comment
Please, Sign In to add comment