This is a script that lets you speed up/slow down demos with your mousewheel.
https://pastebin.com/0eBEgh9j
Enjoy. :)
This is a script that lets you speed up/slow down demos with your mousewheel.
https://pastebin.com/0eBEgh9j
Enjoy. :)
thats actually kinda cool
thats actually kinda cool
You can simplify the script with incrementvar like so:
bind mwheelup "incrementvar demo_timescale 0.1 10 0.1"
bind mwheeldown "incrementvar demo_timescale 0.1 10 -0.1"
It does make it a bit more inflexible than with aliases--can't make something happen when you hit the min/max or make it wrap around or anything, but it works fine for this.
You can simplify the script with incrementvar like so:
[code]bind mwheelup "incrementvar demo_timescale 0.1 10 0.1"
bind mwheeldown "incrementvar demo_timescale 0.1 10 -0.1"[/code]It does make it a bit more inflexible than with aliases--can't make something happen when you hit the min/max or make it wrap around or anything, but it works fine for this.
to add to #3 you'd prob want a bind to reset the speed to 1x. something like:
bind mouse3 "demo_timescale 1"
edit: forgot the parenthesis
to add to #3 you'd prob want a bind to reset the speed to 1x. something like:
bind mouse3 "demo_timescale 1"
edit: forgot the parenthesis
hoolito add to #3 you'd prob want a bind to reset the speed to 1x. something like:
bind mouse3 demo_timescale 1
You could bind it to "normalspeed" and it would work as a reset. It's already defined to reset the scroll.
[quote=hooli]to add to #3 you'd prob want a bind to reset the speed to 1x. something like:
bind mouse3 demo_timescale 1[/quote]
You could bind it to "normalspeed" and it would work as a reset. It's already defined to reset the scroll.
my post is implying that you'd be using the script in #3 instead of yours
my post is implying that you'd be using the script in #3 instead of yours