Plugins on a Black Mesa server run through Metamod:Source and SourceMod. You need both: Metamod:Source hooks into the Source Engine, and SourceMod builds on top of it to provide the plugin environment and the admin features. Metamod:Source has supported Black Mesa officially since version 1.10.5, and SourceMod builds on top of it.
Install Metamod:Source
-
Download Metamod:Source
Download the current stable version of Metamod:Source as a Linux package (.tar.gz). -
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Upload the files
Extract the archive and upload theaddonsfolder it contains to the following directory:/bms/Afterwards the folder
/bms/addons/metamod/exists. -
Start the server
Start your server and check in the server console withmeta versionwhether Metamod:Source was loaded.
Install SourceMod
-
Download SourceMod
Download the current stable version of SourceMod (currently the 1.12 branch) as a Linux package (.tar.gz). -
Stop the server
Stop your server via the dashboard. -
Upload the files
Extract the archive and upload theaddonsandcfgfolders it contains via SFTP to the following directory:/bms/Existing folders are merged, not replaced. Afterwards the folder
/bms/addons/sourcemod/exists. -
Start the server
Start your server and check in the server console withsm versionwhether SourceMod was loaded.
Install plugins
-
Download the plugin
Download the plugin you want. Ready-to-use plugins come as a.smxfile. -
Stop the server
Stop your server via the dashboard. -
Upload the plugin
Upload the.smxfile via SFTP to the following directory:/bms/addons/sourcemod/plugins/ -
Start the server
Start your server and check withsm plugins listwhether the plugin was loaded.
Folder structure at a glance
/bms/cfg/ <- server.cfg and other configurations
/bms/cfg/mapcycle.txt <- map rotation
/bms/maps/ <- maps in BSP format
/bms/addonlist.txt <- list of active VPK packages
/bms/addons/ <- VPK packages and extensions
/bms/addons/workshop/ <- VPK packages from the Steam Workshop
/bms/addons/metamod/
/bms/addons/sourcemod/
/bms/addons/sourcemod/plugins/ <- .smx plugin files
/bms/addons/sourcemod/configs/ <- configurations, e.g. admin lists
Verify the installation
Enter the following commands in the server console:
| Command | Description |
|---|---|
meta version |
Show the Metamod:Source version |
meta list |
Show the extensions loaded by Metamod |
sm version |
Show the SourceMod version |
sm plugins list |
Show the loaded SourceMod plugins |
Custom maps and custom content
-
Stop the server
Stop your server via the dashboard. -
Upload maps in BSP format
Upload maps that come as a.bspfile via SFTP to the following directory:/bms/maps/ -
Upload content in VPK format
Maps and custom content that come as a.vpkpackage belong in the addons folder instead. Packages from the Steam Workshop go into theworkshopsubfolder:/bms/addons/ /bms/addons/workshop/ -
Activate the VPK packages
A VPK package is only loaded once it is listed in the addon list. Open the following file – if it does not exist yet, create it:/bms/addonlist.txtAdd the packages like this (
1= active,0= inactive):"AddonList" { "workshop\432070352.vpk" "1" "workshop\432074065.vpk" "1" } -
Add the map to the rotation
Add the map to the following file – one map per line, each without the file extension:/bms/cfg/mapcycle.txt -
Start the server
Start your server. Withchangelevel <map name>in the server console you switch to a map directly.
Co-op mode with SourceCoop
The multiplayer mode of Black Mesa is a pure deathmatch mode. If you want to play the campaign together, the community plugin SourceCoop exists for exactly that.
-
Meet the requirements
Metamod:Source and SourceMod have to be installed and working as described above. -
Download SourceCoop
Download the current version of the plugin from the GitHub project. -
Stop the server
Stop your server via the dashboard. -
Upload the files
Upload the contents of the archive (the foldersaddons,materialsandmodels) via SFTP to/bms/, following the folder structure it contains. The plugin files end up in/bms/addons/sourcemod/plugins/, the map configurations (.edtfiles) in/bms/addons/sourcemod/data/srccoop/. -
Set the starting map
Add the first map of the campaign you want to/bms/cfg/mapcycle.txt, for examplebm_c0a0a. -
Start the server
Start your server and check withsm plugins listwhether SourceCoop was loaded.
