User Tools

Site Tools


arma:config:custom_mine

ArmA 1 Custom Mine Config

ArmA 1 Forum, ArmA 1 Home, ArmA 1 Config, ArmA 1 Tools, ArmA 1 File Formats, ArmA 1 Missions, ArmA 1 3D Modeling, ArmA 1 Terrain, ArmA 1 Texturing, ArmA 1 Scripting

ArmA 1 aka Armed Assault (ArmA)

Custom Mine Config

I was looking for how to configure mines for a mod, so this is what I discovered.

The vehicleClass has to be the default Mines otherwise the mines don't work.

class CfgPatches
{
	class my_mines
	{
		units[] = {};
		weapons[] =
		{
			"My_mine1",
			"My_mine2"
		};
		requiredAddons[] =
		{
			"CAData",
			"CAWeapons"
		};
		requiredVersion = 1.07;
	};
};
 
class CfgAmmo
{
	class MineCore;
 
	class My_Mine1Ammo: MineCore
	{
		hit = 1200;
		indirectHit = 1100;
		indirectHitRange = 2;
		model = "\path\model";
		defaultMagazine = "My_Mine1Mag";
	};
 
	class My_Mine2Ammo: My_Mine1Ammo
	{
		hit = 800;
		indirectHit = 500;
		model = "\path\model";
		defaultMagazine = "My_Mine2Mag";
	};
};
 
class CfgMagazines
{
	class TimeBomb;
 
	class My_Mine1Mag: TimeBomb
	{
		scope = public;
		displayName = "My Mine 1";
		picture = "\CA\weapons\data\equip\HMineMag_ca.paa";
		ammo = "My_Mine1Ammo";
	};
 
	class My_Mine2Mag: My_Mine1Mag
	{
		displayName = "My Mine 2";
		ammo = "My_Mine2Ammo";
	};
};
 
class CfgWeapons
{
	class Default;
	class TimeBomb;
	class Put: Default
	{
		class PutMuzzle;
	};
 
	class My_MinePut: Put
	{
		displayName = "My Put";
		muzzles[] =
		{
			"My_MinePutMuzzle"
		};
 
		class My_MinePutMuzzle: PutMuzzle
		{
			displayName = "My Mine Put";
			magazines[] =
			{
				"My_Mine1Mag",
				"My_Mine2Mag"
			};
		};
	};
 
	class My_Mine1: TimeBomb
	{
		enableAttack = 0;
		ammo = "My_Mine1Ammo";
		displayName = "My Mine 1";
		nameSound = "mine";
		sound[] = {};
		class Library {};
	};
 
	class My_Mine2: My_Mine1
	{
		ammo = "My_Mine2Ammo";
		displayName = "AT Mine m/36";
	};
};
 
class cfgVehicles
{
	class MineGeneric;
 
	class My_Mine1Mine: MineGeneric
	{
		scope = public;
		displayName = "My Mine 1";
		ammo = "My_Mine1Ammo";
		model = "\path\model";
	};
 
	class My_Mine2Mine: My_Mine1Mine
	{
		displayName = "My Mine 2";
		ammo = "My_Mine2Ammo";
		model = "\path\model";
	};
};

Any feedback would be appreciated of other methods of creating custom mines. Feel free to post into PMC Tactical ArmA 1 Forum.

arma/config/custom_mine.txt · Last modified: 2024/08/01 07:40 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.