Post tutorial Report RSS Changing The Sounds In Your MOD

Add or customize your mod's sound effects, for weapons and such.

Posted by on - Basic Server Side Coding

[page=First]
Well I just figured out how to do this, its not that hard or anything, but to new kids like me it took some finding and I thought I would help the other wana-be modders like myself.

Open you mod folder

Go to (or make) your sound folder were you want the sound

ex: C:\Program Files\Valve\Steam\SteamApps\SourceMods\YOURMOD]\sound\weapons\MYGUN

Now put the sounds you want to use in here( the shooting sound, reloading, kicking, milking, w/e )

Now go back to you mod folder, and go to scripts

ex: C:\Program Files\Valve\Steam\SteamApps\SourceMods\YOURMOD\scripts

Here find the game_sounds_weapons.txt file

now go to the bottom and add:

"weapon_mygun.fire"
{
	"channel"	"CHAN_WEAPON"
	"volume"	"1"
	"soundlevel"	"SNDLVL_NORM"
	"rndwave"
	{
		"wave"	"^weapons/mygun/fire1.wav"
	}
}

now go into the weapon_mygun.txt file in the scripts folder (if you are modding a already existing weapon just use its respective script)

change the sounds accordingly
EX:

SoundData
	{
		"single_shot"	"Weapon_mygun.fire1"
		"reload"	"Weapon_mygun.reload1"
	}

and there you have it, hope this helps someone out
NOTE: some sounds may have to be changed in the source files

Post comment Comments
Gutzy
Gutzy - - 2 comments

perfect, thank you - very to the point easy to read adn just great

Reply Good karma Bad karma+1 vote
Xyius
Xyius - - 29 comments

Nice tutorial! Simple, easy to follow and read. Great job!

Reply Good karma Bad karma+1 vote
1337FeRReT
1337FeRReT - - 170 comments

crap, this comment is now void -_-

Reply Good karma Bad karma+1 vote
Cutsman
Cutsman - - 1 comments

how can i add custom music to my mod ? or is that impossible ?

Reply Good karma Bad karma+2 votes
just_wax
just_wax - - 392 comments

Its really simple. All you need to do is put the music into a music folder in the sounds folder, then in your map use an ambient_generic entity to load the music.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: