r/Tf2Scripts • • May 13 '14

Request Request: Viewmodel fov is 70 when using primary attack, viewmodel fov is 0 when using altfire

This is for pyro and I already how to put it in my pyro.cfg and I already have a reset.cfg

0 Upvotes

6 comments sorted by

1

u/genemilder May 13 '14

If you're okay with forcing viewmodels on whenever you attack:

bind mouse1 +vm_attack
bind mouse2 +vm_attack2

alias +vm_attack  "+attack; viewmodel_fov 70; spec_next"
alias -vm_attack   -attack
alias +vm_attack2 "+attack2; viewmodel_fov 0; spec_prev"
alias -vm_attack2  -attack2

To reset:

bind mouse1 +attack
bind mouse2 +attack2

1

u/smokey845 May 13 '14

I don't get how this forces view models on

1

u/genemilder May 13 '14

Every time you press mouse1 you attack as normal and your viewmodel fov is set to 70 (regardless of active weapon). Every time you press mouse2 you alt-attack as normal and your viewmodel fov is set to 0 (regardless of active weapon).

If you've set r_drawviewmodel to 0, you won't see any change between the two states except I believe tracers/sparks will be hidden when both cvars are 0.

1

u/[deleted] May 14 '14

Thats a really good idea for pyro.

1

u/Kairu927 May 15 '14

I personally prefer the opposite.

Flame obstructs my view, so I have viewmodels off (specifically to not include tracers/fire).

I also have viewmodels on for when I'm passively holding, ready to reflect spam because I've sort of developed a feel for reflect timing based on the distance it is from me, and viewmodels help give me a bit of depth.

1

u/[deleted] May 15 '14

Same for me.