Help - Search - Members - Calendar
Full Version: Demo Playback Script
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
tw1st
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.
R_e_n_e_g_a_d_e
its not a script, but try this instead:
viewdemo <demoname>
it automatically includes the appropriate time/seek/rewind/etc options
c4t
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.
ReK
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.
tw1st
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.
bmdavll
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.
rook2pawn
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.