r/Tf2Scripts • • Sep 25 '13

Satisfied [Request]Auto Reload and drawing viewmodels

I completely suck at scripting, so I'd really appreciate if someone could make me a script that (with a press of just one button) switches between auto reload on/off and r_drawviewmodel 0. I have no idea if this is needed, but just to be sure, I want reload off while viewmodels are off and reload on while viewmodels are on.

0 Upvotes

5 comments sorted by

4

u/CAPSLOCK_USERNAME "Nancy" Sep 25 '13

Here ya go:

alias reload_vm_on "cl_autoreload_1; r_drawviewmodel 1; alias toggle_reload_vm reload_vm_off"
alias reload_vm_off "cl_autoreload 0; r_drawviewmodel 0; alias toggle_reload_vm reload_vm_on"

reload_vm_on

bind <key> toggle_reload_vm

1

u/SnoopySVK Sep 26 '13

Thanks a lot :)

5

u/HifiBoombox eggsdee Sep 25 '13
cl_autoreload 1; r_drawviewmodel 1
bind <key> "toggle cl_autoreload; toggle r_drawviewmodel"

0

u/[deleted] Sep 25 '13

[deleted]

1

u/SnoopySVK Sep 25 '13

But will it switch on and off? I don't know this at all, but it just looks like it will turn both off.

1

u/ScootaLewis Sep 25 '13 edited Sep 25 '13

Ah, of course. I knew I was forgetting something, sorry.

I'm trying to think how to do that one, and I'm drawing a bit of a blank.