Black Mesa

Black Mesa

69 ratings
>Controller Support [XONE/DS4 Icons, DS4 Gyro setup]
By StavaasEVG
So, you tried to play BM with the controller...
I know what could help you.
And no, you don't need the Steam BigPicture controller thing. It makes movement really bad.
2
4
   
Award
Favorite
Favorited
Unfavorite
About/Downloads
The new UI doesn't have controller support yet, it has no options to enable controller movement and bind controller buttons.

To play with a controller without any problems, download this and put the "bms" folder into the game's root folder.
This should allow you to play with a controller, see the buttons icons in the in-game hints (not sure if every prompt still shows, but try that)

Main Files (Xbox One Icons)[drive.google.com]

Next two are optional, for those who wants DS4 icons instead of Xbox One's, and for those wanting HUD to be like in console HL2. First one needs the main files to be installed, the HUD one doesn't need anything. To install, just put the "bms" folder into the game's root folder (after putting the main files).


I put "exec 360controller.cfg" into the autoexec.cfg, because for some reason it didn't work when i was typing that directly into the console.

!! Even with this mod, you still can't use menu without mouse. !!
!! This mod allows you to use a controller in-game, not in the menu. !!
!! This mod unbinds all keyboard/mouse binds so the game could show the proper controller hints. !!
!! This mod is executing every time the game launches, to stop that - just delete "exec 360controller.cfg" from the "bms/cfg/autoexec.cfg". !!

!!Also, this mod has the icons for the keyboard/mouse that show up in hints, and they're better than just text. !!
Editing layout, sensitivity etc.
To change bindings - get the command you want to bind to a button, open bms/cfg/360controller.cfg and edit it


bind "L_TRIGGER" "+attack2" | LT - Secondary Attack
bind "R_TRIGGER" "+attack" | RT - Primary Attack

bind "A_BUTTON" "+jump" | A - Jump
bind "B_BUTTON" "+reload" | B - Reload
bind "X_BUTTON" "+use" | X - Use
bind "Y_BUTTON" "impulse 100" | Y - Flashlight

bind "L_SHOULDER" "+speed" | LB - Sprint
bind "R_SHOULDER" "+duck" | RB - Duck

bind "BACK" "save quick" | Back - Quick Save
bind "START" "cancelselect" | Start - Opens pause menu !!!Don't change!!!

bind "STICK1" "+duck" | LS - Duck
bind "STICK2" "toggle_zoom" | RS - Toggle Zoom

bind "POV_UP" "invlast" | Dpad Up - Last Used Weapon
bind "POV_RIGHT" "invnext" | Dpad Right - Next Weapon
bind "POV_DOWN" "use weapon_crowbar" | Dpad Down - Use Crowbar
bind "POV_LEFT" "invprev" | Dpad Left - Previous Weapon

These two are for proper buttons in hints, don't edit.
bind "S1_UP" "xmove" | Left Stick - Move
bind "S2_UP" "xlook" | Right Stick - Look

This sets left stick's vertical movement to inverted (1) and normal (-1) modes. Edit it if you have problems with it.
joy_forwardsensitivity "-1.0"

These two change the vertical and horizontal sensitivity of the right stick(camera movement)
Second one should always be negative i think, like the "joyforwardsensitivity".
joy_pitchsensitivity "+1.3"
joy_yawsensitivity "-1.3"


