Demo Playback Script

tw1sttw1st Join Date: 2004-01-14 Member: 25326Members, Constellation Posts: 37 Fully active user
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.

QUOTE
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"


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.
user posted image

Comments

  • Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation Posts: 1,206
    its not a script, but try this instead:
    viewdemo <demoname>
    it automatically includes the appropriate time/seek/rewind/etc options
    "Why can i never be a SKUL or an ONOS why am i always a REIN?" - me, NS 1.0
    When you won't do it for support... Do It For Black Armour
    ns nostalgia • missing: pc gaming
  • c4tc4t Join Date: 2003-09-06 Member: 20619Members Posts: 383
    QUOTE (R e n e g a d e @ Feb 22 2005, 05:21 PM)
    its not a script, but try this instead:
    viewdemo <demoname>
    it automatically includes the appropriate time/seek/rewind/etc options

    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.
    QUOTE(obuh @ Mar 23 2005, 06:24 AM)
    Cloaking counters fun. lol.
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver Posts: 708 Advanced user
    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.
    Jumping send out a big hank cyclone, it will eddy original location in gallinaceous body, and pinch three times, opponent
  • tw1sttw1st Join Date: 2004-01-14 Member: 25326Members, Constellation Posts: 37 Fully active user
    edited February 2005
    i figured it out as I said above tounge.gif

    Here is the script

    QUOTE
    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"



    I has to be bound to F1 - F12 or else it wont work properly.
    user posted image
  • bmdavllbmdavll Join Date: 2004-09-13 Member: 31682Members Posts: 51
    I've been using this:
    CODE
    //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"


    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 Posts: 71
    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.