Black Mesa

Black Mesa

54 ratings
[SOURCEMOD] Shotgun Reload Interrupt Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
11.247 KB
Apr 11, 2021 @ 9:30pm
1 Change Note ( view )

Subscribe to download
[SOURCEMOD] Shotgun Reload Interrupt Fix

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

Ever been annoyed by how interrupting the shotgun's reloading animation results in a half-second delay, where Gordon slowly moves the shotgun from its reload stance into its idle stance, before actually firing? Ever gotten ganked by an enemy or missed a shot because of it? So have I. That's what this plugin is for.

With this plugin installed, you'll fire the shotgun the instant you press the fire key while reloading, instead of having to wait for the in-between animation to finish first (unless you're reloading from empty, in which case the pump animation still has to play first). This makes the shotgun feel much snappier and more responsive in combat, which improves gunplay significantly.

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 one command and one console variable:

bm_shotgun_fix_enableprint 0/1 - Defaults to 0. This enables printing more detailed information to the console, reporting on what the plugin is doing. bm_shotgun_fix_rescan - Command. This makes the plugin search again to find the index of the player's shotgun. If the reload interruption isn't working, try running this command.

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/2454713916. Inside, you should find a folder named BM Shotgun Reload 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] Shotgun Reload Interrupt Fix (Attempt 2)" (1.0) by KyuuGryphon

If you've followed these instructions correctly, the plugin should be working as intended! Enjoy having a more responsive shotgun in Black Mesa's combat.

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.
24 Comments
Dusk Holloway Apr 17 @ 4:04am 
Dunno if this fixes it but it sure as hell annoyed me when I found it.
Dusk Holloway Apr 17 @ 4:03am 
Another thing that if you press fire, swap away then swap back it'll still fire
VHsigil Jan 6 @ 2:19pm 
SourceMod and MetaMod cause my game to give me a level transition error at load zones which kicks me out to the main menu. I assume this is because of the Necro patch judging by past comments?
Xxx_Mlg_TROLLES_xx {BBRG} Dec 14, 2024 @ 10:16am 
hey man, this mod just keeps crashing my game. i followed all the instructions perfectly, i reinstalled sourcemod and metamod, i even deleted any other sourcemod plugins and workshop mods but it keeps crashing everytime i hit the first loading screen. im not too knowledgeable about sourcemod, but it seems to be just the .smx file causing trouble for me; my game runs fine without it, even with the .sp file. could you please help?
White and Birdy™  [author] Apr 18, 2024 @ 12:40am 
Yeah, SourceMod is currently incompatible with the Necro patch. There's nothing I can do about that, unfortunately - I'll be keeping an eye on SourceMod for updates so I can get this plugin (and others) working again. Also gives me a pretty good reason to rework the install instructions, hideously outdated as they are.
M0URN1NG5TAR Apr 18, 2024 @ 12:34am 
Yeah following the instructions to a T only gets me to "type 'sm refresh plugins'" and then the game crashes as soon as I hit enter, and then I can't get the game to launch, period.
M0URN1NG5TAR Apr 18, 2024 @ 12:28am 
Idk what it is but I think the Necro patch may have broken this somehow. I've used this before but now I can't even get the game to launch with this mod's files no matter what I do, but it launches totally fine without them.
Johnny Metrocop Dec 30, 2023 @ 8:10pm 
i found a fix for this mod, but it was taken from another mod tho

This is an issue with MetaMod: Source and SourceMod which is required by items this item requires. To fix this, delete all the files in your bms/addons/sourcemod/plugins folder except for bm_ammopickupfix.smx and shotgunreloadfix.smx.
Additionally, you may now use the stable versions of both MetaMod: Source and SourceMod. The installation instructions in White and Birdy's plugins are a little out of date.
pyromine_niac Nov 15, 2023 @ 1:06am 
this mod seems to only work if you run "bm_shotgun_fix_rescan" in the console while playing in a map
arsenicClawcat Jul 25, 2023 @ 4:28pm 
the mod doesnt work for me
i installed everything correctly sourcemod and metamod commands all work as they should and i even did the shotgun rescan a few times but no matter what i do the interrupt fix never works as it should and the in between animation still plays