Merge pull request #215 from KoffeinFlummi/medical-itemcheck

Medical itemcheck
This commit is contained in:
Felix Wiegand 2015-03-21 22:41:06 +01:00
commit be4f21ea2e
9 changed files with 197 additions and 132 deletions

View File

@ -9,7 +9,7 @@ class ACE_Medical_Actions {
requiredMedic = 0;
treatmentTime = 5;
treatmentTimeSelfCoef = 1;
items[] = {{QGVAR(fieldDressing), QGVAR(packingBandage), QGVAR(elasticBandage), QGVAR(quikClot)}};
items[] = {{"ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_quikclot"}};
condition = "";
itemConsumed = 1;
@ -27,7 +27,7 @@ class ACE_Medical_Actions {
displayName = "$STR_ACE_Medical_Inject_Morphine";
displayNameProgress = "$STR_ACE_Medical_Injecting_Morphine";
treatmentTime = 2;
items[] = {QGVAR(morphine)};
items[] = {"ACE_morphine"};
callbackSuccess = QUOTE(DFUNC(treatmentBasic_morphine));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
@ -36,7 +36,7 @@ class ACE_Medical_Actions {
displayNameProgress = "$STR_ACE_Medical_Injecting_Epinephrine";
requiredMedic = 1;
treatmentTime = 3;
items[] = {QGVAR(epinephrine)};
items[] = {"ACE_epinephrine"};
callbackSuccess = QUOTE(DFUNC(treatmentBasic_epipen));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
@ -45,7 +45,7 @@ class ACE_Medical_Actions {
displayNameProgress = "$STR_ACE_Medical_Transfusing_Blood";
requiredMedic = 1;
treatmentTime = 20;
items[] = {{QGVAR(bloodIV), QGVAR(bloodIV_500), QGVAR(bloodIV_250)}};
items[] = {{"ACE_bloodIV", "ACE_bloodIV_500", "ACE_bloodIV_250"}};
callbackSuccess = QUOTE(DFUNC(treatmentBasic_bloodbag));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
@ -60,7 +60,7 @@ class ACE_Medical_Actions {
// The time it takes for a treatment action to complete. Time is in seconds.
treatmentTime = 5;
// Item required for the action. Leave empty for no item required.
items[] = {QGVAR(fieldDressing)};
items[] = {"ACE_fieldDressing"};
condition = "";
// Callbacks
callbackSuccess = QUOTE(DFUNC(treatmentAdvanced_bandage));
@ -74,67 +74,67 @@ class ACE_Medical_Actions {
animationCallerSelfProne = "AinvPpneMstpSlayW[wpn]Dnon_medic";
};
class PackingBandage: fieldDressing {
items[] = {QGVAR(packingBandage)};
items[] = {"ACE_packingBandage"};
};
class ElasticBandage: fieldDressing {
items[] = {QGVAR(elasticBandage)};
items[] = {"ACE_elasticBandage"};
};
class QuikClot: fieldDressing {
items[] = {QGVAR(quikClot)};
items[] = {"ACE_quikclot"};
};
class Tourniquet: fieldDressing {
items[] = {QGVAR(tourniquet)};
items[] = {"ACE_tourniquet"};
treatmentTime = 6;
callbackSuccess = QUOTE(DFUNC(treatmentTourniquet));
condition = QUOTE(!([ARR_2(_this select 1, _this select 2)] call FUNC(hasTourniquetAppliedTo)));
};
class Morphine: fieldDressing {
items[] = {QGVAR(morphine)};
items[] = {"ACE_morphine"};
treatmentTime = 3;
callbackSuccess = QUOTE(DFUNC(treatmentAdvanced_medication));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
class Atropine: Morphine {
items[] = {QGVAR(atropine)};
items[] = {"ACE_atropine"};
};
class Epinephrine: Morphine {
items[] = {QGVAR(epinephrine)};
items[] = {"ACE_epinephrine"};
};
class BloodIV: fieldDressing {
items[] = {QGVAR(bloodIV)};
items[] = {"ACE_bloodIV"};
requiredMedic = 1;
treatmentTime = 7;
callbackSuccess = QUOTE(DFUNC(treatmentIV));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
class BloodIV_500: BloodIV {
items[] = {QGVAR(bloodIV_500)};
items[] = {"ACE_bloodIV_500"};
};
class BloodIV_250: BloodIV {
items[] = {QGVAR(bloodIV_250)};
items[] = {"ACE_bloodIV_250"};
};
class PlasmaIV: BloodIV {
items[] = {QGVAR(plasmaIV)};
items[] = {"ACE_plasmaIV"};
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
class PlasmaIV_500: PlasmaIV {
items[] = {QGVAR(plasmaIV_500)};
items[] = {"ACE_plasmaIV_500"};
};
class PlasmaIV_250: PlasmaIV {
items[] = {QGVAR(plasmaIV_250)};
items[] = {"ACE_plasmaIV_250"};
};
class SalineIV: BloodIV {
items[] = {QGVAR(salineIV)};
items[] = {"ACE_salineIV"};
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
class SalineIV_500: SalineIV {
items[] = {QGVAR(salineIV_500)};
items[] = {"ACE_salineIV_500"};
};
class SalineIV_250: SalineIV {
items[] = {QGVAR(salineIV_250)};
items[] = {"ACE_salineIV_250"};
};
class SurgicalKit: fieldDressing {
items[] = {QGVAR(surgicalKit)};
items[] = {"ACE_surgicalKit"};
treatmentLocations[] = {"MedicalFacility", "MedicalVehicle"};
requiredMedic = 2;
treatmentTime = 15;
@ -143,7 +143,7 @@ class ACE_Medical_Actions {
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
};
class PersonalAidKit: fieldDressing {
items[] = {QGVAR(personalAidKit)};
items[] = {"ACE_personalAidKit"};
treatmentLocations[] = {"All"};
requiredMedic = 1;
treatmentTime = 15;
@ -191,7 +191,7 @@ class ACE_Medical_Actions {
treatmentLocations[] = {"All"};
requiredMedic = 0;
treatmentTime = 7.5;
items[] = {QGVAR(bodyBag)};
items[] = {"ACE_bodyBag"};
condition = "!alive (_this select 1);";
callbackSuccess = QUOTE(DFUNC(actionPlaceInBodyBag));
callbackFailure = "";

View File

@ -42,3 +42,11 @@ class Extended_Local_EventHandlers {
};
};
};
class Extended_Take_EventHandlers {
class CAManBase {
class ADDON {
take = QUOTE(call FUNC(itemCheck));
};
};
};

View File

@ -1178,7 +1178,7 @@ class CfgVehicles {
displayName = $STR_ACE_MEDICAL_BODYBAG_DISPLAY;
};
class Item_Base_F;
class GVAR(fieldDressingItem): Item_Base_F {
class ACE_fieldDressingItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_BANDAGE_BASIC_DISPLAY;
@ -1186,14 +1186,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(fieldDressing)
class ACE_fieldDressing
{
name = QGVAR(fieldDressing);
name = "ACE_fieldDressing";
count = 1;
};
};
};
class GVAR(packingBandageItem): Item_Base_F {
class ACE_packingBandageItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_PACKING_BANDAGE_DISPLAY;
@ -1201,14 +1201,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(packingBandage)
class ACE_packingBandage
{
name = QGVAR(packingBandage);
name = "ACE_packingBandage";
count = 1;
};
};
};
class GVAR(elasticBandageItem): Item_Base_F {
class ACE_elasticBandageItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_BANDAGE_ELASTIC_DISPLAY;
@ -1216,14 +1216,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(elasticBandage)
class ACE_elasticBandage
{
name = QGVAR(elasticBandage);
name = "ACE_elasticBandage";
count = 1;
};
};
};
class GVAR(tourniquetItem): Item_Base_F {
class ACE_tourniquetItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_TOURNIQUET_DISPLAY;
@ -1231,14 +1231,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(tourniquet)
class ACE_tourniquet
{
name = QGVAR(tourniquet);
name = "ACE_tourniquet";
count = 1;
};
};
};
class GVAR(morphineItem): Item_Base_F {
class ACE_morphineItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_MORPHINE_DISPLAY;
@ -1246,14 +1246,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(morphine)
class ACE_morphine
{
name = QGVAR(morphine);
name = "ACE_morphine";
count = 1;
};
};
};
class GVAR(atropineItem): Item_Base_F {
class ACE_atropineItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_ATROPINE_DISPLAY;
@ -1261,14 +1261,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(atropine)
class ACE_atropine
{
name = QGVAR(atropine);
name = "ACE_atropine";
count = 1;
};
};
};
class GVAR(epinephrineItem): Item_Base_F {
class ACE_epinephrineItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_EPINEPHRINE_DISPLAY;
@ -1276,14 +1276,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(epinephrine)
class ACE_epinephrine
{
name = QGVAR(epinephrine);
name = "ACE_epinephrine";
count = 1;
};
};
};
class GVAR(plasmaIVItem): Item_Base_F {
class ACE_plasmaIVItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_PLASMA_IV;
@ -1291,15 +1291,15 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(plasmaIV)
class ACE_plasmaIV
{
name = QGVAR(plasmaIV);
name = "ACE_plasmaIV";
count = 1;
};
};
};
class GVAR(bloodIVItem): Item_Base_F {
class ACE_bloodIVItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_BLOOD_IV;
@ -1307,14 +1307,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(bloodIV)
class ACE_bloodIV
{
name = QGVAR(bloodIV);
name = "ACE_bloodIV";
count = 1;
};
};
};
class GVAR(salineIVItem): Item_Base_F {
class ACE_salineIVItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_SALINE_IV;
@ -1322,14 +1322,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(salineIV)
class ACE_salineIV
{
name = QGVAR(salineIV);
name = "ACE_salineIV";
count = 1;
};
};
};
class GVAR(quikClotItem): Item_Base_F {
class ACE_quikClotItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_QUIKCLOT_DISPLAY;
@ -1337,14 +1337,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(quikClot)
class ACE_quikClot
{
name = QGVAR(quikClot);
name = "ACE_quikclot";
count = 1;
};
};
};
class GVAR(personalAidKitItem): Item_Base_F {
class ACE_personalAidKitItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_AID_KIT_DISPLAY;
@ -1352,14 +1352,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(personalAidKit)
class ACE_personalAidKit
{
name = QGVAR(personalAidKit);
name = "ACE_personalAidKit";
count = 1;
};
};
};
class GVAR(surgicalKitItem): Item_Base_F {
class ACE_surgicalKitItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_SURGICALKIT_DISPLAY;
@ -1367,14 +1367,14 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(surgicalKit)
class ACE_surgicalKit
{
name = QGVAR(surgicalKit);
name = "ACE_surgicalKit";
count = 1;
};
};
};
class GVAR(bodyBagItem): Item_Base_F {
class ACE_bodyBagItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
displayName = $STR_ACE_MEDICAL_BODYBAG_DISPLAY;
@ -1382,100 +1382,100 @@ class CfgVehicles {
vehicleClass = "Items";
class TransportItems
{
class GVAR(bodyBag)
class ACE_bodyBag
{
name = QGVAR(bodyBag);
name = "ACE_bodyBag";
count = 1;
};
};
};
class NATO_Box_Base;
class GVAR(supplyCrate): NATO_Box_Base {
class ACE_medicalSupplyCrate: NATO_Box_Base {
scope = 2;
accuracy = 1000;
displayName = "Medical Supply Crate [ACE]";
displayName = "[ACE] Medical Supply Crate";
model = "\A3\weapons_F\AmmoBoxes\AmmoBox_F";
author = "Glowbal";
class TransportItems {
class GVAR(fieldDressing) {
name = QGVAR(fieldDressing);
class ACE_fieldDressing {
name = "ACE_fieldDressing";
count = 25;
};
class GVAR(packingBandage) {
name = QGVAR(packingBandage);
class ACE_packingBandage {
name = "ACE_packingBandage";
count = 25;
};
class GVAR(elasticBandage) {
name = QGVAR(elasticBandage);
class ACE_elasticBandage {
name = "ACE_elasticBandage";
count = 25;
};
class GVAR(tourniquet) {
name = QGVAR(tourniquet);
class ACE_tourniquet {
name = "ACE_tourniquet";
count = 15;
};
class GVAR(morphine) {
name = QGVAR(morphine);
class ACE_morphine {
name = "ACE_morphine";
count = 15;
};
class GVAR(atropine) {
name = QGVAR(atropine);
class ACE_atropine {
name = "ACE_atropine";
count = 15;
};
class GVAR(epinephrine) {
name = QGVAR(epinephrine);
class ACE_epinephrine {
name = "ACE_epinephrine";
count = 15;
};
class GVAR(plasmaIV) {
name = QGVAR(plasmaIV);
class ACE_plasmaIV {
name = "ACE_plasmaIV";
count = 7;
};
class GVAR(plasmaIV_500) {
name = QGVAR(plasmaIV_500);
class ACE_plasmaIV_500 {
name = "ACE_plasmaIV_500";
count = 7;
};
class GVAR(plasmaIV_250) {
name = QGVAR(plasmaIV_250);
class ACE_plasmaIV_250 {
name = "ACE_plasmaIV_250";
count = 7;
};
class GVAR(salineIV) {
name = QGVAR(salineIV);
class ACE_salineIV {
name = "ACE_salineIV";
count = 7;
};
class GVAR(salineIV_500) {
name = QGVAR(salineIV_500);
class ACE_salineIV_500 {
name = "ACE_salineIV_500";
count = 7;
};
class GVAR(salineIV_250) {
name = QGVAR(salineIV_250);
class ACE_salineIV_250 {
name = "ACE_salineIV_250";
count = 7;
};
class GVAR(bloodIV) {
name = QGVAR(bloodIV);
class ACE_bloodIV {
name = "ACE_bloodIV";
count = 7;
};
class GVAR(bloodIV_500) {
name = QGVAR(bloodIV_500);
class ACE_bloodIV_500 {
name = "ACE_bloodIV_500";
count = 7;
};
class GVAR(bloodIV_250) {
name = QGVAR(bloodIV_250);
class ACE_bloodIV_250 {
name = "ACE_bloodIV_250";
count = 7;
};
class GVAR(quikClot) {
name = QGVAR(quikClot);
class ACE_quikClot {
name = "ACE_quikclot";
count = 20;
};
class GVAR(personalAidKit) {
name = QGVAR(personalAidKit);
class ACE_personalAidKit {
name = "ACE_personalAidKit";
count = 3;
};
class GVAR(surgicalKit) {
name = QGVAR(surgicalKit);
class ACE_surgicalKit {
name = "ACE_surgicalKit";
count = 2;
};
class GVAR(bodyBag) {
name = QGVAR(bodyBag);
class ACE_bodyBag {
name = "ACE_bodyBag";
count = 5;
};
};

View File

@ -4,7 +4,7 @@ class CfgWeapons {
class InventoryItem_Base_F;
class InventoryFirstAidKitItem_Base_F;
class MedikitItem;
// ITEMS
class FirstAidKit: ItemCore {
type = 0;
@ -23,7 +23,7 @@ class CfgWeapons {
// @todo localize
class ACE_ItemCore;
class GVAR(fieldDressing): ACE_ItemCore {
class ACE_fieldDressing: ACE_ItemCore {
scope = 2;
model = "\A3\Structures_F_EPA\Items\Medical\Bandage_F.p3d";
picture = QUOTE(PATHTOF(ui\items\fieldDressing.paa));
@ -35,7 +35,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(packingBandage): ItemCore {
class ACE_packingBandage: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -50,7 +50,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(elasticBandage): ItemCore {
class ACE_elasticBandage: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -65,7 +65,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(tourniquet): ItemCore {
class ACE_tourniquet: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -80,7 +80,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(morphine): ItemCore {
class ACE_morphine: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -95,7 +95,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(atropine): ItemCore {
class ACE_atropine: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -110,7 +110,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(epinephrine): ItemCore {
class ACE_epinephrine: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -125,7 +125,7 @@ class CfgWeapons {
type=201;
};
};
class GVAR(plasmaIV): ItemCore {
class ACE_plasmaIV: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -138,21 +138,21 @@ class CfgWeapons {
type = 201;
};
};
class GVAR(plasmaIV_500): GVAR(plasmaIV) {
class ACE_plasmaIV_500: ACE_plasmaIV) {
displayName = $STR_ACE_MEDICAL_PLASMA_IV_500;
class ItemInfo: InventoryItem_Base_F {
mass = 5;
type = 201;
};
};
class GVAR(plasmaIV_250): GVAR(plasmaIV) {
class ACE_plasmaIV_250: ACE_plasmaIV) {
displayName = $STR_ACE_MEDICAL_PLASMA_IV_250;
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
type = 201;
};
};
class GVAR(bloodIV): ItemCore {
class ACE_bloodIV: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -166,21 +166,21 @@ class CfgWeapons {
type = 201;
};
};
class GVAR(bloodIV_500): GVAR(bloodIV) {
class ACE_bloodIV_500: ACE_bloodIV) {
displayName = $STR_ACE_MEDICAL_BLOOD_IV_500;
class ItemInfo: InventoryItem_Base_F {
mass = 5;
type = 201;
};
};
class GVAR(bloodIV_250): GVAR(bloodIV) {
class ACE_bloodIV_250: ACE_bloodIV) {
displayName = $STR_ACE_MEDICAL_BLOOD_IV_250;
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
type = 201;
};
};
class GVAR(salineIV): ItemCore {
class ACE_salineIV: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -193,21 +193,21 @@ class CfgWeapons {
type = 201;
};
};
class GVAR(salineIV_500): GVAR(salineIV) {
class ACE_salineIV_500: ACE_salineIV) {
displayName = $STR_ACE_MEDICAL_SALINE_IV_500;
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
type = 201;
};
};
class GVAR(salineIV_250): GVAR(salineIV) {
class ACE_salineIV_250: ACE_salineIV) {
displayName = $STR_ACE_MEDICAL_SALINE_IV_250;
class ItemInfo: InventoryItem_Base_F {
mass = 2.5;
type = 201;
};
};
class GVAR(quikclot): ItemCore {
class ACE_quikclot: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -221,7 +221,7 @@ class CfgWeapons {
type = 201;
};
};
class GVAR(personalAidKit): ItemCore {
class ACE_personalAidKit: ItemCore {
scope = 2;
value = 1;
count = 1;
@ -236,7 +236,7 @@ class CfgWeapons {
type = 201;
};
};
class GVAR(surgicalKit): ItemCore {
class ACE_surgicalKit: ItemCore {
scope=2;
displayName= $STR_ACE_MEDICAL_SURGICALKIT_DISPLAY;
model = QUOTE(PATHTOF(data\surgical_kit.p3d));
@ -248,7 +248,7 @@ class CfgWeapons {
type = 201;
};
};
class GVAR(bodyBag): ItemCore {
class ACE_bodyBag: ItemCore {
scope=2;
displayName= $STR_ACE_MEDICAL_BODYBAG_DISPLAY;
model = QUOTE(PATHTOF(data\bodybagItem.p3d));

View File

@ -48,6 +48,7 @@ PREP(init);
PREP(isInMedicalFacility);
PREP(isMedic);
PREP(isMedicalVehicle);
PREP(itemCheck);
PREP(onMedicationUsage);
PREP(onWoundUpdateRequest);
PREP(onPropagateWound);

View File

@ -2,8 +2,8 @@
class CfgPatches {
class ADDON {
units[] = {QGVAR(fieldDressingItem), QGVAR(packingBandageItem), QGVAR(elasticBandageItem), QGVAR(tourniquetItem), QGVAR(morphineItem), QGVAR(atropineItem), QGVAR(epinephrineItem), QGVAR(plasmaIVItem), QGVAR(bloodIVItem), QGVAR(salineIVItem), QGVAR(quikclotItem), QGVAR(personalAidKitItem), QGVAR(surgicalKitItem), QGVAR(bodyBagItem)};
weapons[] = {QGVAR(fieldDressing), QGVAR(packingBandage), QGVAR(elasticBandage), QGVAR(tourniquet), QGVAR(morphine), QGVAR(atropine), QGVAR(epinephrine), QGVAR(plasmaIV), QGVAR(plasmaIV_500), QGVAR(plasmaIV_250), QGVAR(bloodIV), QGVAR(bloodIV_500), QGVAR(bloodIV_250), QGVAR(salineIV), QGVAR(salineIV_500), QGVAR(salineIV_250), QGVAR(quikclot), QGVAR(personalAidKit), QGVAR(surgicalKit), QGVAR(bodyBag)};
units[] = {"ACE_medicalSupplyCrate", "ACE_fieldDressingItem", "ACE_packingBandageItem", "ACE_elasticBandageItem", "ACE_tourniquetItem", "ACE_morphineItem", "ACE_atropineItem", "ACE_epinephrineItem", "ACE_plasmaIVItem", "ACE_bloodIVItem", "ACE_salineIVItem", "ACE_quikclotItem", "ACE_personalAidKitItem", "ACE_surgicalKitItem", "ACE_bodyBagItem"};
weapons[] = {"ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_tourniquet", "ACE_morphine", "ACE_atropine", "ACE_epinephrine", "ACE_plasmaIV", "ACE_plasmaIV_500", "ACE_plasmaIV_250", "ACE_bloodIV", "ACE_bloodIV_500", "ACE_bloodIV_250", "ACE_salineIV", "ACE_salineIV_500", "ACE_salineIV_250", "ACE_quikclot", "ACE_personalAidKit", "ACE_surgicalKit", "ACE_bodyBag"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {ace_common, ace_interaction};
author[] = {"Glowbal", "KoffienFlummi"};

View File

@ -36,6 +36,6 @@ _tourniquets set[_part, 0];
_target setvariable [QGVAR(tourniquets), _tourniquets, true];
// Adding the tourniquet item to the caller
_caller addItem QGVAR(tourniquet);
_caller addItem "ACE_tourniquet";
// "AinvPknlMstpSlayWrflDnon_medic

View File

@ -74,3 +74,8 @@ _logs = _unit getvariable [QGVAR(allLogs), []];
_unit setvariable [_x, nil, true];
} foreach _logs;
_unit setvariable [QGVAR(allLogs), [], true];
// items
[{
_this call FUNC(itemCheck);
}, [_unit], 0.5, 0.1] call EFUNC(common,waitAndExecute);

View File

@ -0,0 +1,51 @@
/*
* Author: KoffeinFlummi
* Replaces vanilla items with ACE ones.
*
* Arguments:
* 0: The unit <OBJECT>
*
* ReturnValue:
* nil
*
* Public: Yes
*/
#include "script_component.hpp"
private ["_unit"];
_unit = _this select 0;
while {({_x == "FirstAidKit"} count items _unit) > 0} do {
_unit removeItem "FirstAidKit";
if (GVAR(level) >= 2) then {
_unit addItem "ACE_fieldDressing";
_unit addItem "ACE_packingBandage";
_unit addItem "ACE_morphine";
_unit addItem "ACE_tourniquet";
} else {
_unit addItem "ACE_fieldDressing";
_unit addItem "ACE_fieldDressing";
_unit addItem "ACE_morphine";
};
};
while {({_x == "Medikit"} count items _unit) > 0} do {
_unit removeItem "Medikit";
if (GVAR(level) >= 2) then {
_unit addItemToBackpack "ACE_fieldDressing";
_unit addItemToBackpack "ACE_packingBandage";
_unit addItemToBackpack "ACE_packingBandage";
_unit addItemToBackpack "ACE_epinephrine";
_unit addItemToBackpack "ACE_morphine";
_unit addItemToBackpack "ACE_salineIV_250";
_unit addItemToBackpack "ACE_tourniquet";
} else {
_unit addItemToBackpack "ACE_epinephrine";
_unit addItemToBackpack "ACE_epinephrine";
_unit addItemToBackpack "ACE_epinephrine";
_unit addItemToBackpack "ACE_epinephrine";
_unit addItemToBackpack "ACE_bloodIV";
_unit addItemToBackpack "ACE_bloodIV";
};
};