Upvote Upvoted 2 Downvote Downvoted
Viewmodel switcher
posted in Customization
1
#1
0 Frags +

I know this has probably been asked a 1000 times and its such a dumb question but I want viewmodels off for slot 1 and slot 2 and on for slot 3.

So far i have
bind "1" "slot1; r_drawviewmodel 0"
bind "2" "slot2; r_drawviewmodel 0"
bind "3" "slot3; r_drawviewmodel 1"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "0" "slot0"

the issue is, is that i never used the number buttons, i use the scroll wheel. So this script only works if you press the number buttons. but i want it to work with scroll wheel.

Note: Scroll wheel down goes from rocket launcher to shotgun and scroll up is vice versa.

Sorry for such dumb question:/

I know this has probably been asked a 1000 times and its such a dumb question but I want viewmodels off for slot 1 and slot 2 and on for slot 3.

So far i have
bind "1" "slot1; r_drawviewmodel 0"
bind "2" "slot2; r_drawviewmodel 0"
bind "3" "slot3; r_drawviewmodel 1"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "0" "slot0"

the issue is, is that i never used the number buttons, i use the scroll wheel. So this script only works if you press the number buttons. but i want it to work with scroll wheel.

Note: Scroll wheel down goes from rocket launcher to shotgun and scroll up is vice versa.


Sorry for such dumb question:/
2
#2
4 Frags +

try broesel crosshair switcher
https://code.google.com/p/broesels-crosshair-switcher/

try broesel crosshair switcher
https://code.google.com/p/broesels-crosshair-switcher/
3
#3
0 Frags +
Dingtry broesel crosshair switcher

I have but I dont like it simply because if you're wearing the gunboats scrolling down doesnt switch weapons on the first cycle. Say if i had slot 1 with viewmodel 1 and slot 2 viewmodel 0. Scrolling down would just turn slot 1 viewmodel off until i scroll down again.

[quote=Ding]try broesel crosshair switcher[/quote]

I have but I dont like it simply because if you're wearing the gunboats scrolling down doesnt switch weapons on the first cycle. Say if i had slot 1 with viewmodel 1 and slot 2 viewmodel 0. Scrolling down would just turn slot 1 viewmodel off until i scroll down again.
4
#4
2 Frags +

try this:
alias slot_1 "slot1; r_drawviewmodel 0"
alias slot_2 "slot2; r_drawviewmodel 0"
alias slot_3 "slot3; r_drawviewmodel 1"
r_drawviewmodel 0
alias up1 "slot1; r_drawviewmodel 0; bind MWHEELUP up2; bind MWHEELDOWN down1"
alias up2 "slot2; r_drawviewmodel 0; bind MWHEELUP up1; bind MWHEELDOWN down2"
alias down1 "slot2; r_drawviewmodel 0; bind MWHEELDOWN down2; bind MWHEELUP up1"
alias down2 "slot1; r_drawviewmodel 0; bind MWHEELDOWN down1; bind MWHEELUP up2"
bind "MWHEELUP" up2
bind MWHEELDOWN down1
bind "1" "up1"
bind "2" "up2"
bind "3" "slot3; r_drawviewmodel 1"

i dot think it'll work with melee though

try this:
alias slot_1 "slot1; r_drawviewmodel 0"
alias slot_2 "slot2; r_drawviewmodel 0"
alias slot_3 "slot3; r_drawviewmodel 1"
r_drawviewmodel 0
alias up1 "slot1; r_drawviewmodel 0; bind MWHEELUP up2; bind MWHEELDOWN down1"
alias up2 "slot2; r_drawviewmodel 0; bind MWHEELUP up1; bind MWHEELDOWN down2"
alias down1 "slot2; r_drawviewmodel 0; bind MWHEELDOWN down2; bind MWHEELUP up1"
alias down2 "slot1; r_drawviewmodel 0; bind MWHEELDOWN down1; bind MWHEELUP up2"
bind "MWHEELUP" up2
bind MWHEELDOWN down1
bind "1" "up1"
bind "2" "up2"
bind "3" "slot3; r_drawviewmodel 1"

i dot think it'll work with melee though
5
#5
-2 Frags +

Ninjad

