Garry's Mod

Garry's Mod

Half-Life SWEPs: High-Definition Edition
Aether 11 May, 2021 @ 8:30pm
[BUG] Missing Reload Sounds (And How To Fix)
I've noticed that this mod lacks the appropriate reload sounds for the 9mm Pistol and 9mm AR. I know it's an issue with this mod since it works with the SD pack.

I don't think anyone has reported about the issue yet, but I decided to make a rather simple fix for the mod myself. Below will be the tutorial on how to fix them.

1. Decompile the .mdl file
You'll want to head on over to the addon folder and drag the .gma file for this mod into the gmad tool in steamapps/common/GarrysMod/bin directory. The mod should appear as a folder now.

If you were having trouble getting this mod to work in the first place (some have) then this usually fixes the issue.

Next, you'll want to make sure you have Crowbar installed. It's a super helpful tool that allows you to de/compile .mdl files for modding purposes. You can download it from their Steam group

You'll want to search through the mod folder until you find the 9mmar.mdl and 9mmhandgun.mdl. You'll want to decompile these files (make sure the output file is somewhere easy to access!)

2. Fixing The Sounds
Once you've done that, look for the .qc file for each weapon. This file essentially tells the weapon what to do during an event (like shoot or reload.)

Open these files in Notepad ++ and scroll down a bit until you find $sequence "reload" {

For the 9mm AR, replace the event lines for reloading with:
{ event 5004 5 "Weapon_MP5.Special1" }
{ event 5004 24 "Weapon_MP5.Special2" }

For the 9mm Pistol:
{ event 5004 4 "Weapon_Glock.Special2" }
{ event 5004 23 "Weapon_Glock.Special1" }
(You'll want to make sure to replace both the "reload" and "reload_noshot" events for the handgun.)

Once you've done that, grab all the files (.qc, .smd, _anims) and place them into a file pertaining to that weapon name (c_9mmar for the AR, c_9mmhandgun for Pistol), compile them, and move & replace the old 9mmar & 9mmhandgun files with the ones given from the compiling process.

And there you go! Your 9mm handgun and AR should play their reload sounds now!

Recent Edit: Fixed up an error in step 2. Big thanks to Ben for letting me know about the error!
Last edited by Aether; 12 May, 2021 @ 1:22pm
< >
Showing 1-8 of 8 comments
BenL4D2 12 May, 2021 @ 8:45am 
I tried to follow your guide, but I'm having issues re-compiling the models - can you help?

I'm not familiar with Crowbar, I've tried to compile using default settings (game set to 'Garry's Mod').


Compiling with Crowbar 0.71: "C:\Users\User\Downloads\Crowbar\c_9mmar" (folder) ...

Compiling "c_9mmar.qc" ...
Output from compiler "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\studiomdl.exe":
qdir: "c:\users\user\downloads\crowbar\c_9mmar\"
gamedir: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\"
g_path: "c_9mmar.qc"
Building binary model files...
Working on "c_9mmar.qc"
ERROR: c:\users\User\downloads\crowbar\c_9mmar\c_9mmar.qc(7): - could not load file 'v_9mmar_m4_view_reference.smd'
ERROR: Aborted Processing on 'hl1/c_9mmAR.mdl'
WARNING: Leaking 1 elements
CROWBAR: Deleted empty temporary compile folder "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\models\hl1".
... Compiling "c_9mmar.qc" finished. Check above for any errors.

... Compiling with Crowbar 0.71: "C:\Users\User\Downloads\Crowbar\c_9mmar" (folder) finished.
Last edited by BenL4D2; 12 May, 2021 @ 8:46am
Aether 12 May, 2021 @ 1:19pm 
Originally posted by Ben:
I tried to follow your guide, but I'm having issues re-compiling the models - can you help?

I'm not familiar with Crowbar, I've tried to compile using default settings (game set to 'Garry's Mod').


Compiling with Crowbar 0.71: "C:\Users\User\Downloads\Crowbar\c_9mmar" (folder) ...

Compiling "c_9mmar.qc" ...
Output from compiler "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\studiomdl.exe":
qdir: "c:\users\user\downloads\crowbar\c_9mmar\"
gamedir: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\"
g_path: "c_9mmar.qc"
Building binary model files...
Working on "c_9mmar.qc"
ERROR: c:\users\User\downloads\crowbar\c_9mmar\c_9mmar.qc(7): - could not load file 'v_9mmar_m4_view_reference.smd'
ERROR: Aborted Processing on 'hl1/c_9mmAR.mdl'
WARNING: Leaking 1 elements
CROWBAR: Deleted empty temporary compile folder "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\models\hl1".
... Compiling "c_9mmar.qc" finished. Check above for any errors.

... Compiling with Crowbar 0.71: "C:\Users\User\Downloads\Crowbar\c_9mmar" (folder) finished.

Oops, I accidentally wrote something wrong. You're supposed to place everything relating that weapon into a folder with the same name (c_9mmar / c_9mmhandgun) and then select that folder and compile it. I should have looked over it a few times before posing!
BenL4D2 26 Jul, 2021 @ 2:21pm 
Thanks for the update Aether, unfortunately I'm still unable to compile - same error.

c_9mmar compile fails looking for this file - v_9mmar_m4_view_reference.smd

c_9mmarhandgun fails looking for this file - v_9mmhandgun_v_beretta_reference.smd

I had a look but I can't find these files (I've tried searching my computer and on the internet!). Can you help me find the files, or update the recompiled weapon models instead?

Thanks!
Last edited by BenL4D2; 30 Apr, 2023 @ 9:13am
Aether 26 Jul, 2021 @ 2:44pm 
Ohhh, the reference model is missing from the file. You might have to decompile the file again, but make sure Reference Mesh SMD file is checkmarked in the Decompile tab. That should fix your issue.
Last edited by Aether; 26 Jul, 2021 @ 2:45pm
BenL4D2 27 Jul, 2021 @ 9:38am 
Hi Aether,

I checked and that option is selected. I've re-run the decompile with the option selected and deselected just in case, but the missing files are not created.

Where am I going wrong?
Last edited by BenL4D2; 30 Apr, 2023 @ 9:13am
Aether 27 Jul, 2021 @ 3:56pm 
That's really odd.. I decompiled the .mdl file again to see if something broke, but everything compiled just fine on my end.

Try and decompile the file again, but make sure to check the log provided to see if anything is missing. The logs appear below the decompile button.

It should look something like this (9mm Handgun, you'll need to scroll down a little bit in logs.):
Writing data ... QC file: c_9mmhandgun.qc Reference mesh files: v_9mmhandgun_v_beretta_reference.smd v_9mmhandgun_v_beretta_hands_reference.smd v_9mmhandgun_clip_reference.smd LOD mesh files: ...

If the reference files don't pop up, you can try and reinstall the mod entirely (remove .gma file too) or search around and see if the reference files got moved somewhere where they shouldn't have.
Last edited by Aether; 27 Jul, 2021 @ 3:56pm
BenL4D2 30 Apr, 2023 @ 9:10am 
Originally posted by Aether:
That's really odd.. I decompiled the .mdl file again to see if something broke, but everything compiled just fine on my end.

Try and decompile the file again, but make sure to check the log provided to see if anything is missing. The logs appear below the decompile button.

It should look something like this (9mm Handgun, you'll need to scroll down a little bit in logs.):
Writing data ... QC file: c_9mmhandgun.qc Reference mesh files: v_9mmhandgun_v_beretta_reference.smd v_9mmhandgun_v_beretta_hands_reference.smd v_9mmhandgun_clip_reference.smd LOD mesh files: ...

If the reference files don't pop up, you can try and reinstall the mod entirely (remove .gma file too) or search around and see if the reference files got moved somewhere where they shouldn't have.
Update: I have fixed it now

https://www.youtube.com/watch?v=6PJatYbzLoc
Last edited by BenL4D2; 30 Apr, 2023 @ 10:49am
engine 4 Aug, 2024 @ 1:26am 
dont even bother trying, the original already has a toggleable option.
< >
Showing 1-8 of 8 comments
Per page: 1530 50