How would you change the sound of the gun? Let's lay I'm getting ****ing tired of the Default Gun sound, how would I do it?
datablock AudioProfile(gunShot1Sound)
{
filename = "./gunShot1.wav";
description = AudioClose3d;
preload = true;
};
gunShot1.wav is the sound file, to change it using your own file, you either overwrite with the same name, or use a different name like below.
For example, if you wanted a simple Shot1.wav:
datablock AudioProfile(gunShot1Sound)
{
filename = "./Shot1.wav";
description = AudioClose3d;
preload = true;
};
Shot1 would be your new sound.
Or, if you wanted the rocket shooting sound via path:
datablock AudioProfile(gunShot1Sound)
{
filename = "add-ons/weapon_rocket_launcher/rocketFire.wav";
description = AudioClose3d;
preload = true;
};
This is useful when you want to use a sound that is already in an add-on.
You will also have to enable the Rocket Launcher add-on for it to play the sound.
Also, "datablock AudioProfile(gunShot1Sound)" the
gunShot1Sound piece is used in the state system of the add-on.
stateSound[2] = gunShot1Sound;
If you change the gunShot1Sound datablock name, to say Shot1Sound you need to change the above to this:
stateSound[2] = Shot1Sound;