Ninjad
6
#6
0 Frags +
zookeyI have but I dont like it simply because if you're wearing the gunboats scrolling down doesnt switch weapons on the first cycle. Say if i had slot 1 with viewmodel 1 and slot 2 viewmodel 0. Scrolling down would just turn slot 1 viewmodel off until i scroll down again.

you would have that the way you want to do it too, no way around it automatically

[quote=zookey]I have but I dont like it simply because if you're wearing the gunboats scrolling down doesnt switch weapons on the first cycle. Say if i had slot 1 with viewmodel 1 and slot 2 viewmodel 0. Scrolling down would just turn slot 1 viewmodel off until i scroll down again.[/quote]
you would have that the way you want to do it too, no way around it automatically
7
#7
0 Frags +

I'm using this one.

[url=http://doodlesstuff.com/?script=vm]I'm using this one.[/url]
8
#8
0 Frags +

This has been working for me so far.

http://teamfortress.tv/thread/14560/alias-based-lastinv

This has been working for me so far.

[url=http://teamfortress.tv/thread/14560/alias-based-lastinv]http://teamfortress.tv/thread/14560/alias-based-lastinv[/url]
9
#9
0 Frags +

i'd recommend to create your own, to get it exactly how you like it.

i'd recommend to create your own, to get it exactly how you like it.
10
#10
0 Frags +

-snip-

-snip-
11
#11
3 Frags +

There's no way for a script to know what weapon you have out or equipped. So if you use the gunboats, the script cannot possibly know to switch to slot3 instead of slot2.

If you like the mouse wheel, consider this setup.
bind mwheelup slot1
bind mwheeldown slot2
bind mouse3 slot3

This is a lot better. there's no ambiguity, and if you accidentally scroll twice it doesn't matter at all. Not only is it a superior setup, but it works very well with any sort of script you might want to do.

There's no way for a script to know what weapon you have out or equipped. So if you use the gunboats, the script cannot possibly know to switch to slot3 instead of slot2.

If you like the mouse wheel, consider this setup.
bind mwheelup slot1
bind mwheeldown slot2
bind mouse3 slot3

This is a lot better. there's no ambiguity, and if you accidentally scroll twice it doesn't matter at all. Not only is it a superior setup, but it works very well with any sort of script you might want to do.
12
#12
0 Frags +

smobo's mentioned option is great in my opinion.
personally i use different configs for different loadouts, which has always worked great for me.

example: bind keys 7 through 0 to equipping loadout A-D + executing a script that supports that loadout.
in my case, when i select soldier, my 9 key becomes equipping loadout C (gunboats, RL, equalizer) and it executes soldierC.cfg.
in your case, you could do the same, and then just add a small script to soldierC.cfg (or whatever) that skips selecting slot2 with the mwheel, so your mwheel will then scroll only through slot1 and slot3.

for example, this is in my soldier.cfg:

bind 7 "exec soldier
bind 8 "load_itempreset 1;exec soldierB
bind 9 "load_itempreset 2;exec soldierC
bind 0 "load_itempreset 3;exec soldierD

(load_itempreset 0 is in soldier.cfg)

so if i select soldier, and then press 9 when in spawn, i will respawn with loadout C + execute soldierC.cfg. easy as that!

smobo's mentioned option is great in my opinion.
personally i use different configs for different loadouts, which has always worked great for me.

example: bind keys 7 through 0 to equipping loadout A-D + executing a script that supports that loadout.
in my case, when i select soldier, my 9 key becomes equipping loadout C (gunboats, RL, equalizer) and it executes soldierC.cfg.
in your case, you could do the same, and then just add a small script to soldierC.cfg (or whatever) that skips selecting slot2 with the mwheel, so your mwheel will then scroll only through slot1 and slot3.

for example, this is in my soldier.cfg:
[code]bind 7 "exec soldier
bind 8 "load_itempreset 1;exec soldierB
bind 9 "load_itempreset 2;exec soldierC
bind 0 "load_itempreset 3;exec soldierD[/code]
(load_itempreset 0 is in soldier.cfg)

so if i select soldier, and then press 9 when in spawn, i will respawn with loadout C + execute soldierC.cfg. easy as that!
Please sign in through STEAM to post a comment.