[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
perfect, thank you - very to the point easy to read adn just great
Nice tutorial! Simple, easy to follow and read. Great job!
crap, this comment is now void -_-
how can i add custom music to my mod ? or is that impossible ?
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.