Jump to content
greywolf-sniper 442624

Need help changing caliber of and firerate of vehicle weapon.

Recommended Posts

I'm trying to make the Marshall IFV similar to the real life USMC SuperAV for friend trying to start his unit.
he wants to raise the firerate to 200 rounds per minute, and if possible. put 2 firerates, 100 and 200.
he also want the gun to shoot 30mm instead of 40mm ammunition
Here is my config.cpp for the IFV I'm making so far.

I hope somebody can help.
 

class CfgPatches
{
	class SubiesMod
	{
		requiredAddons[]=
		{
			"A3_characters_F",
			"A3_Armor_F_Beta",
			"A3_Armor_f",
			"A3_Data_F",
			"A3_Soft_F",
		};
		requiredVersion=0.1;
		units[]=
		{
			"SubieAPC",
			"SubieAPCW",
			"SubieAPCFD",
			"SubieAPCD"
		};
		weapons[]={};
	};
};
class CfgVehicles
{
	class B_APC_Wheeled_01_cannon_F;
	class SubieAPC: B_APC_Wheeled_01_cannon_F
	{
		fuelCapacity=99999999999999999999;
		Maximumload=99999999999999999999;
		armor=99999999999999999999
		displayName="LAV-44 Spectre";
		hiddenSelections[]=
		{
			"camo1",
			"camo2",
			"camo3",
			"CamoNet",
			"CamoSlat"
		};
		hiddenSelectionsTextures[]=
		{
			"a3\armor_f_beta\APC_Wheeled_01\data\APC_Wheeled_01_base_co.paa",
			"a3\armor_f_beta\APC_Wheeled_01\data\APC_Wheeled_01_adds_co.paa",
			"a3\armor_f_beta\APC_Wheeled_01\data\APC_Wheeled_01_tows_co.paa",
			"a3\Armor_F\Data\camonet_NATO_Desert_CO.paa",
			"a3\Armor_F\Data\cage_sand_CO.paa"
		};
		class HitPoints
		{
			class HitTurret
			{
			armor=4;
			material=-1;
			armorComponent="hit_main_turret";
			name="hit_main_turret_point";
			visual="-";
			passThrough=0;
			minimalHit=0.1;
			explosionShielding=0.2;
			radius=0.25;
			isTurret=1;
			};
			class HitGun
			{
			armor=4;
			material=-1;
			armorComponent="hit_main_gun";
			name="hit_main_gun_point";
			visual="-";
			passThrough=0;
			minimalHit=0.1;
			explosionShielding=0.40000001;
			radius=0.2;
			isGun=1;
			};
		};
	};
	class SubieAPCW: SubieAPC
	{	
		displayName="LAV-44 Spectre";
		hiddenSelections[]=
		{
			"camo1",
			"camo2",
			"camo3",
			"CamoNet",
			"CamoSlat"
		};
		hiddenSelectionsTextures[]=
		{
			"LAV_44\data\APC_Wheeled_01_base_olive_co.paa",
			"LAV_44\data\APC_Wheeled_01_adds_olive_co.paa",
			"LAV_44\data\APC_Wheeled_01_tows_olive_co.paa",
			"LAV_44\Data\camonet_NATO_Green_CO.paa",
			"Lav-44\Data\cage_olive_CO.paa"
		};
	};	
	class SubieAPCFD: SubieAPC
	{
		displayName="LAV-44 Spectre";
		hiddenSelections[]=
		{
			"camo1",
			"camo2",
			"camo3",
			"CamoNet",
			"CamoSlat"
		};
		hiddenSelectionsTextures[]=
		{
			"LAV_44\data\APC_Wheeled_01_base_M81A1_co.paa",
			"LAV_44\data\APC_Wheeled_01_adds_M81A1_co.paa",
			"LAV_44\data\APC_Wheeled_01_tows_M81A1_co.paa",
			"LAV_44\Data\camonet_NATO_Green_CO.paa",
			"LAV_44\Data\cage_olive_CO.paa"
		};
	};
	class SubieAPCD: SubieAPC
	{
		displayName="LAV-44 Spectre";
		hiddenSelections[]=
		{
			"camo1",
			"camo2",
			"camo3",
			"CamoNet",
			"CamoSlat"
		};
		hiddenSelectionsTextures[]=
		{
			"LAV_44\data\APC_Wheeled_01_base_Desert_co.paa",
			"LAV_44\data\APC_Wheeled_01_adds_Desert_co.paa",
			"LAV_44\data\APC_Wheeled_01_tows_Desert_co.paa",
			"LAV_44\Data\camonet_NATO_Desert_CO.paa",
			"LAV_44\Data\cage_sand_CO.paa"
		};
	};
	class SubieAPCWT: SubieAPC
	{
		displayName="LAV-44 Spectre";
		hiddenSelections[]=
		{
			"camo1",
			"camo2",
			"camo3",
			"CamoNet",
			"CamoSlat"
		};
		hiddenSelectionsTextures[]=
		{
			"LAV_44\data\APC_Wheeled_01_base_WM81A2_co.paa",
			"LAV_44\data\APC_Wheeled_01_adds_WM81A2_co.paa",
			"LAV_44\data\APC_Wheeled_01_tows_WM81A2_co.paa",
			"LAV_44\Data\camonet_NATO_Green_co.paa",
			"LAV_44\Data\cage_olive_CO_CO.paa"
		};
	};		
};

 

Share this post


Link to post
Share on other sites

You'll have to crate a new weapon class or use one that already exists. In case you create a new one, then first make the ammo, followed by the magazine that use that specific ammo type. Lastly for the IFV as mentioned I believe you can script it by referring to the "MainTurret". Have you done this before?

Share this post


Link to post
Share on other sites

Changing firerates, no mod needed:

this addEventHandler ["Fired",{

  params ["_unit", "", "_muzzle", "", "", "", "", "_gunner"];
   _unit setWeaponReloadingTime [_gunner,_muzzle,0.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

×