r/Tf2Scripts • u/TacocaT7339 • Dec 13 '20
Question viewmodel toggel button
is it possible to toggle q to quick switch as well as toggle ViewModels on and of
2
Upvotes
r/Tf2Scripts • u/TacocaT7339 • Dec 13 '20
is it possible to toggle q to quick switch as well as toggle ViewModels on and of
View all comments
Show parent comment
1
u/pdatumoj Dec 14 '20
If that's what you want, then it's a fair bit more complicated to implement than what you're asking ... and, unfortunately, it'll be somewhat unreliable. You'll need to start using a weapon switcher script to manage your weapon selection, rather than the stuff built into the game, as that's the only way to track which one you're on to set viewmodel on or off properly. The downside of using them is you'll have to get used to them getting out of sync with the game's status sometimes ... especially when you have just spawned or if you run out of ammo, or other things that would cause a different weapon to be selected than the script expects. In which case that's usually easy to clear up just by hammering the quickswitch key, but it's something to expect.
Essentially, you have a choice to make, because (assuming you're right that your animations are incompatible with the yttrium fix) you can only have 2 of these 3 things:
To summarize the outcomes of your choice: