Author Topic: GMod Slo-Mo Script (One More Thing, Sorry)  (Read 9001 times)

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.

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: [Select]
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"
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.
« Last Edit: June 29, 2010, 09:09:20 PM by Dapizzanator »

sv_cheats 1

host_timescale 0.1 - 2

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.

fpsbanana has a scripting section. look in there.

I'm just saying there doesn't really need to be a whole script for it when you could just do that.

fpsbanana has a scripting section. look in there.
Forgot about that, thanks.
I'm just saying there doesn't really need to be a whole script for it when you could just do that.
Well, it's just for effects, not that I make videos or anything, but it just makes it easier. And, I'm trying to learn scripting on my own, no tutors or anything, by ripping up old codes.

Well, it's just for effects, not that I make videos or anything, but it just makes it easier. And, I'm trying to learn scripting on my own, no tutors or anything, by ripping up old codes.

Oh, alright. Good luck then.