//Get this addons macro

//get the macro for the air subaddon

//get generlized macros
#include "../../../RD501_main/config_macros.hpp"

class CfgPatches
{
	class macro_patch_name(shields)
	{
		addonRootClass=macro_patch_name(vehicles)

		requiredAddons[]=
		{
			macro_patch_name(vehicles)
		};
		requiredVersion=0.1;
		units[]=
		{
			"RD501_Squad_Shield",
			"RD501_Squad_Shield_trench"
		};
		weapons[]=
		{
			
		};
	};
};

class CfgVehicles
{
	class Land_House_Small_03_V1_ruins_F;
	class RD501_Squad_Shield: Land_House_Small_03_V1_ruins_F
	{
		author="$STR_A3_Bohemia_Interactive";
		mapSize=21.1;
		class SimpleObject
		{
			eden=0;
			animate[]={};
			hide[]={};
			verticalOffset=-0.023;
			verticalOffsetWorld=0;
			init="''";
		};
		editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\Land_House_Small_03_V1_ruins_F.jpg";
		scope=2;
		scopeCurator=2;
		displayName="Squad Shield";
		model="\RD501_Vehicles\static\shields\bubble\bubble.p3d";
		icon="iconObject_1x1";
		rd501_fired_deployable_loopSound = "rd501_squad_shield_loop";
		rd501_fired_deployable_loopDuration = 14;
		rd501_fired_deployable_endSound = "rd501_squad_shield_end";
		rd501_fired_deployable_endDuration = 1;
		rd501_fired_deployable_soundDistance = 300;
		vehicleClass = macro_editor_vehicle_type(statics)
		editorCategory =  macro_editor_cat(statics)
		editorSubcategory = macro_editor_cat(static_msc)
	};
	class RD501_Squad_Shield_trench: Land_House_Small_03_V1_ruins_F
	{
		author="$STR_A3_Bohemia_Interactive";
		mapSize=21.1;
		class SimpleObject
		{
			eden=0;
			animate[]={};
			hide[]={};
			verticalOffset=-0.023;
			verticalOffsetWorld=0;
			init="''";
		};
		editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\Land_House_Small_03_V1_ruins_F.jpg";
		scope=2;
		scopeCurator=2;
		displayName="Trench Shield";
		model="\RD501_Vehicles\static\shields\trench\trench.p3d";
		icon="iconObject_1x1";
		vehicleClass = macro_editor_vehicle_type(statics)
		editorCategory =  macro_editor_cat(statics)
		editorSubcategory = macro_editor_cat(static_msc)
	};
};
class CfgSounds
{
	class rd501_squad_shield_loop
	{
		// how the sound is referred to in the editor (e.g. trigger effects)
		name = "shield_loop";

		// filename, volume, pitch, distance (optional)
		sound[] = { "\RD501_Vehicles\static\shields\shield_loop.wss", 4, 1, 300 };

		// subtitle delay in seconds, subtitle text
		titles[] = { 1, "*Electric Shield Hum*" };
	};
	class rd501_squad_shield_end
	{
		// how the sound is referred to in the editor (e.g. trigger effects)
		name = "shield_loop";

		// filename, volume, pitch, distance (optional)
		sound[] = { "\RD501_Vehicles\static\shields\shield_end.wss", 4, 1, 300 };

		// subtitle delay in seconds, subtitle text
		titles[] = { 1, "*Shield Retracting Hiss*" };
	};
};