Keybinding fix

Update: Version 2 available. Extract everything to the corresponding listed folder in the “BMS” section of your computer’s Steam directory.

This removes some unusable key-bindings & addresses some complaints.

  • Quick-switch Gravity Gun key-binding removed
  • Weapon Category 6 key-binding removed
  • Send/recall squad key-binding removed
  • Duck-Jump key-binding added
  • Direct-switch bindings added for every weapon.

Version 2 changes:

  • Added the “quick melee”, “quick grenade”, “duck toggle”, & “adrenaline” improvements from Sjakal’s key-binding fix. Also added the autoexec.cfg for these to work.
  • added Sourcegamer101’s options menu/English-language game-play interface fix

BMS Fix.zip (8.5 KB)

Right click on file => Send to => Zip
I don’t know the English words for it, so it might be a bit confusing.

Nah, that’s exactly it.

Anyway, this is an interesting fix, I didn’t know this was even present. They went through the trouble of removing unused HL2 code, figured they probably already did this as well. Regardless, good work.

Er…where’s kb_act located?

also, those weapon names are interesting

Thanks for the advice.

It should be in the “Scripts” folder. In case it isn’t, I’m gonna make a zip of this later tonight. As for the weapon names, I based some of them on the following:

  • The 0.357 is referred to as a “Colt Python Elite” because that’s the model of revolver it’s based on
  • “MP5” is short for “MaschinenPistole 5”, which is German for “Machine pistol model 5”. Heckler & Koch is the company that designed it
  • I based the Shotgun’s designation on the weapon’s full name as listed on the side
  • “GAM14B” comes from the model designation listed on the RPG’s HD pack model in Half-Life 1. SCHEATGM-4,000 refers to the ammunition used, & is short for “Shaped-Charge High-Explosive Anti-Tank Guided Missile-4,000”
  • “Mark 2 Defensive Fragmentation Hand Grenade” is the official designation for the “pineapple” grenades
  • “M23B” is written on the trip-mine’s HD model. The word “L.A.S.E.R.” originated as an acronym for “Light Amplification By Stimulated Emission of Radiation”

interseting

I also did something like this about a half a year ago. I’ve added a few things, but I have yet to make big changes.

-Took out weapon slot #6
-Removed HL2’s walk function because it doesn’t work
-Added a custom autosave icon
-Removed G to get out Gravity Gun
-Removed C to recall squad
-Changed the easy difficulty description from “Enemies are easy to defeat, and the computer helps you aim.” to “Enemies are easy to defeat; your weapons are more effective.” due to the game already having a toggleable auto-aim option.
-The viewroll slider actually does something. (Values 0 - 3.5)
-Removed “Fast Weapon Switch” from the advanced keyboard options because it doesn’t function, and also because there is already a fast switch option in the ‘Black Mesa’ tab.

We can merge our kb_act.lst’s together, plus all of my other miscellaneous changes.

https://www.mediafire.com/download/0a…fxlj14/BMS.zip

The Fast weapon switch works fine for me. It’s just that it still shows the inventory HUD as you’re switching. Additionally, “walk” works fine if you have “Always Run” enabled.

That’s so interesting !

I also did something similar a while ago: Sjakal CFG (keybinds and 360 controller)

Including Duck Jump, Duck Toggle, Quick Crowbar swing, Quick Grenade (tap quickly to preview grenade count, hold to throw), consolidating weapon categories into 4 for easier 360 controller D-pad selection, slowed down Walk button speed below AI audible volume (for sneaking).

Quick Weapon is basically the same as Half-Life’s Last Weapon keybind when tapped quickly, but if held down with sv_cheats 1 time will freeze, allowing you to comfortably scroll through weapons with mouse wheel and selecting a different weapon with MOUSE1.

Adrenaline is sprinting, but with sv_cheats 1 also slows down time when held, allowing you to line up precision shots. I kept the original keybinds so traditional sprinting etc. can be used if preferable to these new features, and I also increased difficulty slightly in skill_sjakal.cfg (optional) to compensate.

Sorry for the blatant advertising; just didn’t want to bump my old thread, and maybe there’s some features from there (userconfig.cfg alias keybinds, 360 controller, rearranging weapon slots, etc) you can use for inspiration.

Your “quick duck jump” uses the wrong binding code (it’s “+cjump”, not “+duckjump”). I added quick-switch keybindings for each weapon to avoid using something like your “Quick Weapon”. Finally, there are no “quick grenade” or “quick melee” commands in Bλack Mesa: Source.

I dunno where you found the +duckjump keybind; I made my own. In the bottom of scripts/kb_act.lst I have a keybind action +jumping which corresponds to a cfg/userconfig.cfg alias +jumping and -jumping. While held down, normal +jump is started and +duck is toggled on, until the player lets go of -jumping where -jump is fired once along with -duck so they are disabled again. See those files for more info.

It may take some time figuring out exactly which aliases are fired when a keybind action is fired (from the bottom of scripts/kb_act.lst), but it’s working just fine on my end. Also, go ahead and try the quick crowbar or quick grenade keybinds. I created their keybind aliases +melee and +grenade in userconfig.cfg as well. They are, as you stated, NOT standard Black Mesa keybinds; I made my own.

But remember, as stated in the readme, you need both the userconfig and the kb_act files in place and the new keybinds mapped (at the bottom of in-game keyboard options) otherwise nothing’s going to happen. And if you want to use skill_sjakal.cfg you have to add it to scripts/skill_manifest.cfg first (I should clarify that in v04 if I ever make one). OK I’m done, sorry for barging in on your thread.

I hope my userconfig.cfg will explain things and prove useful. If not feel free to post in the thread I linked to a few posts above.

Forgive me for sounding like an idiot by asking this, but I’m guessing “duck toggle” lets you stay crouched without having to manually hold down the crouch key? Also, I found the stock crouch-jump key-binding code by a simple lucky guess. 1 day, in the console, I typed “bind”“enter”"+cjump" in the developer console. After turning it off, I hit “enter” to see if it worked, & it did.

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.