class CfgPatches
{
	class BoobyTrap1
	{
		units[] = {BoobyTrap1};
		weapons[] = {};
		requiredVersion = 1.0;
	};
	class BoobyTrap2
	{
		units[] = {BoobyTrap2};
		weapons[] = {};
		requiredVersion = 1.0;
	};
	class BoobyTrap3
	{
		units[] = {BoobyTrap3};
		weapons[] = {};
		requiredVersion = 1.0;
	};
};

class CfgVehicleClasses
{
	class RAV_Objects
	{
		displayName = "$STR_TRAP_00";
	};
};

class CfgVehicles
{
	class All {};
	class Static: All {};
	class thing: Static {};
	class BoobyTrap1: Thing
	{
		scope = 2;
		animated = 0;
		vehicleClass = "RAV_Objects";
		icon = "\RAV_BoobyTraps\Icon.paa";
		model="\RAV_BoobyTraps\BoobyTrap1.p3d";
		displayName = "$STR_TRAP_01";
		destructype = "Destructno";
		cost = 0;
		armor = 100000;
		mapSize = 4;

		class eventhandlers
		{
			init = "[_this select 0, 1] execVM ""\RAV_BoobyTraps\Activate.sqf""";
		};

		class UserActions
		{	
			class Desactivar_trampa
			{
				displayName ="Deactivate trap";
				position = "cortar";
				radius = 3.00;
				condition = "alive(this)";
				statement = "[this] execvm ""\RAV_BoobyTraps\Deactivate.sqf""";
				onlyforplayer = False;
			};
		};

	}

	class BoobyTrap2: BoobyTrap1
	{
		model="\RAV_BoobyTraps\BoobyTrap2.p3d";
		displayName = "$STR_TRAP_02";
		mapSize = 8;

		class eventhandlers
		{
			init = "[_this select 0, 2] execVM ""\RAV_BoobyTraps\Activate.sqf""";
		};
	};

	class BoobyTrap3: BoobyTrap1
	{
		model="\RAV_BoobyTraps\BoobyTrap3.p3d";
		displayName = "$STR_TRAP_03";
		mapSize = 12;

		class eventhandlers
		{
			init = "[_this select 0, 3] execVM ""\RAV_BoobyTraps\Activate.sqf""";
		};
	};
}

class CfgSounds
{
	sounds[] = {Trap_beep};
	class Trap_beep
	{
		name = "Trap_beep";
		sound[] = {\RAV_BoobyTraps\Trap_beep.ogg, db + 0, 1.0};
		titles[] = {0, ""};
	};
};

