I am brand spanking new to the Source modding scene. Let that sink in for a second. You'll have to forgive my naiveté haha. For my first trick, I would like to change Half-Life 2's pistol reload sound. That's it. I have the sound, I have the source code (I am actually looking at it right now, phew), and I have the sourcemod (which I'm assuming I needed to create). HOW the HECK do I actually change it?
sp/src/game/server/weapon_pistol.cpp was my first stop. After some digging, I stumbled upon some repeated references to SOUNDENT.h. This seems to be how the game puts sounds into the environment.
I've even found functions inside pistol.cpp that seem to hint at where the sound comes from or something: WeaponSound( RELOAD ) is the one I'm particularly interested in. But, I can't find out how to change which sound files it points at. I can't even find what object RELOAD is.
I have my mod's sound folder set up as sound/weapons/pistol/pistol_reload1.wav, just like the original. Is this all I had to do? The problem then becomes how I test it. My mod has no maps inside of it. I just want Half-Life 2 as is but with my new sound.
Do I have to find all the original .bsps and plug them into my mod? That seems illegal. There has to be a way to make this mod just a plugin that uses inheritance or something. Don't know if any of that made sense, but I'm really lost here, lol. The only thing about Half-Life 2 I want to change is this one little thing. I obviously can't package all of HL2 into my mod just to change that...