Demo Playback Script
tw1st
Join Date: 2004-01-14 Member: 25326Members, Constellation
I'm looking for a script that will let me slow down and speed up a demo while its being played back ( for movie-making purposes )
So far I've tried this, but as soon as a hit one of the keys while playing back a demo the console comes up and nothing seems to happens.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->alias ps "pson"
alias pson "dem_pause 1; alias ps psof"
alias psof "dem_pause 0; alias ps pson"
alias dem_speeddown "d05"
alias dem_speedup "d2"
alias d025 "dem_speed 0.25;alias dem_speeddown d025;alias dem_speedup d05"
alias d05 "dem_speed 0.5;alias dem_speeddown d025;alias dem_speedup d1"
alias d1 "dem_speed 1;alias dem_speeddown d05;alias dem_speedup d2"
alias d2 "dem_speed 2;alias dem_speeddown d1;alias dem_speedup d4"
alias d4 "dem_speed 4;alias dem_speeddown d2;alias dem_speedup d4"
bind "leftarrow" "ps"
bind "downarrow" "dem_speeddown"
bind "uparrow" "dem_speedup"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Any help is appreciated.
*EDIT*
Nvm, I answered my own question. Apparantly if you bind anything to a key to anything other than F1 - F12 they console gets brought up and it won't work.
So far I've tried this, but as soon as a hit one of the keys while playing back a demo the console comes up and nothing seems to happens.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->alias ps "pson"
alias pson "dem_pause 1; alias ps psof"
alias psof "dem_pause 0; alias ps pson"
alias dem_speeddown "d05"
alias dem_speedup "d2"
alias d025 "dem_speed 0.25;alias dem_speeddown d025;alias dem_speedup d05"
alias d05 "dem_speed 0.5;alias dem_speeddown d025;alias dem_speedup d1"
alias d1 "dem_speed 1;alias dem_speeddown d05;alias dem_speedup d2"
alias d2 "dem_speed 2;alias dem_speeddown d1;alias dem_speedup d4"
alias d4 "dem_speed 4;alias dem_speeddown d2;alias dem_speedup d4"
bind "leftarrow" "ps"
bind "downarrow" "dem_speeddown"
bind "uparrow" "dem_speedup"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Any help is appreciated.
*EDIT*
Nvm, I answered my own question. Apparantly if you bind anything to a key to anything other than F1 - F12 they console gets brought up and it won't work.
Comments
viewdemo <demoname>
it automatically includes the appropriate time/seek/rewind/etc options
viewdemo <demoname>
it automatically includes the appropriate time/seek/rewind/etc options <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
ive been looking for this too.
even with viewdemo its still really really annoying to have to press a button then slow it down then press esc to get back. i would like a script that does what he say.
Here is the script
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->alias dem_speeddown "d05"
alias dem_speedup "d2"
alias d025 "dem_speed 0.25;alias dem_speeddown d025;alias dem_speedup d05"
alias d05 "dem_speed 0.5;alias dem_speeddown d025;alias dem_speedup d1"
alias d1 "dem_speed 1;alias dem_speeddown d05;alias dem_speedup d2"
alias d2 "dem_speed 2;alias dem_speeddown d1;alias dem_speedup d4"
alias d4 "dem_speed 4;alias dem_speeddown d2;alias dem_speedup d4"
bind "F5l " "ps"
bind "F6 " "dem_speeddown"
bind "F7 " "dem_speedup"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
I has to be bound to F1 - F12 or else it wont work properly.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->//demo speed control
alias dspeed0 "host_framerate 0.0000000001; alias dspeedup dspeed1"
alias dspeed1 "host_framerate 0.0005; alias dspeedup dspeed2; alias dspeeddn dspeed0"
alias dspeed2 "host_framerate 0.0025; alias dspeedup dspeed3; alias dspeeddn dspeed1"
alias dspeed3 "host_framerate 0.0; alias dspeedup dspeed4; alias dspeeddn dspeed2"
alias dspeed4 "host_framerate 0.015; alias dspeedup dspeed5; alias dspeeddn dspeed3"
alias dspeed5 "host_framerate 0.05; alias dspeeddn dspeed4"
dspeed3
alias +dspeed "bind MWHEELDOWN dspeeddn; bind MWHEELUP dspeedup"
alias -dspeed "bind MWHEELDOWN null; bind MWHEELUP null"
bind F8 "+dspeed"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
You hold down F8 and use your mousewheel to control speed. Release F8 and you keep going at the set speed and your MWHEEL is unbound (or just rebind it to what you bound it to before). Hold down F8 again to control speed. Don't know whta the difference is between tw1st's script with dem_speed and this one tho.
whenever i bound some play control to a key, it triggered the console first.. this solves it.