Off Topic > Games
GMod Slo-Mo Script (One More Thing, Sorry)
zackin5:
alias "duck_t" "duck_on"
alias "duck_on" "alias duck_t duck_off; +duck"
alias "duck_off" "alias duck_t duck_on; -duck"
bind "alt" "duck_t"
That is a toggle crouch script, Use it as a reference on how to make it toggle.
Dapizzanator:
Alright, here's what I got, but it didn't work. Yes, I even tried +host_timescale .1 and -host_timescale 1, just to make sure it wouldn't work.
--- Code: ---unbind mouse3
alias "slomo_t" "slomo_on"
alias "slomo_on" "alias slomo_t slomo_off; host_timescale .1"
alias "slomo_off" "alias slomo_t slomo_on; host_timescale 1"
bind "mouse3" "slomo_t"
--- End code ---
Ninjaedit: Also, is there a Source code forum? I'd probably be a lot better there.
Ninjaedit2: Osht, forgot Sv_cheats 1. One minute.
Edit3: Holy god, it worked. Thanks! If anyone would like to explain why, though, that'd be great. Educational purposes.
Shinji:
sv_cheats 1
host_timescale 0.1 - 2
Dapizzanator:
No, I meant the whole
alias "slomo_t" "slomo_on"
alias "slomo_on" "alias slomo_t slomo_off; host_timescale .1"
alias "slomo_off" "alias slomo_t slomo_on; host_timescale 1"
area.
Devvy:
fpsbanana has a scripting section. look in there.