Upvote Upvoted 15 Downvote Downvoted
Script: Makes viewmodel disappear when you fire
posted in Customization
1
#1
0 Frags +

Whipped this up a while ago for my own reasons and haven't figured to post it anywhere unless someone wanted it, but here it is:
It turns on your viewmodel whenever you switch weapons, whether with the mouse wheel or number keys. Whenever you fire, it turns off. This results in less confusion if you get confused easily when having your viewmodels off (like I get), but when you actually get into a fight it takes away the viewmodel to make sure they don't get in your way.

r_drawviewmodel 1
alias +turnoffviewmodel "+attack; r_drawviewmodel 0"
bind mouse1 "+turnoffviewmodel"
bind mwheelup "invprev; r_drawviewmodel 1"
bind mwheeldown "invnext; r_drawviewmodel 0"
bind 1 "slot1; r_drawviewmodel 1"
bind 2 "slot2; r_drawviewmodel 1"
bind 3 "slot3; r_drawviewmodel 1"
bind 4 "slot4; r_drawviewmodel 1"
bind 5 "slot5; r_drawviewmodel 1"

This isn't a new idea, I'm not taking credit for it. Just posting it here bare bones because I've never seen a post for it anywhere that doesn't have it clogged up inside stabby's spy config (which is a masterpiece by the way).

Thanks and enjoy.

Whipped this up a while ago for my own reasons and haven't figured to post it anywhere unless someone wanted it, but here it is:
It turns on your viewmodel whenever you switch weapons, whether with the mouse wheel or number keys. Whenever you fire, it turns off. This results in less confusion if you get confused easily when having your viewmodels off (like I get), but when you actually get into a fight it takes away the viewmodel to make sure they don't get in your way.

[code]r_drawviewmodel 1
alias +turnoffviewmodel "+attack; r_drawviewmodel 0"
bind mouse1 "+turnoffviewmodel"
bind mwheelup "invprev; r_drawviewmodel 1"
bind mwheeldown "invnext; r_drawviewmodel 0"
bind 1 "slot1; r_drawviewmodel 1"
bind 2 "slot2; r_drawviewmodel 1"
bind 3 "slot3; r_drawviewmodel 1"
bind 4 "slot4; r_drawviewmodel 1"
bind 5 "slot5; r_drawviewmodel 1"[/code]

This isn't a new idea, I'm not taking credit for it. Just posting it here bare bones because I've never seen a post for it anywhere that doesn't have it clogged up inside stabby's spy config (which is a masterpiece by the way).

Thanks and enjoy.
2
#2
0 Frags +

nice, will this work with reflecting

nice, will this work with reflecting
3
#3
3 Frags +
yahoonice, will this work with reflecting

add this to the script:

bind mouse2 +turnoffviewmodel2
alias +turnoffviewmodel2 "+attack2;r_drawviewmodel 0;spec_prev
alias -turnoffviewmodel2 -attack2
[quote=yahoo]nice, will this work with reflecting[/quote]

add this to the script:
[code]
bind mouse2 +turnoffviewmodel2
alias +turnoffviewmodel2 "+attack2;r_drawviewmodel 0;spec_prev
alias -turnoffviewmodel2 -attack2
[/code]
4
#4
-3 Frags +
yahoonice, will this work with reflecting

yup, should work with all orientations

[quote=yahoo]nice, will this work with reflecting[/quote]
yup, should work with all orientations
5
#5
8 Frags +

i wish there was a script that would turn them off during reload animation

i wish there was a script that would turn them off during reload animation
6
#6
1 Frags +
marmadukeGRYLLSi wish there was a script that would turn them off during reload animation

I imagine it'd be possible with the wait command but that's only allowed in sv_cheats 1
Otherwise you could maybe bind the drawviewmodel with something like calling Medic

[quote=marmadukeGRYLLS]i wish there was a script that would turn them off during reload animation[/quote]
I imagine it'd be possible with the wait command but that's only allowed in sv_cheats 1
Otherwise you could maybe bind the drawviewmodel with something like calling Medic
7
#7
0 Frags +
rowrowmarmadukeGRYLLSi wish there was a script that would turn them off during reload animationI imagine it'd be possible with the wait command but that's only allowed in sv_cheats 1
Otherwise you could maybe bind the drawviewmodel with something like calling Medic

Wait command works in valve servers. I am not sure where people got the impression that's its banned in Valve servers but that's incorrect. Now in competitive servers its banned.
You can test it using Valves wait tester script add this to its own cfg called wait tester

alias waitTester "alias waitTest waitPositive; wait; waitTest"
alias wait "alias waitTest waitNegative"
alias waitPositive "echo Wait is enabled on this server.; exec waitPositive.cfg"
alias waitNegative "echo Wait is DISABLED on this server!; exec waitNegative.cfg"
waitTester

[quote=rowrow][quote=marmadukeGRYLLS]i wish there was a script that would turn them off during reload animation[/quote]
I imagine it'd be possible with the wait command but that's only allowed in sv_cheats 1
Otherwise you could maybe bind the drawviewmodel with something like calling Medic[/quote]
Wait command works in valve servers. I am not sure where people got the impression that's its banned in Valve servers but that's incorrect. Now in competitive servers its banned.
You can test it using Valves wait tester script add this to its own cfg called wait tester

alias waitTester "alias waitTest waitPositive; wait; waitTest"
alias wait "alias waitTest waitNegative"
alias waitPositive "echo Wait is enabled on this server.; exec waitPositive.cfg"
alias waitNegative "echo Wait is DISABLED on this server!; exec waitNegative.cfg"
waitTester
8
#8
1 Frags +

for some reason I cant stop shooting after the first left click

for some reason I cant stop shooting after the first left click
9
#9
-1 Frags +

fxed

fxed
Please sign in through STEAM to post a comment.