1
127.0.0.1
Guest
Im trying to follow the following tutorial but the original author doesnt explain everything in detail. All I want to do is use custom weapon sounds for CS:S.
This is what I need to know:
1. Where do I put the custom .wavs? In root\cstrike\sounds\weapons?
2. After editing the game_sounds_weapons.txt file, how do I add it back to the original scripts folder inside the counter-strike-source-shared.gcf file?
Customizing your sounds
so i have this list of sounds for a USP being fired... 5 in total. but only 1 sound ever gets played ingame. you can fix this by editing the file cstrike/scripts/game_sounds_weapons.txt. there are other files as well. _radio.txt _hostage.txt etc... the rules apply to all of them.
this file is stored in the CS:S GCF file and needs to be extract with GCFSCape. google is your friend for that.
so anyway back to my 5 USP fire-sounds.
the default sound is cstrike/sounds/weapons/usp/weapons/usp/usp_unsil-1.wav so i searched for them in the game_sounds_weapons.txt and found:
...
//USP
"Weapon_USP.Single"
{
"channel" "CHAN_WEAPON"
"volume" "1.0"
"CompatibilityAttenuation" "ATTN_NORM"
"pitch" "PITCH_NORM"
"wave" ")weapons/usp/usp_unsil-1.wav"
}
...
in order to have the various sounds played you can change it to:
...
//USP
"Weapon_USP.Single"
{
"channel" "CHAN_WEAPON"
"volume" "1.0"
"CompatibilityAttenuation" "ATTN_NORM"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "weapons/usp/usp_unsil-1.wav"
"wave" "weapons/usp/usp_unsil-2.wav"
"wave" "weapons/usp/usp_unsil-3.wav"
"wave" "weapons/usp/usp_unsil-4.wav"
"wave" "weapons/usp/usp_unsil-5.wav"
}
}
...
i dont know what the ) was for, but removing it didnt have any adverse effects on my game so /shrug.
dont worry, when other's fire the usp i still hear the randomly selected sound.
there are various channels, like "CHAN_WEAPON", which you can use. but i'd recommend leaving them as default cuz it only effects you anyway. though i'm sure having your guns fire through the radio channel would be interesting... not
this can be applied to radio messages as well. so you can add different "rogers" etc so it's not the same boring old thing over and over again.
This is what I need to know:
1. Where do I put the custom .wavs? In root\cstrike\sounds\weapons?
2. After editing the game_sounds_weapons.txt file, how do I add it back to the original scripts folder inside the counter-strike-source-shared.gcf file?
Customizing your sounds
so i have this list of sounds for a USP being fired... 5 in total. but only 1 sound ever gets played ingame. you can fix this by editing the file cstrike/scripts/game_sounds_weapons.txt. there are other files as well. _radio.txt _hostage.txt etc... the rules apply to all of them.
this file is stored in the CS:S GCF file and needs to be extract with GCFSCape. google is your friend for that.
so anyway back to my 5 USP fire-sounds.
the default sound is cstrike/sounds/weapons/usp/weapons/usp/usp_unsil-1.wav so i searched for them in the game_sounds_weapons.txt and found:
...
//USP
"Weapon_USP.Single"
{
"channel" "CHAN_WEAPON"
"volume" "1.0"
"CompatibilityAttenuation" "ATTN_NORM"
"pitch" "PITCH_NORM"
"wave" ")weapons/usp/usp_unsil-1.wav"
}
...
in order to have the various sounds played you can change it to:
...
//USP
"Weapon_USP.Single"
{
"channel" "CHAN_WEAPON"
"volume" "1.0"
"CompatibilityAttenuation" "ATTN_NORM"
"pitch" "PITCH_NORM"
"rndwave"
{
"wave" "weapons/usp/usp_unsil-1.wav"
"wave" "weapons/usp/usp_unsil-2.wav"
"wave" "weapons/usp/usp_unsil-3.wav"
"wave" "weapons/usp/usp_unsil-4.wav"
"wave" "weapons/usp/usp_unsil-5.wav"
}
}
...
i dont know what the ) was for, but removing it didnt have any adverse effects on my game so /shrug.
dont worry, when other's fire the usp i still hear the randomly selected sound.
there are various channels, like "CHAN_WEAPON", which you can use. but i'd recommend leaving them as default cuz it only effects you anyway. though i'm sure having your guns fire through the radio channel would be interesting... not
this can be applied to radio messages as well. so you can add different "rogers" etc so it's not the same boring old thing over and over again.