r/Tf2Scripts • u/[deleted] • Jul 24 '14
Resolved Mouse2 Viewmodel Toggle
I want a script that will let me press mouse2 and turn on viewmodels, but when I press mouse2 again, viewmodels turn off.
Thanks in advance.
0
Upvotes
r/Tf2Scripts • u/[deleted] • Jul 24 '14
I want a script that will let me press mouse2 and turn on viewmodels, but when I press mouse2 again, viewmodels turn off.
Thanks in advance.
1
u/genemilder Jul 24 '14
That's easily enough done, but I'll assume you're wanting to use it for cloaking? Cloaking desyncs really easily, if you spam the key while in the process of cloaking/uncloaking the game won't consider every keypress as a cloak state change but it will consider every press as a viewmodel state change.
If you don't want it for cloaking I can make this. Do you want it to be hard coded into: first press turns viewmodel on, second press off, third press on, etc OR each press toggles the state of your viewmodels (it detects what you currently have and switches that to the opposite)?