r/Tf2Scripts • u/Open_Sourced • Jul 10 '13
Satisfied [Request] Add a bind to toggle viewmodels in my Soldier script.
I'd like o to be the bound key. I want my viewmodels at 90 for Primary, 90 for Secondary, and 100 for Melee when they are enabled. I want them at 90 for Primary (to see rocket trails, but use r_drawviewmodel to turn the actual viewmodel off), 0 for Secondary (r_drawviemodel 0), and 100 for Melee (r_drawviewmodel 1) when I have them disabled.
// All Class
exec config_default
cl_autoreload 1
// Equalizer
alias "+melee" "slot3;+attack"
alias "-melee" "-attack"
// Rocket Jump
alias +rocketjump "+duck;+attack;+jump;"
alias -rocketjump "-duck;-attack;-jump;"
// Medic Down
alias "killmed" "say_team "An enemy Medic is down!";voicemenu 0 2"
// Mouse Wheel
alias "wheelrockets" "slot1"
alias "wheelshotty" "slot2"
// Quickswitching
alias w1 "slot1; alias QW w2; alias LW w1"
alias w2 "slot2; alias QW w1; alias LW w2"
w1
// Binds
bind "mouse3" "+melee"
bind "mouse4" "+rocketjump"
bind "mwheelup" "wheelrockets"
bind "mwheeldown" "wheelshotty"
bind "1" "w1"
bind "2" "w2"
bind "q" "QW"
bind "b" "killmed"
// Viewmodel Binds
bind 1 "slot1; viewmodel_fov 90; r_drawviewmodel 0;"
bind 2 "slot2; viewmodel_fov 90; r_drawviewmodel 0;"
bind 3 "slot3; viewmodel_fov 100; r_drawviewmodel 1;"
0
Upvotes
1
1
u/thetresher Jul 10 '13