3

Obviously you should use keys instead of console to switch weapons and items, but combining buy bindings with key binds can streamline the buying phase. Using flashbang as an example, neither +weapon_flashbang nor +flashbang works for switching (the command purchases the item, but the key isn't bound):

bind f "weapon_flashbang;buy flashbang;"
bind f "flashbang;buy flashbang;"
2
  • Do you want to actually use them or just switch to them to hold them in your hand?
    – dly
    Oct 26, 2017 at 20:26
  • @dly: Only switch.
    – user598527
    Oct 26, 2017 at 20:51

1 Answer 1

3

The settings to switch to a specific weapon slot are...

  • slot1 primary
  • slot2 pistols
  • slot3 knife
  • slot4 grenades

or for a specific item you can use the command use <item name>, such as use weapon_hegrenade or use weapon_flashbang

These can all be used in binds or buy scripts:

bind <key> "buy ak47; slot1"
bind <key> "buy deagle; slot2"

or to switch to a specific item:
bind <key> "buy hegrenade; use weapon_hegrenade"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .