Jump to content
Sign in to follow this  
jw custom

Iron Front A3 Mod - Sound mod config problem

Recommended Posts

I'm trying to make a little sound mod to the Iron Front A3 Mod but i can't get it to work as original sounds are still used instead of my new ones.

After many attempts i did a copy/paste from the original library (LIB_US_Weapons.pbo from the d-day dlc). To make sure path/file was ok i changed fire sound to "drySound" > begin1[] = {"LIB\LIB_DLC_1\LIB_US_Weapons\Springfield\Data\Sounds\Springfield_dry.wss", 1.000000, 1, 10}; but i still get the original fire sound. Hopefully someone can help with this problem. The CfgSounds part work fine.

Here is my config:

class CfgPatches {

class jwc_garand {
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.020000;
	requiredAddons[] = {"LIB_US_Weapons"};
};
};


class CfgSounds {

class LIB_M1_Garand_Empty {
	[color="#00FF00"]sound[] = {"jwc_garand\garand_eject.ogg", "db+25", 1, 100};[/color]
	titles[] = {};
};
};


class Mode_SemiAuto;


class cfgWeapons {


class RifleCore;


class Rifle: RifleCore {
};

class LIB_RIFLE: Rifle {
};

class LIB_M1_Garand: LIB_RIFLE {
	scope = 2;
	displayName = "$STR_LIB_DN_M1_Garand";
	cursoraim = "LIB\weapons\data\cursor_kar.paa";
	picture = "\LIB\LIB_DLC_1\LIB_US_Weapons\Garand\Data\Icons\m1garand_icon_ca.paa";
	handAnim[] = {"OFP2_ManSkeleton", "lib_dlc_1\animationsWeapons\LIB_US_Weapons\Garand\Data\Anims\lib_m1garand.rtm"};
	modes[] = {"Single", "Far", "Medium", "Short"};

	class Single: Mode_SemiAuto {
		[color="#FF0000"]begin1[] = {"LIB\LIB_DLC_1\LIB_US_Weapons\Springfield\Data\Sounds\Springfield_dry.wss", 1.000000, 1, 10};[/color]
		soundBegin[] = {"begin1", 1};
		soundContinuous = 0;
		reloadTime = 0.100000;
		ffCount = 1;
		recoil = "recoil_single_primary_5outof10";
		recoilProne = "recoil_single_primary_prone_4outof10";
		dispersion = 0.000250;
		aiRateOfFire = 0.001000;
		aiRateOfFireDistance = 10;
		minRange = 0;
		minRangeProbab = 0.200000;
		midRange = 5;
		midRangeProbab = 0.700000;
		maxRange = 10;
		maxRangeProbab = 0.050000;
	};

	class Far: Single {
		showToPlayer = 0;
		aiRateOfFireDistance = 500;
		aiRateOfFire = 10;
		minRange = 300;
		minRangeProbab = 0.050000;
		midRange = 400;
		midRangeProbab = 0.500000;
		maxRange = 500;
		maxRangeProbab = 0.040000;
	};

	class Medium: Single {
		showToPlayer = 0;
		aiRateOfFire = 5;
		aiRateOfFireDistance = 300;
		minRange = 100;
		minRangeProbab = 0.050000;
		midRange = 200;
		midRangeProbab = 0.500000;
		maxRange = 300;
		maxRangeProbab = 0.040000;
	};

	class Short: Single {
		showToPlayer = 0;
		aiRateOfFire = 1;
		aiRateOfFireDistance = 100;
		minRange = 10;
		minRangeProbab = 0.050000;
		midRange = 50;
		midRangeProbab = 0.500000;
		maxRange = 100;
		maxRangeProbab = 0.040000;
	};
	drySound[] = {"LIB\LIB_DLC_1\LIB_US_Weapons\Springfield\Data\Sounds\Springfield_dry.wss", 1.000000, 1, 10};
	reloadMagazineSound[] = {"LIB\LIB_DLC_1\LIB_US_Weapons\Garand\Data\Sounds\Garand_ReloadMagazine.wss", 1.000000, 1, 20};
	magazines[] = {"LIB_8Rnd_762x63"};

	class LIBrary {
		LIBTextDesc = "$STR_LIB_LIB_M1_Garand";
	};
	model = "LIB\LIB_DLC_1\LIB_US_Weapons\Garand\lib_m1_garand.p3d";
	descriptionShort = "$STR_LIB_DSS_M1_Garand";
	weaponInfoType = "RscWeaponZeroing";
	discreteDistance[] = {100, 200, 300, 400, 500, 600, 700, 800};
	discreteDistanceInitIndex = 1;
};

};

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  

×