This sets the scale of damage taken (set to 1.0 if you want to take full damage).
sk_dmg_take_scale2 "0.8"
Useful Bindable Commands
Action
Command
Jump
+jump
Duck (Hold)
+duck
Duck (Toggle)
toggle_duck
Sprint
+speed
Use/Interact
+use
Primary Attack
+attack
Secondary Attack
+attack2
Reload
+reload
Flashlight
impulse 100
Quick Grenade Throw
+quickfrag
Zoom (Hold)
+zoom
Zoom (Toggle)
toggle_zoom
Next Weapon
invnext
Previous Weapon
invprev
Last Used Weapon
lastinv
Switch to Crowbar
use weapon_crowbar
Switch to Glock
use weapon_glock
Switch to .357
use weapon_357
Switch to MP5
use weapon_mp5
Switch to Shotgun
use weapon_shotgun
Switch to Crossbow
use weapon_crossbow
Switch to RPG
use weapon_rpg
Switch to Tau-cannon
use weapon_tau
Switch to Gluon Gun
use weapon_gluon
Switch to Hivehand
use weapon_hivehand
Switch to Frag Grenade
use weapon_frag
Switch to Tripmine
use weapon_tripmine
Switch to Satchel
use weapon_satchel
Switch to Snarks
use weapon_snark
Quick Save
save quick
Quick Load
load quick
Show Multiplayer Scores
+showscores
Screenshots
Xbox One Icons

Dualshock 4 Icons
Using Dualshock 4 full potential
If you have a Dualshock 4 controller, you know that it has gyroscope, that is not being used in almost every game. But with DS4Windows we can fix that. We have the ability to bind the controller gyroscope to a mouse movement! And it really works flawlessly and playing with it feels fun and interesting!

So what you should have to make this work?
1 - DS4 controller
2 - Latest version of DS4Windows[github.com]
3 - DS4Windows profile set up for Black Mesa[drive.google.com]
4 - And of course this mod, without it you couldn't bind the controller buttons and movement without problems.

Now when you set up DS4Windows, you'll have to unpack the "Black Mesa.xml" profile into the "DS4Windows/Profiles", turn on the controller and choose the downloaded profile in the main "Controllers" tab. That's all, now you'll just have to launch the game and play it!
Everything was done by me, Stavaas.
Hope you'll enjoy playing this masterpiece with my mod and a controller.
Also...
I made the mod for the HL2, Episodes, HL:Source, Lost Coast and Portal which brings the console UI and some gameplay changes to the PC versions of the games.
This is the best thing i've done yet, hope you'd like to use it too)
48 Comments
Plake Dec 28, 2022 @ 1:05am 
It works great on PC, but no dice on the Deck. Any ideas?
Cynel1 Dec 11, 2022 @ 4:57am 
You are a lifesaver it's not the x360 gui mod but it's close enough
ThisAr1sGuy Jun 21, 2022 @ 8:33am 
cool now how can i remove it
Varit Rockatansky Jan 31, 2022 @ 8:43pm 
Thanks for this mate. Worked like a charm out of the box!
J4k The Reaper Feb 15, 2021 @ 4:03am 
@tobasoft
Did you ever get this working? I'm currently trying to but I am having same issue you had. only right analog works. Plus the xb1 input hints, I don't think actually show up.
StavaasEVG  [author] Nov 29, 2020 @ 11:55am 
Try writing "exec 360controller.cfg" or "exec 360controller" in the console. This could happen if the controller was turned on after the game was launched.

And you can try turning off steam controller support, if it is enabled.
tobasoft Nov 28, 2020 @ 2:12pm 
I can't seem to get this wo work, can anyone help me out? I'm using an xbone controller. I placed the folder in the root as instructed and it overwrote some files and now I can only look around and nothing else.
Kuneh0 Nov 3, 2020 @ 3:35am 
Just imagine they ported Black Mesa in PS4 and PS5!
StavaasEVG  [author] Aug 5, 2020 @ 11:28pm 
That does not work in vanilla pc source games including bm, half-life 2 and etc. Just because this was meant only for console release of the orange box.
However, you can find some info about it by searching the internet, there's source sdk 2013 code on the valve's github, it should be there somewhere.
Mr.PirateFox Aug 4, 2020 @ 3:45pm 
I see in the .cfg file that there are aim assist options, which says "sk_autoaim_mode 2" and "hud_autoaim_method 1". What does each option mean and what happens if i edit the numbers in them??