class CfgPatches
{
	class braf_naval_weapons
	{
		name = "BRAF Naval Weapons";
		author = "BRAF TEAM";
		requiredVersion = 1.82;
		requiredAddons[] =
		{
			"A3_Weapons_F",
			"A3_Data_F",
			"A3_Data_F_ParticleEffects"
		};
		units[] = {};
		weapons[] =
		{
			"braf_weapon_am39_asm"
		};
	};
};
class CfgFunctions
{
	class BRAF
	{
		class NavalWeapons
		{
			class ASMEngineSmoke
			{
				file = "\braf\braf_weapons_naval\braf_functions\fn_ASMEngineSmoke.sqf";
			};
		};
	};
};
class BRAF_ASM_EngineEffects
{
	class RocketBackfire1
	{
		simulation = "particles";
		type = "PylonBackfire";
		start = "(density interpolate [0.019,0.02,1,0])";
		lifeTime = 2;
	};
};
class CfgAmmo
{
	class ammo_Missile_CruiseBase;
	class braf_ammo_asm_cruise_base: ammo_Missile_CruiseBase
	{
		scope = 0;
		cameraViewAvailable = 1;
		initTime = 1.5;
		coefGravity = 1;
		braf_asm = 1;
		effectsMissileInit = "BRAF_ASM_EngineEffects";
		effectsMissile = "EmptyEffect";
		muzzleEffect = "";
	};
	class braf_ammo_am39_asm: braf_ammo_asm_cruise_base
	{
		scope = 2;
		displayName = "AM39 Exocet";
		author = "BRAF TEAM";
		model = "braf\braf_weapons_naval\braf_asm\Exocet\AM39\braf_am39_fly.p3d";
		proxyShape = "braf\braf_weapons_naval\braf_asm\Exocet\AM39\braf_am39.p3d";
	};
};
class CfgMagazines
{
	class 8Rnd_LG_scalpel;
	class PylonMissile_1Rnd_LG_scalpel;
	class braf_mag_am39_1rnd: 8Rnd_LG_scalpel
	{
		scope = 2;
		displayName = "AM39 Exocet (1 missile)";
		author = "BRAF TEAM";
		count = 1;
		initSpeed = 12;
		ammo = "braf_ammo_am39_asm";
	};
	class braf_mag_am39_pylon_1rnd: PylonMissile_1Rnd_LG_scalpel
	{
		scope = 2;
		displayName = "AM39 Exocet Pylon Store";
		author = "BRAF TEAM";
		count = 1;
		initSpeed = 0;
		model="\A3\Weapons_F\DynamicLoadout\PylonMissile_1x_Bomb_02_F.p3d";
		ammo = "braf_ammo_am39_asm";
		pylonWeapon = "braf_weapon_am39_asm";
		hardpoints[] = {"BRAF_AM39_PYLON"};
		ejectSpeed[] = {0,0,0};
	};
};
class CfgWeapons
{
	class missiles_SCALPEL;
	class RocketPods;
	class braf_weapon_asm_air_base: missiles_SCALPEL
	{
		scope = 0;
		author = "BRAF TEAM";
		magazines[] = {};
		modes[] = {"Cruise"};
		class Cruise: RocketPods
		{
			displayName = "$STR_A3_firemode_terrain0";
			textureType = "terrain";
			reloadTime = 0.1;
			magazineReloadTime = 0.1;
			sounds[] = {"StandardSound"};
			class StandardSound
			{
				begin1[] = {"A3\Sounds_F\weapons\Rockets\missile_1",1.1220185,1.3,1000};
				soundBegin[] = {"begin1",1};
			};
			lockingTargetSound[] = {"A3\Sounds_F\weapons\Rockets\locked_1",0.56234133,1};
			lockedTargetSound[] = {"A3\Sounds_F\weapons\Rockets\locked_3",0.56234133,2.5};
			aiRateOfFire = 5.0;
			aiRateOfFireDistance = 500;
			showToPlayer = 1;
			minRange = 500;
			minRangeProbab = 0.2;
			midRange = 2000;
			midRangeProbab = 0.96;
			maxRange = 32000;
			maxRangeProbab = 0.92;
		};
		class EventHandlers
		{
			fired = "_this call BRAF_fnc_ASMEngineSmoke";
		};
	};
	class braf_weapon_am39_asm: braf_weapon_asm_air_base
	{
		scope = 2;
		displayName = "AM39 Exocet";
		author = "BRAF TEAM";
		magazines[] =
		{
			"braf_mag_am39_1rnd",
			"braf_mag_am39_pylon_1rnd"
		};
	};
};
