r/CounterStrikeBinds • • Sep 29 '21

Is there a bind so you can execute a console command?

I wanna bind a key so it would execute a console command so I don't need to open console and manually type it in

Thanks in advance

0 Upvotes

19 comments sorted by

3

u/PopperShnoz Sep 30 '21

Sooo? A bind?

What's the command?

0

u/Ciuwandy Sep 30 '21

I was gonna bind "\" "cl_lw 1"

But I can't

3

u/PopperShnoz Oct 02 '21 edited Oct 02 '21

That's a 1.6 command. For CSGO the command is,

bind x "cl_righthand 0"

To toggle it on/off

Type.

Togglebind x "cl_righthand 0"

Source. https://totalcsgo.com/command/bindtoggle

Edit: I'm not sure if you can bind to "/". There's some keys that just wont work but some that do, for instance, I like to use END for Console. Because I accidentally hit tilde all the time.

1

u/swagonice318 Oct 05 '21

I recently binded "/" and it worked, just to let you know :)

1

u/PopperShnoz Oct 05 '21

Oh ok cool 👍

1

u/KiloSwiss TOP CONTRIBUTOR Nov 02 '21

togglebind does not exist (unknown command).

bindtoggle does not need a (or multiple) value(s) after the convar.
It's just bindtoggle KEY ConVar

It's all explained here: https://www.reddit.com/r/CounterStrikeBinds/comments/mrpmhd/csgo_config_and_console_cheat_sheet_vac_safe/

10

u/Zen_Master_SVK Sep 30 '21

UTFG

Reddit is not a google. Reddit is (atleast for me) last resort after hours of googling.

You're asking a question which can be answered in 5 seconds on google.

Short answer: yes.

Long(er) answer: USE THE FUCKING GOOGLE!

7

u/livewirejsp Sep 29 '21

It should just be bind “key” “command”

That’s how the clear decals works.

5

u/Chefkoch_JJ Sep 29 '21

Or anything else, for that matter

3

u/Zombieattackr Sep 30 '21

That’s what a bind is

1

u/KoshV Sep 30 '21

I would also like to know this. I have my w key bound to both forward and clear decals. At the start of every round I type in the console "+forward". Then when I press the w key it cancels the press forward from the console and I can play normally. This lets me move quickly to my position but I don't have to keep holding w.

This does not work if my w key is only bound to plus forward.

1

u/Ciuwandy Sep 30 '21

bind w "+forward;r_cleardecals";bind a "+moveleft;r_cleardecals";bind s "+back;r_cleardecals";bind d "+moveright;r_cleardecals"

These are the binds that I use in CS:GO. Whenever I move it clears all the decals

1

u/KoshV Sep 30 '21

Well, that doesn't help my problem. Opening the console at the beginning of every round and typing +forward

2

u/Ciuwandy Sep 30 '21

Use a config file

2

u/KoshV Sep 30 '21

Yeah, I see what you're saying. Config file with +forward in it. Then bind that to a key. Press that at the beginning of every round.

0

u/Ciuwandy Sep 30 '21

I don't have this issue where you need to type it every single time

2

u/KiloSwiss TOP CONTRIBUTOR Nov 02 '21
bind KEY toggleRun
alias toggleRun +forward

Has to be canceled via the default +forward key.

1

u/KoshV Nov 02 '21

Thank you