r/Tf2Scripts • • Nov 13 '18

Question Need help with a Viewmodel related script

I tried to make a script which turns off viewmodels when using the direct hit (I hate the direct hit viewmodel) and keeps viewmodel on when I use melee/shotgun.

Obviously I could just use ytterium's comp viewmodels but that doesn't work with the direct hit for whatever reason.

Here's the script:

alias unbinds "unbind mwheelup; unbind mwheeldown; unbind mouse5"

alias melee "slot3; r_drawviewmodel 1; viewmodel_fov 97"

alias secondary "slot2; r_drawviewmodel 1; viewmodel_fov 97"

alias primary "slot1; r_drawviewmodel 0; viewmodel_fov 97"

alias on "unbinds; bind mwheelup primary; bind mouse5 secondary; bind mwheelup melee"

alias off "bind mwheelup invprev; bind mwheeldown invnext"

bindtoggle l "on off"

So I was just wondering why this doesn't work and what I can do to fix it.

Thanks.

5 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/bythepowerofscience Nov 14 '18

Anytime!

And you might be right about that. I'll have to check when I get home.
...after I ban all of these freaking bots.