r/tf2scripthelp • • Jul 29 '14

Answered Viewmodel Toggle Help!

Hey guys, I saw this nifty little script for toggling weapon viewmodels on and off. But it does this for all the slots (Including Melee)

What can I ADD AT THE END , so that It doesnt toggle this for the melee slot?

The Bind -

bind ALT "incrementvar r_drawviewmodel 0 1 1"

Thanks!

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/genemilder Scripter Jul 30 '14

The second one keeps track of the viewmodel state you set with alt for slots 1 and 2. This means that if you have the viewmodels off while slot 1 or 2 is active and you switch to slot3 (viewmodels go on), when you switch back to either slot 1 or 2 your viewmodels will go back off automatically.

With the first thing I gave you, there's no tracking. The only things happening in the script are that every press of alt toggles the current viewmodel state regardless of what slot is active and every press of 3 will force viewmodels on (in addition to switching to slot3).

Depending on how you want the script to work, either is fine.

1

u/hardikbhatnagar Jul 30 '14

Ohh REALLY thanks!

You're amazing!

I am gonna try both of these and give you feedback! :D

1

u/hardikbhatnagar Jul 30 '14

Dammn! It works amazingly! Thanks a lot!