r/tf2scripthelp • u/marble0 • Apr 12 '15
Resolved Spy Watch Viewmodel
Hello. Recently my spy viewmodels broke, including my watch not being shown. This is my current script. //bind "1" "slot1; r_drawviewmodel 0;" // Revolver - viewmodel OFF //bind "2" "slot2; r_drawviewmodel 0;" // Sapper - viewmodel OFF //bind "3" "slot3; r_drawviewmodel 1; viewmodel_fov 120" // Knife - viewmodel ON //bind "4" "slot4; r_drawviewmodel 0;" // Disguise Kit - viewmodel OFF I put it all in notes after the viewmodels stopped working. I am curious though - how do I toggle the viewmodels? What slot would the watch be? Because when I had all of these scripts with r_drawviewmodel 0, my watch was hidden as well as everything. Did I mistake the disguise kit and the cloak? If so, is there a way to hide the disguise kit? Any help would be appreciated. Thanks!
View all comments
Show parent comment
2
u/genemilder Scripter Apr 12 '15
You put the spy script in spy.cfg and the reset line in reset.cfg.
Follow the instructions for creating the reset.cfg so that every class cfg has
exec resetas the first line. This means that reset.cfg will execute immediately before the text of each class cfg when that class cfg is called.Class cfgs are automatically called when you switch classes, so the above fixes your other concern too.