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

Weapon Safety Mode

A Config Script for Half-Life 2

No ads for members. Membership is 100% free. Sign up!
7 480 bytes Raw Code
1
2
3
4
5
6
7
//Safety Mode - Made by Ah_Roon
//Last updated on March 5, 2020
alias safetyON "unbind MOUSE2;alias togglesafety safetyOFF;developer 1;echo *** Weapon Safety Mode is ON ***;wait 300;developer 0"
alias safetyOFF "bind MOUSE2 +attack2;alias togglesafety safetyON;developer 1;echo *** Weapon Safety Mode is OFF ***;wait 300;developer 0"
alias togglesafety "safetyON"
bind MOUSE3 togglesafety //You can change KEY you want to toggle
echo *** Safety Mode loaded successfully! ***

A script that helps you to prevent misclick of Right Click button



Are you tired of pressing the MOUSE2 attack by accident? Well, this script will protect your MOUSE2 attack with this script!

To turn on Weapon Safety Mode, press MOUSE3(Mouse Wheel) key(by default).
To turn off Weapon Safety Mode, press MOUSE3 key again.

You can always change the MOUSE3 key you want to change.

This game was supposed to be used on Half-Life 2 based games(e.g. Half-Life 2, Episode One, Episode Two, Lost Coast, etc.), but should work with other games which supports secondary attack key.

To install this script, go to C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2\cfg(For Half-Life 2 by example) and create cfg file named autoexec.cfg. Then copy entire script to autoexec.cfg. Done!

You can use this script freely, but be sure to credit me before posting on anything else. 
Sign up to access this!
  • Reverend V92 avatar
    Reverend V92 username pic Joined 10y ago
    HL2 Manager HL2: MMod Manager HL2:EP1 Manager HL2:EP2 Manager HL2:DM Manager
    Away
    19,960 points Ranked 277th
    33 medals 1 legendary 6 rare
    • 2019 Top Contributor Medal icon
    • 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
    access_time 30d
    I usually bind +attack2 to my mouse3 input. Got tired of tabbing back in and blowing my face off with the SMG.
    • Thanks x 1
    Source Engine Wizard avatar
    Mantra
    Source Engine Wizard
    URL to post:
  • kizuati avatar
    kizuati Joined 6mo ago
    Ripe Supporter HL2 Manager
    Resetting
    20 points Ranked 53945th
    15 medals 2 legendary 3 rare
    • 2019 Top Contributor Medal icon
    • Became a Ripe Supporter Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Achieved Game Manager clearance Medal icon
    • Submission featured Medal icon
    access_time 30d
    Nice idea with using developer 1 to display a message.
    Imma borrow this idea for the UI revision of my config project.
    • Thanks x 1
    Determination
    URL to post:

Embed

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

Credits

Main Developer
Ah_Roon
Created this Script

Submitter

Ah_Roon avatar
Ah_Roon Joined 1y ago
Offline
1,496 points Ranked 22021st
9 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 6 months a member Medal icon
  • Submitted 1 Tool Medal icon
  • Reached 1,000 Points Medal icon
Ah_Roon
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

You can use this script freely, but be sure to credit me before posting on anything else. 

Attributes

Language
CFG/Config

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 1
  • 577
  • 3
  • 30d

More from Submitter

More Weapons Scripts