Jump to content

Sign in to follow this  
fiercedrummer117

Sound mod is not overwriting vanilla sound (HELP)

Recommended Posts

Hello all,

 

   I'm currently teaching myself how to write replacement configs in order to replace sounds I don't like with my own. I thought I'd start with the MX Rifle Closure sounds. However it seems that my sounds aren't overwriting the default MX Closure sounds and are just not playing at all.

Here is my config file:

 

class CfgPatches
{
	class JCD_WeaponSounds
	{
		units[]={};
		weapons[]={};
		requiredVersion=1;
		requiredAddons[]=
		{
			"a3_Weapons_F",
			"a3_Sounds_f",
			"a3_Sounds_F_Mark",
			"a3_data_f"
		};
		authors[]=
		{
			"Drummershocked"
		};
		author="Drummershocked";
	};
};

class CfgSoundShaders
{
	class JCD_MX_Mech_SoundShader
	{
		samples[]=
		{
			{
				"Dsound\jcd_sounds\Addons\sounds\MX\Mech1.ogg",
				1
			},
			
			{
				"Dsound\jcd_sounds\Addons\sounds\MX\Mech2.ogg",
				1
			},
			
			{
				"Dsound\jcd_sounds\Addons\sounds\MX\Mech3.ogg",
				1
			}
		};
		volume=1;
		range=15;
		rangeCurve[]=
		{
			{0,1},
			{15,0}
		};
	};
};

class CfgSoundSets
{
	class JCD_MX_Mech_SoundSet
	{
		soundShaders[]=
		{
			"JCD_MX_Mech_SoundShader"
		};
		volumeFactor=1;
		volumeCurve="InverseSquare1Curve";
		sound3DProcessingType="WeaponMediumShot3DProcessingType";
		distanceFilter="weaponShotDistanceFreqAttenuationFilter";
		frequencyRandomizer=0.80000001;
		frequencyRandomizerMin=0.1;
		occlusionFactor=0.5;
		obstructionFactor=0.30000001;
		spatial=1;
		doppler=0;
		loop=0;
	};
};

class Mode_SemiAuto;
class Mode_Burst;
class Mode_FullAuto;
class CfgWeapons
{
	class Rifle_Base_F;
	class arifle_mx_Base_F: Rifle_Base_F
	{
		class Single: Mode_SemiAuto
		{
			class BaseSoundModeType
			{
			};
			class StandardSound: BaseSoundModeType
			{
				soundSetShot[]=
				{
					"JCD_MX_Mech_SoundSet"
				};
			};
			class SilencedSound: BaseSoundModeType
			{
				soundSetShot[]=
				{
					"JCD_MX_Mech_SoundSet"
				};
			};
		};
		class FullAuto: Mode_FullAuto
		{
			class BaseSoundModeType
			{
			};
			class StandardSound: BaseSoundModeType
			{
				soundSetShot[]=
				{
					"JCD_MX_Mech_SoundSet"
				};
			};
			class SilencedSound: BaseSoundModeType
			{
				soundSetShot[]=
				{
					"JCD_MX_Mech_SoundSet"
				};
			};
		};
	};
};

I am only trying to replace the Closure sounds at this time though I do intend on expanding this config to cover other niche things I don't like, such as the suppressed sounds. I've been following topics such as this reddit post Here: 

and analyzing example configs such as this one Here:
https://community.bistudio.com/wiki/Arma_3:_Sound:_ExampleWeaponConfig

 

I'm stumped at this point and am reaching out for guidance and/or spoon feeding 👶

Thank you all in advanced,

-Jayden

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×