Counter-Strike 2

Counter-Strike 2

View Stats:
King Zøg Jan 8, 2018 @ 4:14am
Trying to create a bind to switch between rh and lh view models
So I have been attempting to create this bind that will allow me to switch between left hand and right hand veiw models for evergything other than my knife which I always want in left hand this is what is currently in my autoexec:

bind "5" "slot5;cl_righthand 1"

bind "4" "slot4;cl_righthand 1"

bind "3" "cl_righthand 0; slot3"

bind "2" "slot2;cl_righthand 1"

bind "1" "slot1;cl_righthand 1"



bind "q" "+switchhands"

alias "+switchhands" "cl_righthand 0;
bind "1" "slot1";
bind "2" "slot2";
bind "4" "slot4";
bind "5" "slot5";
bind "q" "-switchhands""

alias "-switchhands" "cl_righthand 1;
bind "1" "slot1;cl_righthand 1";
bind "2" "slot2;cl_righthand 1";
bind "4" "slot4;cl_righthand 1";
bind "5" "slot5;cl_righthand 1";
bind "q" "+switchhands""

It doesn't work but I know that my autoexec is working because I have my jump throw binds in there. Any ideas on how it is broken or how I could shorten the length of the code?
Thanks in advance :)

note that I dont have them set out like this in my autoexec file I have just done this to allow ease of reading jus
< >
Showing 1-15 of 15 comments
add me to dicuss :D
Vaulty Jan 8, 2018 @ 4:26am 
BindToggle h cl_righthand

now press H to switch hand
AlexNE1 Jan 8, 2018 @ 4:30am 
Bindtoggle ma dude
King Zøg Jan 8, 2018 @ 4:37am 
i dont see how bind toggle helps at all, granted i didn't know it existed so thank you but it still leads to me switching to my knife then switching back and its left handed or me switching to my knife and my knife is right handed which I dont want
King Zøg Jan 8, 2018 @ 4:39am 
Originally posted by ♥♥♥♥♥♥♥.gg BLUR:
add me to dicuss :D
added
AzKat 🐔 Jan 8, 2018 @ 4:41am 
Originally posted by There is no Spoon:
Originally posted by ♥♥♥♥♥♥♥.gg BLUR:
add me to dicuss :D
added

You were already given the command to switch between left and right hand lol.

And it's much simpler than beating around the bush using aliases.
Nelly Jan 8, 2018 @ 4:46am 
Originally posted by There is no Spoon:
Originally posted by ♥♥♥♥♥♥♥.gg BLUR:
add me to dicuss :D
added
Gz. You added a scammer.

And as the others already wrote, its easier with bind toogle.
King Zøg Jan 8, 2018 @ 5:29am 
Gz. You added a scammer.

And as the others already wrote, its easier with bind toogle.
So your basically saying suck it up and do what everyone else does ore are you actually saying that I can do this using what they said above
Nelly Jan 8, 2018 @ 5:37am 
Originally posted by There is no Spoon:
Gz. You added a scammer.

And as the others already wrote, its easier with bind toogle.
So your basically saying suck it up and do what everyone else does ore are you actually saying that I can do this using what they said above
That its easier.

And btw you forgot many ';' and ' " ' in your code. idk how strict csgo is in that regards, but you should still fix that. And "it doesnt work" is a pretty bad explanation ;) What is not working? or better: what is working?
King Zøg Jan 8, 2018 @ 5:48am 
So what happens is that when I spawn in it is fine, I can switch to my knife and then switch back and the knife is rh and the primary weapon is lh then when I press q all of my weapons are lh as they should be but then if I press q again then after that pressing q does nothing and my weapons are right handed until I switch to my knife when everything becomes left handed until I press q again.
Last edited by King Zøg; Jan 8, 2018 @ 5:49am
King Zøg Jan 8, 2018 @ 5:50am 
Also where have I missed ; and “. If it’s after every different section of code then yeah you don’t need to do ;
Last edited by King Zøg; Jan 8, 2018 @ 5:51am
Nelly Jan 8, 2018 @ 5:51am 
Originally posted by There is no Spoon:
So what happens is that when I spawn in it is fine, I can switch to my knife and then switch back and the knife is rh and the primary weapon is lh then when I press q all of my weapons are lh as they should be but then if I press q again then pressing q does nothing and my weapons are right handed until I switch to my knife when everything becomes left handed until I press q again.
Than just use the bindtoggle vault hunter wrote.

or change the name for the switchhands alias. maybe the '+' and '-' is not working.
King Zøg Jan 8, 2018 @ 5:52am 
Aight thx I’ll try that and tell you why happens
King Zøg Jan 8, 2018 @ 6:14am 
Aight I’ll just do the bind toggle thing this isn’t working
Nelly Jan 8, 2018 @ 6:16am 
Originally posted by There is no Spoon:
Aight I’ll just do the bind toggle thing this isn’t working
the toggle command is:
bind (key) "toggle cl_righthand 0 1"
Vaulthunter forgot the numbers
< >
Showing 1-15 of 15 comments
Per page: 1530 50

Date Posted: Jan 8, 2018 @ 4:14am
Posts: 15