GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Holster & Switch Command

A Config Script for Half-Life 2

11 434 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
bind mwheeldown "impulse 200;wait 100;invnext"
bind mwheelup "impulse 200;wait 100;invprev"
bind 1 "impulse 200;wait 100;slot1"
bind 2 "impulse 200;wait 100;slot2"
bind 3 "impulse 200;wait 100;slot3"
bind 4 "impulse 200;wait 100;slot4"
bind 5 "impulse 200;wait 100;slot5"
bind 6 "impulse 200;wait 100;slot6"
bind q "impulse 200;wait 100;lastinv"
bind g "impulse 200;wait 100;phys_swap"
bind x "impulse 200;wait 100;bug_swap"

Updates

Update 1 1y
  • Adjustment Changed wait time to 100 from 150
  • Addition Added versions of the bind for players who don't use fast-switch by default
  • Addition Added command versions for slot commands
  • Addition Added command versions for Gravity Gun swap command
  • Addition Added command versions for Bugbait swap command
  • Addition Added command versions for last weapon swap command
I went ahead and updated it to include all the slot commands, Gravity Gun & Bugbait swaps, and last weapon swaps for good measure. Let me know if I missed any.

Holster View Model, then Switch Weapons

As requested here, this simple modification to your default weapon switch bind will make your view model holster first before switching weapons.

Please note: not all HL2 weapons (notably the SMG, Grenade & RPG) and many, many custom models lack a proper holster sequence. As such, your mileage may vary based on the weapon models you use.

As this script makes use of the invprev & invnext commands, to properly work you will also need to set hud_fastswitch to 1, or enable it via the Options > Keyboard > Advanced menu.

Requirements

Dependencies and prerequisites required to use this Script

  1. developer 1 or sv_cheats 1
Sign up to access this!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Reverend V92 avatar
Reverend V92 username pic Joined 10y ago
HL2 Manager HL2:MMod Manager HL2:DM Manager Source Manager OC Manager Syn Manager GMod Manager GMod 9 Manager INS Manager DoD:S Manager CS:S Manager BM Manager L4D Manager L4D2 Manager Moderator
WAITING
30,172 points Ranked 164th
48 medals 3 legendary 10 rare
  • 2019 Top Contributor Medal icon
  • Returned 5000 times Medal icon
  • 10 years a member Medal icon
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
Script Guy

Submitter

Reverend V92 avatar
Reverend V92 username pic Joined 10y ago
HL2 Manager HL2:MMod Manager HL2:DM Manager Source Manager OC Manager Syn Manager GMod Manager GMod 9 Manager INS Manager DoD:S Manager CS:S Manager BM Manager L4D Manager L4D2 Manager Moderator
WAITING
30,172 points Ranked 164th
48 medals 3 legendary 10 rare
  • 2019 Top Contributor Medal icon
  • Returned 5000 times Medal icon
  • 10 years a member Medal icon
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
Reverend V92 avatar
Reverend V92

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Attributes

Language
CFG/Config

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 4
  • 2.2k
  • 13
  • 1y
  • 1y
  • 1y

More from Submitter

WiPs by Submitter

More Weapons Scripts