Demo Playback Script

tw1sttw1st Join Date: 2004-01-14 Member: 25326Members, Constellation
edited February 2005 in Scripting Discussion
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.

Comments

  • Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation
    its not a script, but try this instead:
    viewdemo <demoname>
    it automatically includes the appropriate time/seek/rewind/etc options
  • c4tc4t Join Date: 2003-09-06 Member: 20619Members
    <!--QuoteBegin-R e n e g a d e+Feb 22 2005, 05:21 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (R e n e g a d e @ Feb 22 2005, 05:21 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> its not a script, but try this instead:
    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.
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    You'd have to find the console command equivilants for these functions, I don't know them. If you do, I can make it for you.
  • tw1sttw1st Join Date: 2004-01-14 Member: 25326Members, Constellation
    edited February 2005
    i figured it out as I said above <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->

    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.
  • bmdavllbmdavll Join Date: 2004-09-13 Member: 31682Members
    I've been using this:
    <!--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.
  • rook2pawnrook2pawn Join Date: 2008-07-03 Member: 64552Members
    i know this is old but THANK you tw1st!!

    whenever i bound some play control to a key, it triggered the console first.. this solves it.
Sign In or Register to comment.