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

Members see zero ads. Membership is 100% free
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

menu
Update 1 30d
  • 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

Comments

Sign up to access this!
  • kizuati avatar
    kizuati username pic Joined 1mo ago
    Sleeping
    204 points Ranked 56016th
    access_time 29d edit 29d
    Hey!
    I am currently developing an extended cut of Optibindified - I wondered may I include your binds in it?
    I will credit you and I don't gain profit from it.
    By the way you seem to have deleted the non hudswitchfast version.
    Destiny Fulfilled
    URL to post:
  • ShotShellX avatar
    ShotShellX username pic Joined 7y ago
    Somewhere Else
    6,283 points Ranked 1028th
    25 medals 3 legendary 3 rare
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    • Returned 1000 times Medal icon
    • GameBanana’s Christmas Giveaway 2016 Day Nine Winner! Medal icon
    • 6 years a member Medal icon
    access_time 30d edit 30d
    Holy shit! Good job dude.

    Edit: gonna use this for mmod anyway so most weaps have holster anims.
    • Interesting x 1
     avatar
    URL to post:
  • [PRince_4] Sharma avatar
    [PRince_4] Sharma Joined 3y ago
    JOB---
    IND Industry! Flag Affiliation: IND Industry!
    8,363 points Ranked 733rd
    32 medals 1 legendary 5 rare
    • 30 submissions featured Medal icon
    • 10 submissions featured Medal icon
    • Received thanks 50 times Medal icon
    • Thanked 50 submitters Medal icon
    • 8-14 Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • Returned 1000 times Medal icon
    [PRince_4] Sharma IND Industry! Flag
    Affiliation
    IND Industry!
    access_time 30d
    URL to post:

Embed

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

Credits

Key Authors
Reverend V92 avatar
Reverend V92 username pic Joined 9y ago
HL2 Manager
Offline
11,054 points Ranked 524th
31 medals 6 rare
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • 10 submissions featured Medal icon
  • Achieved Game Manager clearance Medal icon
Script Guy

Submitter

Reverend V92 avatar
Reverend V92 username pic Joined 9y ago
HL2 Manager
Away
11,054 points Ranked 524th
31 medals 6 rare
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • 10 submissions featured Medal icon
  • Achieved Game Manager clearance 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

menu

Attributes

Language
CFG/Config

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 2
  • remove_red_eye 550
  • mode_comment 20
  • access_time 30d
  • access_time 30d
  • refresh 30d

More from Submitter

menu

WiPs by Submitter

menu

More Weapons Scripts

bcp.crwdcntrl.net tracking pixel