Upvote Upvoted 0 Downvote Downvoted
Need help with a bind!
posted in Customization
1
#1
0 Frags +

Hello boys, I need some help with a bind here.. So basicly I want my primary invisible while every other weapon visible, but I want it to work with q aswell.. There's something wrong with this one help me out

alias "primary" "slot1; r_drawviewmodel 0"
alias "secondary" "slot2; r_drawviewmodel 1"
alias "melee" "slot3; r_drawviewmodel 1"

alias Q1 “secondary”
alias Q2 “primary”

bind "1" "primary"
bind "2" "secondary"
bind "3" "melee"

bind "q" "Q1;Q2"

don't know how to make it work with q :/ (I only use q to switch from primary to secondary/secondary to primary)

Hello boys, I need some help with a bind here.. So basicly I want my primary invisible while every other weapon visible, but I want it to work with q aswell.. There's something wrong with this one help me out


alias "primary" "slot1; r_drawviewmodel 0"
alias "secondary" "slot2; r_drawviewmodel 1"
alias "melee" "slot3; r_drawviewmodel 1"

alias Q1 “secondary”
alias Q2 “primary”

bind "1" "primary"
bind "2" "secondary"
bind "3" "melee"

bind "q" "Q1;Q2"

don't know how to make it work with q :/ (I only use q to switch from primary to secondary/secondary to primary)
2
#2
0 Frags +

Well what you would have to do is have the binds recognize each weapon, and change through it. So you would bind one, for example, to perform a task that will rebind q to change to the weapon previous and depending on the weapon switch the viewmodels. I am pretty sure it is possible, but it would use a lot of aliases setting other aliases.

Well what you would have to do is have the binds recognize each weapon, and change through it. So you would bind one, for example, to perform a task that will rebind q to change to the weapon previous and depending on the weapon switch the viewmodels. I am pretty sure it is possible, but it would use a lot of aliases setting other aliases.
3
#3
0 Frags +

The way you set up Q1;Q2 makes it exec Q2 immediately after Q1

Try

alias Q1 "secondary; bind q Q2"
alias Q2 "primary; bind q Q1"

bind q "Q1"

So you start off with Q1 which will switch to your secondary, and rebind itself to Q2, which will do the opposite.

The way you set up Q1;Q2 makes it exec Q2 immediately after Q1

Try
[code]alias Q1 "secondary; bind q Q2"
alias Q2 "primary; bind q Q1"

bind q "Q1"[/code]

So you start off with Q1 which will switch to your secondary, and rebind itself to Q2, which will do the opposite.
4
#4
0 Frags +

Yes, one problem is with your current setup, you will never be able to use Q to switch to melee. But if that doesn't matter to you I can solve your problem. Probably.

Yes, one problem is with your current setup, you will never be able to use Q to switch to melee. But if that doesn't matter to you I can solve your problem. Probably.
5
#5
0 Frags +
//WEAPON SWITCH  pm = primary special, sc = secondary special, ml = melee special
alias primary "slot1;r_drawviewmodel 0;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"
alias secondary "slot2;r_drawviewmodel 1;alias wep1 switch1;alias wep3 switch6;alias downbind switch6;alias upbind switch1"
alias melee "slot3;r_drawviewmodel 1;alias wep1 switch2;alias wep2 switch4;alias downbind switch2;alias upbind switch4"

alias extrakey "r_drawviewmodel 1;-attack;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"

alias qswitch "switch3"
alias switch1 "primary;alias qswitch switch3"
alias switch2 "primary;alias qswitch switch5"
alias switch3 "secondary;alias qswitch switch1"
alias switch4 "secondary;alias qswitch switch6"
alias switch5 "melee;alias qswitch switch2"
alias switch6 "melee;alias qswitch switch4"

bind 1 "wep1"
bind 2 "wep2"
bind 3 "wep3"
bind 4 "slot4; extrakey"
bind 5 "slot5; extrakey"
bind q "qswitch"

bind mwheeldown "downbind"
bind mwheelup "upbind"

also lets u scroll wheel switch

[code]//WEAPON SWITCH pm = primary special, sc = secondary special, ml = melee special
alias primary "slot1;r_drawviewmodel 0;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"
alias secondary "slot2;r_drawviewmodel 1;alias wep1 switch1;alias wep3 switch6;alias downbind switch6;alias upbind switch1"
alias melee "slot3;r_drawviewmodel 1;alias wep1 switch2;alias wep2 switch4;alias downbind switch2;alias upbind switch4"

