diff --git a/addons/medkits/$PBOPREFIX$ b/addons/medkits/$PBOPREFIX$ new file mode 100644 index 0000000..009865d --- /dev/null +++ b/addons/medkits/$PBOPREFIX$ @@ -0,0 +1 @@ +z\l6AA\addons\medkits \ No newline at end of file diff --git a/addons/medkits/CfgEventHandlers.hpp b/addons/medkits/CfgEventHandlers.hpp new file mode 100644 index 0000000..78b189a --- /dev/null +++ b/addons/medkits/CfgEventHandlers.hpp @@ -0,0 +1,19 @@ +class Extended_PreStart_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preStart)); + }; +}; + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server)); + }; +}; + +class Extended_PostInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_postInit)); + clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client)); + }; +}; \ No newline at end of file diff --git a/addons/medkits/Inventory.hpp b/addons/medkits/Inventory.hpp new file mode 100644 index 0000000..e44c7bb --- /dev/null +++ b/addons/medkits/Inventory.hpp @@ -0,0 +1,149 @@ +class CfgWeapons +{ +// Medical Items + class ACE_ItemCore; + class CBA_MiscItem_ItemInfo; + class l6AA_IFAK: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\Medic_Pouch"; + displayName="Emergency Aid Kit"; + descriptionShort="This is for use on others! Open it using the ACE interaction menu, and stabilise your friends, you may also be required to open this to treat yourself."; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=10.0; + }; + }; + class l6AA_IFAK2: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\basicTrauma"; + displayName="Individual Trauma Kit"; + descriptionShort="For ease of resupply, this will give you enough to treat a wound."; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=5.0; + }; + }; + class l6AA_Surgery: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="Surgical Fractures Kit"; + descriptionShort="This is a Complex Fracture treatment kit. Contains: 1x Scalpel, 1x Retractor, 1x Bone Plate, 1x Clamp, 1x Saline 250mL, 1x Set of Surgery drugs."; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=15.0; + }; + }; + class l6AA_Transfusion: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="Transfusion Kit"; + descriptionShort="This is a Transfusion Kit for CMTs. Contains: 1x 16g IV, 1x FAST IO, 1x Plasma 500ml, 2x Saline 1000ml, 1x Nitroglycerin"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=20.0; + }; + }; + class l6AA_DRUGS: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="CTM Drug Resupply Kit"; + descriptionShort="This is a resupply kit for CTMs. Contains: 2x Epi, 2x Morphine, 2x Naloxone, 1x Painkillers, 1x Penthrox Inhaler"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=10.0; + }; + }; + class l6AA_MASCAS: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\MASCAS"; + displayName="Mass Casualty Kit"; + descriptionShort="For those situations where you need a lot of medical supplies, and quickly!"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=50; + }; + }; + class l6AA_DRUGS2: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="CMT Drug Resupply Kit"; + descriptionShort="This is a resupply kit for CMTs. Contains: 3x TXA, 2x Epi, 3x Morphine. 2x Naloxone, 2x EACA, 2x Phenylephrine, 2x Lidocaine, 2x Adenosine, 3x Fentanyl, 1x Penthrox Inhaler, 1x Ammonium carbonate."; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=15.0; + }; + }; + class l6AA_CONSUMABLES: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="CTM Medical Resupply Kit"; + descriptionShort="This is a resupply kit for CTMs. Contains: 4x Geudel Tube, 2x SAM Splint, 2x Chest Seals, 2x NCD medkits,"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=10.0; + }; + }; + class l6AA_CONSUMABLES2: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="CMT Medical Resupply Kit"; + descriptionShort="This is a resupply kit for CMTs. Contains: 4x King LT, 4x SAM Splint, 20x Sutures, 4x Chest Seals, 2x NCD medkits, 2x AAT medkits, and 1 Field Blood Transfusion Kit"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=30.0; + }; + }; + class l6AA_BANDAGES: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="Bandage Resupply Kit"; + descriptionShort="This is a resupply kit for bandages. Contains: 15x Packing, 15x Elastic, 15x QuickClots"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=30.0; + }; + }; + class l6AA_CAP: ACE_ItemCore + { + scope=2; + author="A/Cpl Z Smith and 4 Rifles Milsim"; + picture="\z\l6AA\addons\medkits\data\EAK"; + displayName="CAP Supplies Kit"; + descriptionShort="For setting up a CAP"; + descriptionUse=""; + class ItemInfo:CBA_MiscItem_ItemInfo + { + mass=40; + }; + }; +}; \ No newline at end of file diff --git a/addons/medkits/XEH_PREP.hpp b/addons/medkits/XEH_PREP.hpp new file mode 100644 index 0000000..26f8085 --- /dev/null +++ b/addons/medkits/XEH_PREP.hpp @@ -0,0 +1,11 @@ +PREP(open_BANDAGES); +PREP(open_CAP); +PREP(open_CONSUMABLES); +PREP(open_CONSUMABLES2); +PREP(open_DRUGS); +PREP(open_DRUGS2); +PREP(open_IFAK); +PREP(open_IFAK2); +PREP(open_MASCAS); +PREP(open_Surgery); +PREP(open_Transfusion); \ No newline at end of file diff --git a/addons/medkits/XEH_postInit.sqf b/addons/medkits/XEH_postInit.sqf new file mode 100644 index 0000000..84f2529 --- /dev/null +++ b/addons/medkits/XEH_postInit.sqf @@ -0,0 +1 @@ +#include "script_component.hpp" \ No newline at end of file diff --git a/addons/medkits/XEH_postInit_client.sqf b/addons/medkits/XEH_postInit_client.sqf new file mode 100644 index 0000000..84f2529 --- /dev/null +++ b/addons/medkits/XEH_postInit_client.sqf @@ -0,0 +1 @@ +#include "script_component.hpp" \ No newline at end of file diff --git a/addons/medkits/XEH_preInit_server.sqf b/addons/medkits/XEH_preInit_server.sqf new file mode 100644 index 0000000..b095400 --- /dev/null +++ b/addons/medkits/XEH_preInit_server.sqf @@ -0,0 +1,3 @@ +#include "script_component.hpp" + +//only executed on server \ No newline at end of file diff --git a/addons/medkits/XEH_preStart.sqf b/addons/medkits/XEH_preStart.sqf new file mode 100644 index 0000000..7dca066 --- /dev/null +++ b/addons/medkits/XEH_preStart.sqf @@ -0,0 +1,2 @@ +#include "script_component.hpp" +#include "XEH_PREP.hpp" \ No newline at end of file diff --git a/addons/medkits/XEH_preinit.sqf b/addons/medkits/XEH_preinit.sqf new file mode 100644 index 0000000..a789db4 --- /dev/null +++ b/addons/medkits/XEH_preinit.sqf @@ -0,0 +1,10 @@ +#include "script_component.hpp" +ADDON = false; + +PREP_RECOMPILE_START; +#include "XEH_PREP.hpp" +PREP_RECOMPILE_END; + +#include "initSettings.inc.sqf" + +ADDON = true; \ No newline at end of file diff --git a/addons/medkits/config.cpp b/addons/medkits/config.cpp new file mode 100644 index 0000000..b83e8ea --- /dev/null +++ b/addons/medkits/config.cpp @@ -0,0 +1,58 @@ +#include "script_component.hpp" + +// information on this addon specifically +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"l6AA_main", "CBA_settings"}; + authors[] = {"Challenger, A/Cpl Smith"}; // sub array of authors, considered for the specific addon, can be removed or left empty {} + author = "16 Air Assault Milsim Community"; // primary author name, either yours or your team's, considered for the whole mod + VERSION_CONFIG; + }; +}; + +// configs go here +#include "CfgEventHandlers.hpp" + +class CfgPatches +{ + class medkits + { + name="l6AA Medical Kits"; + weapons[]= + { + "l6AA_IFAK", + "l6AA_IFAK2", + "l6AA_Surgery", + "l6AA_Transfusion", + "l6AA_DRUGS", + "l6AA_DRUGS2", + "l6AA_MASCAS", + "l6AA_CONSUMABLES", + "l6AA_CONSUMABLES", + "l6AA_BANDAGES", + "l6AA_CAP", + + }; + requiredVersion = 0.3; + requiredAddons[] = + { + "A3_Weapons_F", + "A3_UI_F", + "ace_laserpointer", + "cba_accessory", + "cba_settings", + "ace_interaction", + "CBA_XEH", + "CBA_MAIN" + }; + author="Challenger, A/Cpl Smith"; + }; +}; + + +#include "Inventory.hpp" +#include "i6AAPlayer.hpp" diff --git a/addons/medkits/data/EAK.paa b/addons/medkits/data/EAK.paa new file mode 100644 index 0000000..0f0dc27 Binary files /dev/null and b/addons/medkits/data/EAK.paa differ diff --git a/addons/medkits/data/Icons/icon_open.paa b/addons/medkits/data/Icons/icon_open.paa new file mode 100644 index 0000000..d3aae9f Binary files /dev/null and b/addons/medkits/data/Icons/icon_open.paa differ diff --git a/addons/medkits/data/MASCAS.paa b/addons/medkits/data/MASCAS.paa new file mode 100644 index 0000000..f37bb68 Binary files /dev/null and b/addons/medkits/data/MASCAS.paa differ diff --git a/addons/medkits/data/Medic_Pouch.paa b/addons/medkits/data/Medic_Pouch.paa new file mode 100644 index 0000000..abb493b Binary files /dev/null and b/addons/medkits/data/Medic_Pouch.paa differ diff --git a/addons/medkits/data/basicTrauma.paa b/addons/medkits/data/basicTrauma.paa new file mode 100644 index 0000000..6626de8 Binary files /dev/null and b/addons/medkits/data/basicTrauma.paa differ diff --git a/addons/medkits/data/ifak_interaction.paa b/addons/medkits/data/ifak_interaction.paa new file mode 100644 index 0000000..168c408 Binary files /dev/null and b/addons/medkits/data/ifak_interaction.paa differ diff --git a/addons/medkits/functions/fnc_open_BANDAGES.sqf b/addons/medkits/functions/fnc_open_BANDAGES.sqf new file mode 100644 index 0000000..08bea5d --- /dev/null +++ b/addons/medkits/functions/fnc_open_BANDAGES.sqf @@ -0,0 +1,4 @@ +_this removeItem 'l6AA_BANDAGES'; +for "_i" from 1 to 15 do {_this addItem "ACE_quikclot"}; +for "_i" from 1 to 15 do {_this addItem "ACE_elasticBandage"}; +for "_i" from 1 to 15 do {_this addItem "ACE_packingBandage"}; \ No newline at end of file diff --git a/addons/medkits/functions/fnc_open_CAP.sqf b/addons/medkits/functions/fnc_open_CAP.sqf new file mode 100644 index 0000000..38e3f48 --- /dev/null +++ b/addons/medkits/functions/fnc_open_CAP.sqf @@ -0,0 +1,7 @@ +_this removeItem 'l6AA_CAP'; +_this addItemToBackpack 'ACE_SpraypaintBlue'; +_this addItemToBackpack 'ACE_SpraypaintGreen'; +_this addItemToBackpack 'ACE_SpraypaintRed'; +_this addItemToBackpack 'ACE_SpraypaintWhite'; +_this addItemToBackpack 'ACE_SpraypaintYellow'; + diff --git a/addons/medkits/functions/fnc_open_CONSUMABLES.sqf b/addons/medkits/functions/fnc_open_CONSUMABLES.sqf new file mode 100644 index 0000000..f78da36 --- /dev/null +++ b/addons/medkits/functions/fnc_open_CONSUMABLES.sqf @@ -0,0 +1,5 @@ +_this removeItem 'l6AA_CONSUMABLES'; +for "_i" from 1 to 5 do {_this addItemToBackpack "kat_guedel"}; +for "_i" from 1 to 4 do {_this addItemToBackpack "kat_chestSeal"}; +for "_i" from 1 to 4 do {_this addItemToBackpack "ACE_splint"}; + diff --git a/addons/medkits/functions/fnc_open_CONSUMABLES2.sqf b/addons/medkits/functions/fnc_open_CONSUMABLES2.sqf new file mode 100644 index 0000000..8dba39f --- /dev/null +++ b/addons/medkits/functions/fnc_open_CONSUMABLES2.sqf @@ -0,0 +1,8 @@ +_this removeItem 'l6AA_CONSUMABLES2'; +for "_i" from 1 to 4 do {_this addItemToBackpack "kat_larynx"}; +for "_i" from 1 to 4 do {_this addItemToBackpack "ACE_splint"}; +for "_i" from 1 to 4 do {_this addItemToBackpack "kat_chestSeal"}; +for "_i" from 1 to 2 do {_this addItemToBackpack "kat_ncdKit"}; +for "_i" from 1 to 2 do {_this addItemToBackpack "kat_aatKit"}; +_this addItemToBackpack "KAT_Empty_bloodIV_500"; +for "_i" from 1 to 20 do {_this addItemToBackpack "ace_suture"}; \ No newline at end of file diff --git a/addons/medkits/functions/fnc_open_DRUGS.sqf b/addons/medkits/functions/fnc_open_DRUGS.sqf new file mode 100644 index 0000000..8a1f556 --- /dev/null +++ b/addons/medkits/functions/fnc_open_DRUGS.sqf @@ -0,0 +1,6 @@ +_this removeItem 'l6AA_DRUGS'; +for "_i" from 1 to 2 do {_this addItemToBackpack 'ACE_morphine'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'ACE_epinephrine'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'kat_naloxone'}; +_this addItemToBackpack 'kat_Painkiller'; +_this addItemToBackpack 'kat_PenthroxItem'; \ No newline at end of file diff --git a/addons/medkits/functions/fnc_open_DRUGS2.sqf b/addons/medkits/functions/fnc_open_DRUGS2.sqf new file mode 100644 index 0000000..292dfd9 --- /dev/null +++ b/addons/medkits/functions/fnc_open_DRUGS2.sqf @@ -0,0 +1,12 @@ +_this removeItem 'l6AA_DRUGS2'; +for "_i" from 1 to 3 do {_this addItemToBackpack 'kat_TXA'}; +for "_i" from 1 to 3 do {_this addItemToBackpack 'ACE_morphine'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'ACE_epinephrine'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'kat_naloxone'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'kat_EACA'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'kat_phenylephrine'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'kat_lidocaine'}; +for "_i" from 1 to 2 do {_this addItemToBackpack 'ACE_adenosine'}; +for "_i" from 1 to 3 do {_this addItemToBackpack 'kat_fentanyl'}; +_this addItemToBackpack 'kat_CarbonateItem'; +_this addItemToBackpack 'kat_PenthroxItem'; diff --git a/addons/medkits/functions/fnc_open_IFAK.sqf b/addons/medkits/functions/fnc_open_IFAK.sqf new file mode 100644 index 0000000..4a72dcb --- /dev/null +++ b/addons/medkits/functions/fnc_open_IFAK.sqf @@ -0,0 +1,8 @@ +_this removeItem 'l6AA_IFAK'; +_this addItem 'ACE_tourniquet'; +_this addItem 'ACE_tourniquet'; +_this addItem 'ACE_tourniquet'; +_this addItem 'ACE_tourniquet'; +_this addItem 'kat_guedel'; +_this addItem 'kat_chestSeal'; +for "_i" from 1 to 15 do {_this addItemToBackpack "ACE_packingBandage"}; \ No newline at end of file diff --git a/addons/medkits/functions/fnc_open_IFAK2.sqf b/addons/medkits/functions/fnc_open_IFAK2.sqf new file mode 100644 index 0000000..3685e06 --- /dev/null +++ b/addons/medkits/functions/fnc_open_IFAK2.sqf @@ -0,0 +1,8 @@ +_this removeItem 'l6AA_IFAK2'; +_this addItem 'ACE_packingBandage'; +_this addItem 'ACE_packingBandage'; +_this addItem 'ACE_packingBandage'; +_this addItem 'ACE_packingBandage'; +_this addItem 'ACE_tourniquet'; +_this addItem 'kat_chestSeal'; +player addMagazine ["kat_Painkiller", 1]; diff --git a/addons/medkits/functions/fnc_open_MASCAS.sqf b/addons/medkits/functions/fnc_open_MASCAS.sqf new file mode 100644 index 0000000..550e82c --- /dev/null +++ b/addons/medkits/functions/fnc_open_MASCAS.sqf @@ -0,0 +1,10 @@ +_this removeItem 'l6AA_MASCAS'; +for "_i" from 1 to 30 do {_this addItemToBackpack "ACE_quickclotBandage"}; +for "_i" from 1 to 20 do {_this addItemToBackpack "ACE_elasticBandage"}; +for "_i" from 1 to 60 do {_this addItemToBackpack "ACE_packingBandage"}; +for "_i" from 1 to 12 do {_this addItemToBackpack "ACE_tourniquet"}; +for "_i" from 1 to 6 do {_this addItemToBackpack "kat_chestSeal"}; +for "_i" from 1 to 6 do {_this addItemToBackpack "kat_ncdKit"}; +for "_i" from 1 to 6 do {_this addItemToBackpack "i6AA_IFAK"}; +_this addItemToBackpack 'SmokeShellPurple'; +for "_i" from 1 to 4 do {_this addItemToBackpack "ACE_Chemlight_UltraHiOrange"}; \ No newline at end of file diff --git a/addons/medkits/functions/fnc_open_Surgery.sqf b/addons/medkits/functions/fnc_open_Surgery.sqf new file mode 100644 index 0000000..d97bcc1 --- /dev/null +++ b/addons/medkits/functions/fnc_open_Surgery.sqf @@ -0,0 +1,9 @@ +_this removeItem 'l6AA_Surgery'; +_this addItemToBackpack "kat_scalpel"; +_this addItemToBackpack "kat_retractor"; +for "_i" from 1 to 2 do {_this addItemToBackpack "kat_etomidate"}; +_this addItemToBackpack "kat_flumazenil"; +_this addItemToBackpack "kat_lorazepam"; +_this addItemToBackpack "ACE_salineIV_250"; +_this addItemToBackpack "kat_plate"; +_this addItemToBackpack "kat_clamp"; \ No newline at end of file diff --git a/addons/medkits/functions/fnc_open_Transfusion.sqf b/addons/medkits/functions/fnc_open_Transfusion.sqf new file mode 100644 index 0000000..5aeaa7f --- /dev/null +++ b/addons/medkits/functions/fnc_open_Transfusion.sqf @@ -0,0 +1,6 @@ +_this removeItem 'l6AA_Transfusion'; +_this addItemToBackpack "kat_IV_16"; +_this addItemToBackpack "ACE_plasmaIV_500"; +for "_i" from 1 to 2 do {_this addItemToBackpack "ACE_salineIV"}; +_this addItemToBackpack "kat_nitroglycerin"; +_this addItemToBackpack "kat_IO_FAST"; \ No newline at end of file diff --git a/addons/medkits/functions/script_component.hpp b/addons/medkits/functions/script_component.hpp new file mode 100644 index 0000000..4e2d473 --- /dev/null +++ b/addons/medkits/functions/script_component.hpp @@ -0,0 +1 @@ +#include "..\script_component.hpp" \ No newline at end of file diff --git a/addons/medkits/i6AAPlayer.hpp b/addons/medkits/i6AAPlayer.hpp new file mode 100644 index 0000000..9e203da --- /dev/null +++ b/addons/medkits/i6AAPlayer.hpp @@ -0,0 +1,116 @@ +#define QUOTE(var1) #var1 + +class CfgVehicles { + class Man; + class CAManBase: Man + { + sensitivityEar = 0.2; + class ACE_SelfActions + { + class l6AA_Medical + { + displayName="Medical Kits"; + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + exceptions[]= + { + "isNotSitting" + }; + class l6AA_open_ifak + { + displayName="Open Emergency Aid Kit"; + condition="('l6AA_IFAK' in (items player))"; + statement= QUOTE(_player call FUNC(open_IFAK)); + icon="\z\l6AA\addons\medkits\data\Medic_Pouch.paa"; + exceptions[]= + { + "isNotSitting" + }; + }; + class l6AA_open_ifak2 : l6AA_open_ifak + { + displayName="Open Individual First Aid Kit"; + condition="('l6AA_IFAK2' in (items player))"; + statement= QUOTE(_player call FUNC(open_IFAK2)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_Surgery : l6AA_open_ifak + { + displayName="Open Fracture Kit"; + condition="([player, 2] call ace_medical_treatment_fnc_isMedic && 'l6AA_Surgery' in (items player))"; + statement= QUOTE(_player call FUNC(open_Surgery)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_Transfusion : l6AA_open_ifak + { + displayName="Open Transfusion Kit"; + condition="([player, 2] call ace_medical_treatment_fnc_isMedic && 'l6AA_Transfusion' in (items player))"; + statement= QUOTE(_player call FUNC(open_Transfusion)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_MASCAS : l6AA_open_ifak + { + displayName="Deploy MASCAS Kit"; + condition="('l6AA_MASCAS' in (items player))"; + statement= QUOTE(_player call FUNC(open_MASCAS)); + icon="\z\l6AA\addons\medkits\data\MASCAS.paa"; + }; + class l6AA_open_DRUGS : l6AA_open_ifak + { + displayName="Open CTM Drug Resupply"; + condition="(_player call ace_common_fnc_isMedic && 'l6AA_DRUGS' in (items player))"; + statement= QUOTE(_player call FUNC(open_DRUGS)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_DRUGS2 : l6AA_open_ifak + { + displayName="Open CMT Drug Resupply"; + condition="([player, 2] call ace_medical_treatment_fnc_isMedic && 'l6AA_DRUGS2' in (items player))"; + statement= QUOTE(_player call FUNC(open_DRUGS2)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_CONSUMABLES : l6AA_open_ifak + { + displayName="Open CTM Consumable Resupply"; + condition= "(_player call ace_common_fnc_isMedic && 'l6AA_CONSUMABLES' in (items player))"; + statement= QUOTE(_player call FUNC(open_CONSUMABLES)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_CONSUMABLES2 : l6AA_open_ifak + { + displayName="Open CMT Consumable Resupply"; + condition="([player, 2] call ace_medical_treatment_fnc_isMedic && 'l6AA_CONSUMABLES2' in (items player))"; + statement= QUOTE(_player call FUNC(open_CONSUMABLES2)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_BANDAGES : l6AA_open_ifak + { + displayName="Open Bandage Resupply"; + condition="(_player call ace_common_fnc_isMedic && 'l6AA_BANDAGES' in (items player))"; + statement= QUOTE(_player call FUNC(open_BANDAGES)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + class l6AA_open_CAP : l6AA_open_ifak + { + displayName="Open CAP Supplies kit"; + condition="([player, 2] call ace_medical_treatment_fnc_isMedic && 'l6AA_CAP' in (items player))"; + statement= QUOTE(_player call FUNC(open_CAP)); + icon="\z\l6AA\addons\medkits\data\ifak_interaction.paa"; + }; + }; + }; + class ACE_Actions + { + class ACE_MainActions + { + class l6AA_open_unit_ifak + { + displayName="Open Emergency Aid Kit"; + condition="('l6AA_IFAK' in (items _target))"; + exceptions[]={}; + statement= QUOTE(_target call FUNC(IFAK)); + icon="\z\l6AA\addons\medkits\data\basicTrauma.paa"; + }; + }; + }; + }; +}; diff --git a/addons/medkits/initSettings.inc.sqf b/addons/medkits/initSettings.inc.sqf new file mode 100644 index 0000000..2d95f0d --- /dev/null +++ b/addons/medkits/initSettings.inc.sqf @@ -0,0 +1,22 @@ +/* + * File: initSettings.sqf + * Author: Mildly_Interested + * Date: 2023-10-22 + * Last Update: 2024-02-03 + * License: GNU General Public License v3.0 only - https://www.gnu.org/licenses/gpl-3.0-standalone.html + * + * Sets up CBA settings for the AI submodule. + * + * Arguments: + * None + * + * Return Value: + * None + * + * Example: + * None + * + * Public: No + */ + +private _category = "16AA - Template Addon"; \ No newline at end of file diff --git a/addons/medkits/script_component.hpp b/addons/medkits/script_component.hpp new file mode 100644 index 0000000..5e38e63 --- /dev/null +++ b/addons/medkits/script_component.hpp @@ -0,0 +1,15 @@ +#define COMPONENT medkits +#define COMPONENT_BEAUTIFIED MEDKITS +#include "\z\l6AA\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE + +#ifdef DEBUG_ENABLED_ADDON_TEMPLATE + #define DEBUG_MODE_FULL +#endif + #ifdef DEBUG_SETTINGS_ADDON_TEMPLATE + #define DEBUG_SETTINGS DEBUG_SETTINGS_ADDON_TEMPLATE +#endif + +#include "\z\l6AA\addons\main\script_macros.hpp" \ No newline at end of file