Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addition of medkits to common, with PREP #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/medkits/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\l6AA\addons\medkits
19 changes: 19 additions & 0 deletions addons/medkits/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -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));
};
};
149 changes: 149 additions & 0 deletions addons/medkits/Inventory.hpp
Original file line number Diff line number Diff line change
@@ -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;
};
};
};
11 changes: 11 additions & 0 deletions addons/medkits/XEH_PREP.hpp
Original file line number Diff line number Diff line change
@@ -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);
1 change: 1 addition & 0 deletions addons/medkits/XEH_postInit.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "script_component.hpp"
1 change: 1 addition & 0 deletions addons/medkits/XEH_postInit_client.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "script_component.hpp"
3 changes: 3 additions & 0 deletions addons/medkits/XEH_preInit_server.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "script_component.hpp"

//only executed on server
2 changes: 2 additions & 0 deletions addons/medkits/XEH_preStart.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "script_component.hpp"
#include "XEH_PREP.hpp"
10 changes: 10 additions & 0 deletions addons/medkits/XEH_preinit.sqf
Original file line number Diff line number Diff line change
@@ -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;
58 changes: 58 additions & 0 deletions addons/medkits/config.cpp
Original file line number Diff line number Diff line change
@@ -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"
Binary file added addons/medkits/data/EAK.paa
Binary file not shown.
Binary file added addons/medkits/data/Icons/icon_open.paa
Binary file not shown.
Binary file added addons/medkits/data/MASCAS.paa
Binary file not shown.
Binary file added addons/medkits/data/Medic_Pouch.paa
Binary file not shown.
Binary file added addons/medkits/data/basicTrauma.paa
Binary file not shown.
Binary file added addons/medkits/data/ifak_interaction.paa
Binary file not shown.
4 changes: 4 additions & 0 deletions addons/medkits/functions/fnc_open_BANDAGES.sqf
Original file line number Diff line number Diff line change
@@ -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"};
7 changes: 7 additions & 0 deletions addons/medkits/functions/fnc_open_CAP.sqf
Original file line number Diff line number Diff line change
@@ -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';

5 changes: 5 additions & 0 deletions addons/medkits/functions/fnc_open_CONSUMABLES.sqf
Original file line number Diff line number Diff line change
@@ -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"};

8 changes: 8 additions & 0 deletions addons/medkits/functions/fnc_open_CONSUMABLES2.sqf
Original file line number Diff line number Diff line change
@@ -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"};
6 changes: 6 additions & 0 deletions addons/medkits/functions/fnc_open_DRUGS.sqf
Original file line number Diff line number Diff line change
@@ -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';
12 changes: 12 additions & 0 deletions addons/medkits/functions/fnc_open_DRUGS2.sqf
Original file line number Diff line number Diff line change
@@ -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';
8 changes: 8 additions & 0 deletions addons/medkits/functions/fnc_open_IFAK.sqf
Original file line number Diff line number Diff line change
@@ -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"};
8 changes: 8 additions & 0 deletions addons/medkits/functions/fnc_open_IFAK2.sqf
Original file line number Diff line number Diff line change
@@ -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];
10 changes: 10 additions & 0 deletions addons/medkits/functions/fnc_open_MASCAS.sqf
Original file line number Diff line number Diff line change
@@ -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"};
9 changes: 9 additions & 0 deletions addons/medkits/functions/fnc_open_Surgery.sqf
Original file line number Diff line number Diff line change
@@ -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";
6 changes: 6 additions & 0 deletions addons/medkits/functions/fnc_open_Transfusion.sqf
Original file line number Diff line number Diff line change
@@ -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";
1 change: 1 addition & 0 deletions addons/medkits/functions/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "..\script_component.hpp"
Loading