r/Tf2Scripts • u/randomstranger- • Aug 29 '13
Satisfied Viewmodel script request!
I play some classes with my viewmodels off, some on. But I want my melee weapon to always show, no matter what, how can I do this?
2
u/genemilder Aug 29 '13 edited Aug 29 '13
You can do this, but it requires scripting every instance of weapon switching, which means you will have problems when your character doesn't have access to a slot (out of ammo, gunboats etc) as the script will still attempt to go there (and think it is there). The script can desync for weapons with a switch delay (like the minigun) if you use the mwheel too much.
The script works much better if you only use keys that switch to a set weapon, but does work for the mwheel and quick switch.
I have 3 scripts for this (3, 4, and 5 weapon slot). Note that I removed the possible viewmodel change on attack for 3 and 5 slot, but kept it for 4 slot (to account for the spy watch and keep the autodisguise script). Weapon-specific crosshairs are scripted in but disabled.
If you want all viewmodels on for a certain class, then undo the changes of the other scripts (check the reset portions of all 3 and merge, don't just pick one), and that's it. Don't just use the big script with viewmodels on for that class in that case.
For installing, view this tutorial: http://www.reddit.com/r/tf2scripthelp/wiki/introduction
1
u/randomstranger- Aug 29 '13
Also, i use mousewheel and quickswitch.