alias extrakey "r_drawviewmodel 1;-attack;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"

alias qswitch "switch3"
alias switch1 "primary;alias qswitch switch3"
alias switch2 "primary;alias qswitch switch5"
alias switch3 "secondary;alias qswitch switch1"
alias switch4 "secondary;alias qswitch switch6"
alias switch5 "melee;alias qswitch switch2"
alias switch6 "melee;alias qswitch switch4"

bind 1 "wep1"
bind 2 "wep2"
bind 3 "wep3"
bind 4 "slot4; extrakey"
bind 5 "slot5; extrakey"
bind q "qswitch"

bind mwheeldown "downbind"
bind mwheelup "upbind"[/code]

also lets u scroll wheel switch
6
#6
0 Frags +
JermThe way you set up Q1;Q2 makes it exec Q2 immediately after Q1

Try
alias Q1 "secondary; bind q Q2"
alias Q2 "primary; bind q Q1"

bind q "Q1"

So you start off with Q1 which will switch to your secondary, and rebind itself to Q2, which will do the opposite.

Thank you worked!:)

[quote=Jerm]The way you set up Q1;Q2 makes it exec Q2 immediately after Q1

Try
[code]alias Q1 "secondary; bind q Q2"
alias Q2 "primary; bind q Q1"

bind q "Q1"[/code]

So you start off with Q1 which will switch to your secondary, and rebind itself to Q2, which will do the opposite.[/quote]


Thank you worked!:)
7
#7
0 Frags +
newDiGiT
//WEAPON SWITCH  pm = primary special, sc = secondary special, ml = melee special
alias primary "slot1;r_drawviewmodel 0;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"
alias secondary "slot2;r_drawviewmodel 1;alias wep1 switch1;alias wep3 switch6;alias downbind switch6;alias upbind switch1"
alias melee "slot3;r_drawviewmodel 1;alias wep1 switch2;alias wep2 switch4;alias downbind switch2;alias upbind switch4"

alias extrakey "r_drawviewmodel 1;-attack;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"

alias qswitch "switch3"
alias switch1 "primary;alias qswitch switch3"
alias switch2 "primary;alias qswitch switch5"
alias switch3 "secondary;alias qswitch switch1"
alias switch4 "secondary;alias qswitch switch6"
alias switch5 "melee;alias qswitch switch2"
alias switch6 "melee;alias qswitch switch4"

bind 1 "wep1"
bind 2 "wep2"
bind 3 "wep3"
bind 4 "slot4; extrakey"
bind 5 "slot5; extrakey"
bind q "qswitch"

bind mwheeldown "downbind"
bind mwheelup "upbind"

also lets u scroll wheel switch

This one works even better! Thank you guys

[quote=newDiGiT][code]//WEAPON SWITCH pm = primary special, sc = secondary special, ml = melee special
alias primary "slot1;r_drawviewmodel 0;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"
alias secondary "slot2;r_drawviewmodel 1;alias wep1 switch1;alias wep3 switch6;alias downbind switch6;alias upbind switch1"
alias melee "slot3;r_drawviewmodel 1;alias wep1 switch2;alias wep2 switch4;alias downbind switch2;alias upbind switch4"

alias extrakey "r_drawviewmodel 1;-attack;alias wep2 switch3;alias wep3 switch5;alias downbind switch3;alias upbind switch5"

alias qswitch "switch3"
alias switch1 "primary;alias qswitch switch3"
alias switch2 "primary;alias qswitch switch5"
alias switch3 "secondary;alias qswitch switch1"
alias switch4 "secondary;alias qswitch switch6"
alias switch5 "melee;alias qswitch switch2"
alias switch6 "melee;alias qswitch switch4"

bind 1 "wep1"
bind 2 "wep2"
bind 3 "wep3"
bind 4 "slot4; extrakey"
bind 5 "slot5; extrakey"
bind q "qswitch"

bind mwheeldown "downbind"
bind mwheelup "upbind"[/code]

also lets u scroll wheel switch[/quote]


This one works even better! Thank you guys
Please sign in through STEAM to post a comment.