From 206c3b1945f6732738756c223f328bb50e0d84bf Mon Sep 17 00:00:00 2001 From: Maxime Cloutier Date: Wed, 29 Mar 2023 11:08:33 -0400 Subject: [PATCH 1/2] Ajout: Bodybags to packs/vics --- loadouts/mk2/backpack_basic.sqf | 1 + loadouts/mk2/backpack_med.sqf | 47 ++++++++--------------- vehicles/cgqc_heli_heavy.sqf | 5 +++ vehicles/cgqc_heli_light.sqf | 5 +++ vehicles/cgqc_heli_medium.sqf | 5 +++ vehicles/cgqc_vic_loadout_command.cpp | 5 +++ vehicles/cgqc_vic_loadout_ifv.cpp | 5 +++ vehicles/cgqc_vic_loadout_medium.cpp | 36 +++++++++-------- vehicles/cgqc_vic_loadout_quadExt.cpp | 5 +++ vehicles/cgqc_vic_loadout_quadExt_mk6.cpp | 5 +++ vehicles/cgqc_vic_loadout_small.cpp | 5 +++ 11 files changed, 77 insertions(+), 47 deletions(-) diff --git a/loadouts/mk2/backpack_basic.sqf b/loadouts/mk2/backpack_basic.sqf index 4662291..f4c929b 100644 --- a/loadouts/mk2/backpack_basic.sqf +++ b/loadouts/mk2/backpack_basic.sqf @@ -8,6 +8,7 @@ for "_i" from 1 to 10 do { }; player addItemToBackpack "ACE_salineIV_500"; player addItemToBackpack "ACE_salineIV_500"; +player addItemToBackpack "ACE_bodyBag"; // === Items ================================ player addItemToBackpack "ACE_EntrenchingTool"; player addItemToBackpack "WBK_HeadLampItem"; diff --git a/loadouts/mk2/backpack_med.sqf b/loadouts/mk2/backpack_med.sqf index c840036..95a2f89 100644 --- a/loadouts/mk2/backpack_med.sqf +++ b/loadouts/mk2/backpack_med.sqf @@ -1,36 +1,21 @@ // Basic basic loadout (Pretty universal) // === Meds ================================ -for "_i" from 1 to 50 do { - player addItemToBackpack "ACE_fieldDressing"; -}; -for "_i" from 1 to 5 do { - player addItemToBackpack "ACE_salineIV"; -}; -for "_i" from 1 to 5 do { - player addItemToBackpack "ACE_salineIV_500"; -}; -for "_i" from 1 to 5 do { - player addItemToBackpack "ACE_salineIV_250"; -}; -for "_i" from 1 to 20 do { - player addItemToBackpack "FF_Painkiller"; -}; -for "_i" from 1 to 20 do { - player addItemToBackpack "ACE_morphine"; -}; -for "_i" from 1 to 20 do { - player addItemToBackpack "ACE_epinephrine"; -}; -for "_i" from 1 to 4 do { - player addItemToBackpack "ACE_splint"; -}; -for "_i" from 1 to 4 do { - player addItemToBackpack "ACE_tourniquet"; -}; -for "_i" from 1 to 3 do { - player addItemToBackpack "SmokeShellPurple"; -}; +for "_i" from 1 to 50 do {player addItemToBackpack "ACE_fieldDressing";}; +for "_i" from 1 to 5 do {player addItemToBackpack "ACE_salineIV";}; +for "_i" from 1 to 5 do {player addItemToBackpack "ACE_salineIV_500";}; +for "_i" from 1 to 5 do {player addItemToBackpack "ACE_salineIV_250";}; +for "_i" from 1 to 20 do {player addItemToBackpack "FF_Painkiller";}; +for "_i" from 1 to 20 do {player addItemToBackpack "ACE_morphine";}; +for "_i" from 1 to 20 do {player addItemToBackpack "ACE_epinephrine";}; +player addItemToBackpack "ACE_adenosine"; +player addItemToBackpack "ACE_adenosine"; +for "_i" from 1 to 4 do {player addItemToBackpack "ACE_splint";}; +for "_i" from 1 to 4 do {player addItemToBackpack "ACE_tourniquet";}; +for "_i" from 1 to 3 do {player addItemToBackpack "SmokeShellPurple";}; player addItemToBackpack "FSGm_ItemMedicBag"; player addItemToBackpack "ACE_SpraypaintRed"; player addItemToBackpack "ACE_personalAidKit"; -player addItemToBackpack "KNB_PanelRed"; \ No newline at end of file +player addItemToBackpack "KNB_PanelRed"; +for "_i" from 1 to 4 do { + player addItemToBackpack "ACE_bodyBag"; +}; \ No newline at end of file diff --git a/vehicles/cgqc_heli_heavy.sqf b/vehicles/cgqc_heli_heavy.sqf index 87d1ccf..0e9e5e7 100644 --- a/vehicles/cgqc_heli_heavy.sqf +++ b/vehicles/cgqc_heli_heavy.sqf @@ -130,6 +130,11 @@ class TransportItems count = 10; name = "ACE_tourniquet"; }; + class _xx_ACE_bodyBag + { + count = 5; + name = "ACE_bodyBag"; + }; // items ------------------------------------------------ class _xx_ACE_EarPlugs diff --git a/vehicles/cgqc_heli_light.sqf b/vehicles/cgqc_heli_light.sqf index bdf7f45..215060f 100644 --- a/vehicles/cgqc_heli_light.sqf +++ b/vehicles/cgqc_heli_light.sqf @@ -129,6 +129,11 @@ class TransportItems count = 5; name = "ACE_tourniquet"; }; + class _xx_ACE_bodyBag + { + count = 2; + name = "ACE_bodyBag"; + }; // items ------------------------------------------------ class _xx_ACE_EarPlugs diff --git a/vehicles/cgqc_heli_medium.sqf b/vehicles/cgqc_heli_medium.sqf index ec1d74a..e4f5dbc 100644 --- a/vehicles/cgqc_heli_medium.sqf +++ b/vehicles/cgqc_heli_medium.sqf @@ -130,6 +130,11 @@ class TransportItems count = 5; name = "ACE_tourniquet"; }; + class _xx_ACE_bodyBag + { + count = 5; + name = "ACE_bodyBag"; + }; // items ------------------------------------------------ class _xx_ACE_EarPlugs diff --git a/vehicles/cgqc_vic_loadout_command.cpp b/vehicles/cgqc_vic_loadout_command.cpp index 5c4b00b..cefeaaf 100644 --- a/vehicles/cgqc_vic_loadout_command.cpp +++ b/vehicles/cgqc_vic_loadout_command.cpp @@ -90,6 +90,11 @@ class TransportItems{ count = 2; name = "ACE_tourniquet"; }; + class _xx_ACE_bodyBag + { + count = 2; + name = "ACE_bodyBag"; + }; class _xx_FSGm_ItemMedicBag { count = 1; diff --git a/vehicles/cgqc_vic_loadout_ifv.cpp b/vehicles/cgqc_vic_loadout_ifv.cpp index 722e4ce..f145c06 100644 --- a/vehicles/cgqc_vic_loadout_ifv.cpp +++ b/vehicles/cgqc_vic_loadout_ifv.cpp @@ -137,6 +137,11 @@ class TransportItems{ count = 2; name = "ACE_tourniquet"; }; + class _xx_ACE_bodyBag + { + count = 5; + name = "ACE_bodyBag"; + }; class _xx_FSGm_ItemMedicBag { count = 1; diff --git a/vehicles/cgqc_vic_loadout_medium.cpp b/vehicles/cgqc_vic_loadout_medium.cpp index f802bb1..5481677 100644 --- a/vehicles/cgqc_vic_loadout_medium.cpp +++ b/vehicles/cgqc_vic_loadout_medium.cpp @@ -34,6 +34,11 @@ class TransportItems{ count = 2; name = "ACE_tourniquet"; }; + class _xx_ACE_bodyBag + { + count = 5; + name = "ACE_bodyBag"; + }; class _xx_ACRE_PRC152 { count = 1; @@ -44,22 +49,6 @@ class TransportItems{ count = 1; name = "ACRE_PRC343"; }; - class _xx_ACE_40mm_Flare_white - { - count = 5; - magazine = "ACE_40mm_Flare_white"; - }; - class _xx_UGL_FlareRed_F - { - count = 5; - magazine = "UGL_FlareRed_F"; - }; - class _xx_ACE_40mm_Flare_ir - { - count = 5; - magazine = "ACE_40mm_Flare_ir"; - }; - }; class TransportWeapons{ class _xx_launch_NLAW_F @@ -117,6 +106,21 @@ class TransportMagazines{ count = 2; magazine = "ACE_M84"; }; + class _xx_ACE_40mm_Flare_white + { + count = 5; + magazine = "ACE_40mm_Flare_white"; + }; + class _xx_UGL_FlareRed_F + { + count = 5; + magazine = "UGL_FlareRed_F"; + }; + class _xx_ACE_40mm_Flare_ir + { + count = 5; + magazine = "ACE_40mm_Flare_ir"; + }; }; diff --git a/vehicles/cgqc_vic_loadout_quadExt.cpp b/vehicles/cgqc_vic_loadout_quadExt.cpp index 55f5ef0..c6c70ff 100644 --- a/vehicles/cgqc_vic_loadout_quadExt.cpp +++ b/vehicles/cgqc_vic_loadout_quadExt.cpp @@ -15,6 +15,11 @@ class TransportItems count = 5; name = "FF_Painkiller"; }; + class _xx_ACE_bodyBag + { + count = 1; + name = "ACE_bodyBag"; + }; class _xx_ACRE_PRC152 { count = 1; diff --git a/vehicles/cgqc_vic_loadout_quadExt_mk6.cpp b/vehicles/cgqc_vic_loadout_quadExt_mk6.cpp index 0a3231f..8e17adf 100644 --- a/vehicles/cgqc_vic_loadout_quadExt_mk6.cpp +++ b/vehicles/cgqc_vic_loadout_quadExt_mk6.cpp @@ -15,6 +15,11 @@ class TransportItems count = 5; name = "FF_Painkiller"; }; + class _xx_ACE_bodyBag + { + count = 1; + name = "ACE_bodyBag"; + }; class _xx_ACRE_PRC152 { count = 1; diff --git a/vehicles/cgqc_vic_loadout_small.cpp b/vehicles/cgqc_vic_loadout_small.cpp index 87c43f5..84b6c79 100644 --- a/vehicles/cgqc_vic_loadout_small.cpp +++ b/vehicles/cgqc_vic_loadout_small.cpp @@ -9,6 +9,11 @@ class TransportItems{ count = 5; name = "FF_Painkiller"; }; + class _xx_ACE_bodyBag + { + count = 1; + name = "ACE_bodyBag"; + }; class _xx_ACRE_PRC152 { count = 1; From 7e651574c9d63b637354c86eafa88fd0d69d0ad4 Mon Sep 17 00:00:00 2001 From: Maxime Cloutier Date: Wed, 29 Mar 2023 12:28:12 -0400 Subject: [PATCH 2/2] Ajout: Lighter medbag --- cfg_misc.cpp | 7 +++++++ config.cpp | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 cfg_misc.cpp diff --git a/cfg_misc.cpp b/cfg_misc.cpp new file mode 100644 index 0000000..635778f --- /dev/null +++ b/cfg_misc.cpp @@ -0,0 +1,7 @@ +class FSGm_ItemCore; +class InventoryItem_Base_F; +class FSGm_ItemMedicBag: FSGm_ItemCore { + class ItemInfo: InventoryItem_Base_F { + mass = 15; + }; +}; \ No newline at end of file diff --git a/config.cpp b/config.cpp index b072e1c..f16129c 100644 --- a/config.cpp +++ b/config.cpp @@ -18,8 +18,10 @@ class cfgWeapons #include "cfg_guns.cpp" // Custom accessories --------------------------------------- #include "cfg_acc.hpp" - // Mortar stuff + // Mortar stuff ------------------------------------------- #include "cfg_mortar.cpp" + // Items ------------------------------------------------- + #include "cfg_misc.cpp" }; class cfgGlasses {