Black Mesa

Black Mesa

Not enough ratings
[SOURCEMOD] Elite Grunt HP Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
10.638 KB
9 Feb, 2022 @ 12:14am
1 Change Note ( view )

Subscribe to download
[SOURCEMOD] Elite Grunt HP Fix

Description
NOTE: THIS ADDON REQUIRES SOURCEMOD AND MANUAL INSTALLATION TO RUN. READ THIS DESCRIPTION IN FULL FOR INSTRUCTIONS.

If you've ever played a map that uses the scrapped Elite Grunt NPC, or tried using them yourself, then you may have noticed that they don't stand up to much abuse. Their base health is only 150 - and if you've gone looking for console commands to change that, then you've come up empty-handed. Simply put, there aren't any.

This plugin adds console variables that allow for changing the Elite Grunt's health, by way of tracking any Elite Grunts that have spawned in-game (including via console commands) and setting their health based on the difficulty level. It even keeps track of which grunts have already had their HP altered, and skips over them if necessary.

Note that this plugin is ONLY DESIGNED FOR USE IN SINGLE-PLAYER MODE. If you can get it to load on a multiplayer server, there is no guarantee it'll work properly. I do not recommend attempting this.

This plugin adds four console variables:

bm_egrunthp_easy [integer] - Defaults to 150. The amount of health that Elite Grunts will spawn with when skill is set to 1 (Easy/Normal). bm_egrunthp_normal [integer] - Defaults to 200. The amount of health that Elite Grunts will spawn with when skill is set to 2 (Normal/Black Mesa difficulty). bm_egrunthp_hard [integer] - Defaults to 300. The amount of health that Elite Grunts will spawn with when skill is set to 3 (Hard). bm_egrunthp_enableprint 0/1 - Defaults to 0. This enables printing more detailed information to the console, reporting on what the plugin is doing.

SOURCEMOD INSTALLATION

  1. Download the latest developer branch builds of SourceMod[www.sourcemod.net] and MetaMod:Source[www.sourcemm.net]. If you're not sure where exactly to find them, you can find a pre-packaged download of working builds HERE.[drive.google.com]
  2. Install both of them to your Black Mesa installation - this should be somewhere like Program Files (x86)/Steam/steamapps/common/Black Mesa/bms, though its exact location may differ based on your setup. If you downloaded them separately, drop the addons folder from MM:Source in the bms directory, followed by the addons and cfg folders from SourceMod - if you downloaded the package, extract the bms folder from it and merge it with the directory in the Black Mesa folder.
  3. In your Steam library, find Black Mesa, right-click it, and select Properties. At the bottom of the window is an option labelled Launch options. Add this to it:
    -insecure
    Do note that starting Black Mesa with this launch option enabled WILL PREVENT YOU FROM CONNECTING TO VAC-SECURED MULTIPLAYER SERVERS.
    If you should want to play multiplayer, remove the -insecure entry from the launch options.
  4. Launch the game and bring up the developer console. In it, type the following commands and press enter.
    meta sm
    If MetaMod:Source and SourceMod are installed correctly, you'll get output something like this in response:
    ] meta Metamod:Source Menu usage: meta <command> [arguments] alias - List or set an alias clear - Unload all plugins forcefully cmds - Show plugin commands cvars - Show plugin cvars credits - About Metamod:Source force_unload - Forcefully unload a plugin game - Information about GameDLL info - Information about a plugin list - List plugins load - Load a plugin pause - Pause a running plugin refresh - Reparse plugin files retry - Attempt to reload a plugin unload - Unload a loaded plugin unpause - Unpause a paused plugin version - Version information ] sm SourceMod Menu: Usage: sm <command> [arguments] cmds - List console commands config - Set core configuration options credits - Display credits listing cvars - View convars created by a plugin exts - Manage extensions plugins - Manage Plugins prof - Profiling version - Display version information
    If you get a message stating Unknown command, then something isn't installed properly. Double-check and make sure you've got both a metamod and sourcemod directory in your /bms/addons folder, as well as a pair of files called metamod.vdf and metamod_x64.vdf. If all four of those are present, check and make sure that you added -insecure to the launch parameters via Steam before starting the game.
  5. Subscribe to this addon and let it download (this shouldn't take very long, since it's a relatively small file). When it's done, you can find it in your workshop downloads folder for Black Mesa - this'll be somewhere like Program Files (x86)/Steam/steamapps/workshop/content/362890/2747877717. Inside, you should find a folder named Elite Grunt HP Fix.
  6. Copy the contents of this folder into your Black Mesa directory, merging the bms folders. This will install the compiled plugin, as well as place a copy of its source code in addons/sourcemod/scripting.
  7. Either restart Black Mesa, or run this command in the console:
    sm plugins refresh
    Once that's done, run this command as well:
    sm plugins list
    If installed correctly, you should see a line like this somewhere in the output:
    12 "[Black Mesa] Elite Grunt Health Fix" (1.0) by KyuuGryphon

If you've followed these instructions correctly, the plugin should be working as intended! Elite Grunts should now be more challenging to kill based on your difficulty level.

If you encounter any bugs, please feel free to let me know, and I'll do what I can to fix them - though make sure you've followed these instructions correctly before reporting bugs about the plugin or SourceMod just "not working". Reading comprehension is on you, not me.
2 Comments
uno14 26 Mar, 2022 @ 9:03am 
i see you removed that part of the description, are you working on a mod that fixes the weapon bobbing?
uno14 22 Mar, 2022 @ 11:27pm 
"If you've followed these instructions correctly, the plugin should be working as intended! Enjoy having less floaty-feeling weapon sway in BM without the silly double-speed bug if you should throw a satchel charge." what? okay so i've installed this mod purely for satchel charge weapon bobbing fix and that part didn't work, was this part of description accidental?