mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge branch 'master' into medical-basic
This commit is contained in:
commit
82f73117f4
@ -154,15 +154,10 @@ class CfgVehicles {
|
||||
MACRO_LOADUNLOADCAPTIVE
|
||||
};
|
||||
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class Box_NATO_Support_F;
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_CableTie,12)
|
||||
MACRO_ADDITEM(ACE_CableTie,12);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,8 +1,3 @@
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
class Man;
|
||||
|
||||
@ -142,47 +137,47 @@ class CfgVehicles {
|
||||
|
||||
class Box_NATO_AmmoOrd_F: NATO_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_Clacker,12)
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6)
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12)
|
||||
MACRO_ADDITEM(ACE_Clacker,12);
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6);
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_East_AmmoOrd_F: EAST_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_Clacker,12)
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6)
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12)
|
||||
MACRO_ADDITEM(ACE_Clacker,12);
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6);
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_IND_AmmoOrd_F: IND_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_Clacker,12)
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6)
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12)
|
||||
MACRO_ADDITEM(ACE_Deadmanswitch,2)
|
||||
MACRO_ADDITEM(ACE_Cellphone,3)
|
||||
MACRO_ADDITEM(ACE_Clacker,12);
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6);
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12);
|
||||
MACRO_ADDITEM(ACE_Deadmanswitch,2);
|
||||
MACRO_ADDITEM(ACE_Cellphone,3);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_FIA_Ammo_F: FIA_Box_Base_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_Clacker,2)
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,2)
|
||||
MACRO_ADDITEM(ACE_DefusalKit,2)
|
||||
MACRO_ADDITEM(ACE_Deadmanswitch,1)
|
||||
MACRO_ADDITEM(ACE_Cellphone,2)
|
||||
MACRO_ADDITEM(ACE_Clacker,2);
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,2);
|
||||
MACRO_ADDITEM(ACE_DefusalKit,2);
|
||||
MACRO_ADDITEM(ACE_Deadmanswitch,1);
|
||||
MACRO_ADDITEM(ACE_Cellphone,2);
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_Clacker,12)
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6)
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12)
|
||||
MACRO_ADDITEM(ACE_Deadmanswitch,6)
|
||||
MACRO_ADDITEM(ACE_Cellphone,10)
|
||||
MACRO_ADDITEM(ACE_Clacker,12);
|
||||
MACRO_ADDITEM(ACE_M26_Clacker,6);
|
||||
MACRO_ADDITEM(ACE_DefusalKit,12);
|
||||
MACRO_ADDITEM(ACE_Deadmanswitch,6);
|
||||
MACRO_ADDITEM(ACE_Cellphone,10);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,8 +1,3 @@
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
class NATO_Box_Base;
|
||||
class EAST_Box_Base;
|
||||
@ -11,35 +6,35 @@ class CfgVehicles {
|
||||
|
||||
class Box_NATO_Grenades_F: NATO_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_HandFlare_White,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Green,12)
|
||||
MACRO_ADDITEM(ACE_M84,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_White,12);
|
||||
MACRO_ADDITEM(ACE_HandFlare_Green,12);
|
||||
MACRO_ADDITEM(ACE_M84,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_East_Grenades_F: EAST_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_HandFlare_Yellow,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Red,12)
|
||||
MACRO_ADDITEM(ACE_M84,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Yellow,12);
|
||||
MACRO_ADDITEM(ACE_HandFlare_Red,12);
|
||||
MACRO_ADDITEM(ACE_M84,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_IND_Grenades_F: IND_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_HandFlare_Yellow,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Green,12)
|
||||
MACRO_ADDITEM(ACE_M84,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Yellow,12);
|
||||
MACRO_ADDITEM(ACE_HandFlare_Green,12);
|
||||
MACRO_ADDITEM(ACE_M84,12);
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_HandFlare_White,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Red,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Green,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_Yellow,12)
|
||||
MACRO_ADDITEM(ACE_M84,12)
|
||||
MACRO_ADDITEM(ACE_HandFlare_White,12);
|
||||
MACRO_ADDITEM(ACE_HandFlare_Red,12);
|
||||
MACRO_ADDITEM(ACE_HandFlare_Green,12);
|
||||
MACRO_ADDITEM(ACE_HandFlare_Yellow,12);
|
||||
MACRO_ADDITEM(ACE_M84,12);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,9 +1,3 @@
|
||||
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
class Man;
|
||||
class CAManBase: Man {
|
||||
@ -41,61 +35,61 @@ class CfgVehicles {
|
||||
|
||||
class Box_NATO_Support_F: NATO_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class B_supplyCrate_F: ReammoBox_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_East_Support_F: EAST_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class O_supplyCrate_F: B_supplyCrate_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_IND_Support_F: IND_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_FIA_Support_F: FIA_Box_Base_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class I_supplyCrate_F: B_supplyCrate_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class IG_supplyCrate_F: ReammoBox_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class C_supplyCrate_F: ReammoBox_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_EarBuds,12)
|
||||
MACRO_ADDITEM(ACE_EarBuds,12);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -27,6 +27,13 @@
|
||||
|
||||
EXPLODE_9_PVT(_this,_objectType,_typeNum,_fullPath,_displayName,_icon,_position,_statement,_condition,_distance);
|
||||
|
||||
// Ensure the config menu was compiled first
|
||||
if (_typeNum == 0) then {
|
||||
[_objectType] call FUNC(compileMenu);
|
||||
} else {
|
||||
[_objectType] call FUNC(compileMenuSelfAction);
|
||||
};
|
||||
|
||||
private ["_varName","_actions","_params","_entry", "_parentLevel", "_foundParentLevel", "_fnc_findFolder"];
|
||||
|
||||
_varName = format [[QGVAR(Act_%1), QGVAR(SelfAct_%1)] select _typeNum, _objectType];
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Compile the action menu from config for an object's class
|
||||
*
|
||||
* Argument:
|
||||
* 0: Object <OBJECT>
|
||||
* 0: Object or class name <OBJECT> or <STRING>
|
||||
*
|
||||
* Return value:
|
||||
* None
|
||||
@ -12,10 +12,13 @@
|
||||
*/
|
||||
#include "script_component.hpp";
|
||||
|
||||
EXPLODE_1_PVT(_this,_object);
|
||||
EXPLODE_1_PVT(_this,_target);
|
||||
|
||||
private ["_objectType","_actionsVarName"];
|
||||
_objectType = typeOf _object;
|
||||
_objectType = _target;
|
||||
if (typeName _target == "OBJECT") then {
|
||||
_objectType = typeOf _target;
|
||||
};
|
||||
_actionsVarName = format [QGVAR(Act_%1), _objectType];
|
||||
|
||||
// Exit if the action menu is already compiled for this class
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Compile the self action menu from config for an object's class
|
||||
*
|
||||
* Argument:
|
||||
* 0: Object <OBJECT>
|
||||
* 0: Object or class name <OBJECT> or <STRING>
|
||||
*
|
||||
* Return value:
|
||||
* None
|
||||
@ -12,10 +12,13 @@
|
||||
*/
|
||||
#include "script_component.hpp";
|
||||
|
||||
EXPLODE_1_PVT(_this,_object);
|
||||
EXPLODE_1_PVT(_this,_target);
|
||||
|
||||
private ["_objectType","_actionsVarName"];
|
||||
_objectType = typeOf _object;
|
||||
_objectType = _target;
|
||||
if (typeName _target == "OBJECT") then {
|
||||
_objectType = typeOf _target;
|
||||
};
|
||||
_actionsVarName = format [QGVAR(SelfAct_%1), _objectType];
|
||||
|
||||
// Exit if the action menu is already compiled for this class
|
||||
|
@ -21,7 +21,7 @@ if(GVAR(actionSelected)) then {
|
||||
|
||||
if (GVAR(keyDown)) then {
|
||||
GVAR(keyDown) = false;
|
||||
["interactMenuClosed", [0]] call FUNC(localEvent);
|
||||
["interactMenuClosed", [0]] call EFUNC(common,localEvent);
|
||||
};
|
||||
|
||||
GVAR(expanded) = false;
|
||||
|
@ -25,7 +25,7 @@ if(GVAR(actionSelected)) then {
|
||||
|
||||
if (GVAR(keyDownSelfAction)) then {
|
||||
GVAR(keyDownSelfAction) = false;
|
||||
["interactMenuClosed", [1]] call FUNC(localEvent);
|
||||
["interactMenuClosed", [1]] call EFUNC(common,localEvent);
|
||||
};
|
||||
|
||||
GVAR(expanded) = false;
|
||||
|
@ -1,8 +1,3 @@
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
|
||||
class Module_F;
|
||||
|
@ -1,9 +1,3 @@
|
||||
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
}
|
||||
|
||||
class CfgVehicles {
|
||||
class Man;
|
||||
class CAManBase: Man {
|
||||
|
@ -1,9 +1,3 @@
|
||||
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
}
|
||||
|
||||
class CfgVehicles {
|
||||
class NATO_Box_Base;
|
||||
class Box_NATO_Support_F: NATO_Box_Base {
|
||||
|
@ -1,8 +1,3 @@
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
class Man;
|
||||
class CAManBase: Man {
|
||||
@ -103,31 +98,31 @@ class CfgVehicles {
|
||||
|
||||
class Box_NATO_Support_F: NATO_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_MapTools,12)
|
||||
MACRO_ADDITEM(ACE_MapTools,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_East_Support_F: EAST_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_MapTools,12)
|
||||
MACRO_ADDITEM(ACE_MapTools,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_IND_Support_F: IND_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_MapTools,12)
|
||||
MACRO_ADDITEM(ACE_MapTools,12);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_FIA_Support_F: FIA_Box_Base_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_MapTools,12)
|
||||
MACRO_ADDITEM(ACE_MapTools,12);
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_MapTools,12)
|
||||
MACRO_ADDITEM(ACE_MapTools,12);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -192,7 +192,7 @@ class ACE_Medical_Actions {
|
||||
treatmentLocations[] = {"All"};
|
||||
requiredMedic = 0;
|
||||
treatmentTime = 7.5;
|
||||
items[] = {QVAR(bodyBag)};
|
||||
items[] = {QGVAR(bodyBag)};
|
||||
condition = "!alive (_this select 1);";
|
||||
callbackSuccess = QUOTE(DFUNC(actionPlaceInBodyBag));
|
||||
callbackFailure = "";
|
||||
|
@ -227,7 +227,7 @@ class CfgWeapons {
|
||||
count = 1;
|
||||
type = 16;
|
||||
displayName = $STR_ACE_MEDICAL_AID_KIT_DISPLAY;
|
||||
//picture = QUOTE(PATHTOF(ui\items\personal_aid_kit.paa));
|
||||
picture = QUOTE(PATHTOF(ui\items\personal_aid_kit.paa));
|
||||
//model = QUOTE(PATHTOF(equipment\Personal-aidkits\MTP.p3d));
|
||||
descriptionShort = $STR_ACE_MEDICAL_AID_KIT_DESC_SHORT;
|
||||
descriptionUse = $STR_ACE_MEDICAL_AID_KIT_DESC_USE;
|
||||
@ -240,7 +240,7 @@ class CfgWeapons {
|
||||
scope=2;
|
||||
displayName= $STR_ACE_MEDICAL_SURGICALKIT_DISPLAY;
|
||||
model = QUOTE(PATHTOF(data\surgical_kit.p3d));
|
||||
//picture = QUOTE(PATHTOF(data\surgical_kit.paa));
|
||||
picture = QUOTE(PATHTOF(ui\items\surgicalKit.paa));
|
||||
descriptionShort = $STR_ACE_MEDICAL_SURGICALKIT_DESC_SHORT;
|
||||
descriptionUse = $STR_ACE_MEDICAL_SURGICALKIT_DESC_USE;
|
||||
class ItemInfo: InventoryItem_Base_F {
|
||||
|
BIN
addons/medical/data/Epipen_co.paa
Normal file
BIN
addons/medical/data/Epipen_co.paa
Normal file
Binary file not shown.
@ -8,7 +8,7 @@ PixelShaderID="Super";
|
||||
VertexShaderID="Super";
|
||||
class Stage1
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\data\bodybag_nohq.paa";
|
||||
texture="z\ace\addons\medical\data\bodybag_nohq.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
@ -80,7 +80,7 @@ class Stage6
|
||||
};
|
||||
class Stage7
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\data\env_co.paa";
|
||||
texture="z\ace\addons\medical\data\env_co.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ PixelShaderID="NormalMapSpecularDIMap";
|
||||
VertexShaderID="NormalMap";
|
||||
class Stage1
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\data\bodybagItem_nohq.paa";
|
||||
texture="z\ace\addons\medical\data\bodybagItem_nohq.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
@ -20,7 +20,7 @@ class Stage1
|
||||
};
|
||||
class Stage2
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\data\bodybagItem_smdi.paa";
|
||||
texture="z\ace\addons\medical\data\bodybagItem_smdi.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
|
BIN
addons/medical/data/env_co.paa
Normal file
BIN
addons/medical/data/env_co.paa
Normal file
Binary file not shown.
@ -8,7 +8,7 @@ PixelShaderID="NormalMapSpecularDIMap";
|
||||
VertexShaderID="NormalMap";
|
||||
class Stage1
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\bandages\packingbandage_nohq.paa";
|
||||
texture="z\ace\addons\medical\data\packingbandage_nohq.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
@ -20,7 +20,7 @@ class Stage1
|
||||
};
|
||||
class Stage2
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\bandages\packingbandage_smdi.paa";
|
||||
texture="z\ace\addons\medical\data\packingbandage_smdi.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
|
BIN
addons/medical/data/packingbandage_nohq.paa
Normal file
BIN
addons/medical/data/packingbandage_nohq.paa
Normal file
Binary file not shown.
BIN
addons/medical/data/packingbandage_smdi.paa
Normal file
BIN
addons/medical/data/packingbandage_smdi.paa
Normal file
Binary file not shown.
@ -8,7 +8,7 @@ PixelShaderID="Super";
|
||||
VertexShaderID="Super";
|
||||
class Stage1
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\data\surgical_kit_nohq.paa";
|
||||
texture="z\ace\addons\medical\data\surgical_kit_nohq.paa";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
@ -80,7 +80,7 @@ class Stage6
|
||||
};
|
||||
class Stage7
|
||||
{
|
||||
texture="z\ace\addons\medical\equipment\data\env_co.tga";
|
||||
texture="z\ace\addons\medical\data\env_co.tga";
|
||||
uvSource="tex";
|
||||
class uvTransform
|
||||
{
|
||||
|
BIN
addons/medical/data/tournequit_co.paa
Normal file
BIN
addons/medical/data/tournequit_co.paa
Normal file
Binary file not shown.
BIN
addons/medical/data/tourniquet.p3d
Normal file
BIN
addons/medical/data/tourniquet.p3d
Normal file
Binary file not shown.
@ -49,7 +49,7 @@ if (_show) then {
|
||||
if (((_target getvariable [QGVAR(tourniquets), [0,0,0,0,0,0]]) select GVAR(currentSelectedSelectionN)) > 0) then {
|
||||
_genericMessages pushback [localize "STR_ACE_MEDICAL_STATUS_TOURNIQUET_APPLIED", [0.5, 0.5, 0, 1]];
|
||||
};
|
||||
if (_target getvariable[QGVAR(inPain), false]) then {
|
||||
if (_target getvariable[QGVAR(hasPain), false]) then {
|
||||
_genericMessages pushback [localize "STR_ACE_MEDICAL_STATUS_PAIN", [1, 1, 1, 1]];
|
||||
};
|
||||
|
||||
|
BIN
addons/medical/ui/items/personal_aid_kit.paa
Normal file
BIN
addons/medical/ui/items/personal_aid_kit.paa
Normal file
Binary file not shown.
@ -4,19 +4,14 @@ class CfgVehicles {
|
||||
ACE_NightVision_blur = 0.055;
|
||||
};
|
||||
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class Box_NATO_Support_F;
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_NVG_Gen1,6)
|
||||
MACRO_ADDITEM(ACE_NVG_Gen2,6)
|
||||
//MACRO_ADDITEM(ACE_NVG_Gen3,6)
|
||||
MACRO_ADDITEM(ACE_NVG_Gen4,6)
|
||||
MACRO_ADDITEM(ACE_NVG_Wide,6)
|
||||
MACRO_ADDITEM(ACE_NVG_Gen1,6);
|
||||
MACRO_ADDITEM(ACE_NVG_Gen2,6);
|
||||
//MACRO_ADDITEM(ACE_NVG_Gen3,6);
|
||||
MACRO_ADDITEM(ACE_NVG_Gen4,6);
|
||||
MACRO_ADDITEM(ACE_NVG_Wide,6);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,8 +1,3 @@
|
||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
class Man;
|
||||
|
||||
@ -39,61 +34,61 @@ class CfgVehicles {
|
||||
|
||||
class Box_NATO_Support_F: NATO_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class B_supplyCrate_F: ReammoBox_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_East_Support_F: EAST_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class O_supplyCrate_F: B_supplyCrate_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_IND_Support_F: IND_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_FIA_Support_F: FIA_Box_Base_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class I_supplyCrate_F: B_supplyCrate_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class IG_supplyCrate_F: ReammoBox_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class C_supplyCrate_F: ReammoBox_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,2);
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,6)
|
||||
MACRO_ADDITEM(ACE_SpareBarrel,6);
|
||||
};
|
||||
};
|
||||
|
||||
|
34
addons/parachute/CfgVehicles.hpp
Normal file
34
addons/parachute/CfgVehicles.hpp
Normal file
@ -0,0 +1,34 @@
|
||||
class CfgVehicles {
|
||||
class Box_NATO_Support_F;
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
class _xx_ACE_Altimeter {
|
||||
name = "ACE_Altimeter";
|
||||
count = 6;
|
||||
};
|
||||
};
|
||||
class TransportBackpacks {
|
||||
class _xx_ACE_NonSteerableParachute {
|
||||
backpack = "ACE_NonSteerableParachute";
|
||||
count = 4;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class B_Parachute;
|
||||
class ACE_NonSteerableParachute: B_Parachute {
|
||||
author = "$STR_ACE_Common_ACETeam";
|
||||
scope = 2;
|
||||
displayName = "$STR_ACE_Parachute_NonSteerableParachute";
|
||||
//picture = "\A3\Characters_F\data\ui\icon_b_parachute_ca.paa"; // @todo
|
||||
//model = "\A3\Weapons_F\Ammoboxes\Bags\Backpack_Parachute"; // @todo
|
||||
// backpackSimulation = "ParachuteNonSteerable"; //ParachuteSteerable //Bis broke this in 1.40
|
||||
ParachuteClass = "NonSteerable_Parachute_F";
|
||||
maximumLoad = 0;
|
||||
mass = 100;
|
||||
};
|
||||
|
||||
class B_Soldier_05_f; class B_Pilot_F: B_Soldier_05_f {backpack = "ACE_NonSteerableParachute";};
|
||||
class I_Soldier_04_F; class I_pilot_F: I_Soldier_04_F {backpack = "ACE_NonSteerableParachute";};
|
||||
class O_helipilot_F; class O_Pilot_F: O_helipilot_F {backpack = "ACE_NonSteerableParachute";};
|
||||
};
|
9
addons/parachute/CfgWeapons.hpp
Normal file
9
addons/parachute/CfgWeapons.hpp
Normal file
@ -0,0 +1,9 @@
|
||||
class CfgWeapons {
|
||||
class ItemWatch;
|
||||
class ACE_Altimeter:ItemWatch {
|
||||
author = "$STR_ACE_Common_ACETeam";
|
||||
descriptionShort = "$STR_ACE_Parachute_AltimeterDescription";
|
||||
displayName = "$STR_ACE_Parachute_AltimeterDisplayName";
|
||||
picture = PATHTOF(UI\watch_altimeter.paa);
|
||||
};
|
||||
};
|
@ -13,49 +13,6 @@ class CfgPatches {
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "RscTitles.hpp"
|
||||
|
||||
class CfgWeapons {
|
||||
class ItemWatch;
|
||||
class ACE_Altimeter:ItemWatch {
|
||||
author = "$STR_ACE_Common_ACETeam";
|
||||
descriptionShort = "$STR_ACE_Parachute_AltimeterDescription";
|
||||
displayName = "$STR_ACE_Parachute_AltimeterDisplayName";
|
||||
picture = PATHTOF(UI\watch_altimeter.paa);
|
||||
};
|
||||
};
|
||||
|
||||
class CfgVehicles {
|
||||
class Box_NATO_Support_F;
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
class _xx_ACE_Altimeter {
|
||||
name = "ACE_Altimeter";
|
||||
count = 6;
|
||||
};
|
||||
};
|
||||
class TransportBackpacks {
|
||||
class _xx_ACE_NonSteerableParachute {
|
||||
backpack = "ACE_NonSteerableParachute";
|
||||
count = 4;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class B_Parachute;
|
||||
class ACE_NonSteerableParachute: B_Parachute {
|
||||
author = "$STR_ACE_Common_ACETeam";
|
||||
scope = 2;
|
||||
displayName = "$STR_ACE_Parachute_NonSteerableParachute";
|
||||
//picture = "\A3\Characters_F\data\ui\icon_b_parachute_ca.paa"; // @todo
|
||||
//model = "\A3\Weapons_F\Ammoboxes\Bags\Backpack_Parachute"; // @todo
|
||||
// backpackSimulation = "ParachuteNonSteerable"; //ParachuteSteerable //Bis broke this in 1.40
|
||||
ParachuteClass = "NonSteerable_Parachute_F";
|
||||
maximumLoad = 0;
|
||||
mass = 100;
|
||||
};
|
||||
|
||||
class B_Soldier_05_f; class B_Pilot_F: B_Soldier_05_f {backpack = "ACE_NonSteerableParachute";};
|
||||
class I_Soldier_04_F; class I_pilot_F: I_Soldier_04_F {backpack = "ACE_NonSteerableParachute";};
|
||||
class O_helipilot_F; class O_Pilot_F: O_helipilot_F {backpack = "ACE_NonSteerableParachute";};
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ class CfgVehicles {
|
||||
function = QFUNC(module);
|
||||
scope = 2;
|
||||
isGlobal = 1;
|
||||
icon = QUOTE(PATHTOF(UI\IconSwitchUnits_ca.paa));
|
||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Respawn_ca.paa));
|
||||
class Arguments {
|
||||
class SavePreDeathGear {
|
||||
displayName = "Save Gear?";
|
||||
@ -49,7 +49,7 @@ class CfgVehicles {
|
||||
function = QFUNC(moduleRallypoint);
|
||||
scope = 2;
|
||||
isGlobal = 1;
|
||||
icon = QUOTE(PATHTOF(UI\IconSwitchUnits_ca.paa));
|
||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Rallypoint_ca.paa));
|
||||
class Arguments {
|
||||
};
|
||||
};
|
||||
|
@ -1,8 +1,4 @@
|
||||
/*#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
||||
name = #ITEM; \
|
||||
count = COUNT; \
|
||||
};
|
||||
|
||||
/*
|
||||
class CfgVehicles {
|
||||
class NATO_Box_Base;
|
||||
class EAST_Box_Base;
|
||||
@ -10,25 +6,25 @@ class CfgVehicles {
|
||||
|
||||
class Box_NATO_Support_F: NATO_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,5)
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,5);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_East_Support_F: EAST_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,5)
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,5);
|
||||
};
|
||||
};
|
||||
|
||||
class Box_IND_Support_F: IND_Box_Base {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,5)
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,5);
|
||||
};
|
||||
};
|
||||
|
||||
class ACE_Box_Misc: Box_NATO_Support_F {
|
||||
class TransportItems {
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,2)
|
||||
MACRO_ADDITEM(ACE_acc_flashlight_tls,2);
|
||||
};
|
||||
};
|
||||
};*/
|
||||
|
@ -1,11 +1,13 @@
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE( call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) );
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_Fired_Eventhandlers {
|
||||
class CaManBase {
|
||||
fired = QUOTE( call FUNC(handleFired) );
|
||||
class Extended_FiredBIS_EventHandlers {
|
||||
class CAManBase {
|
||||
class ADDON {
|
||||
firedBIS = QUOTE(_this call FUNC(handleFired));
|
||||
};
|
||||
};
|
||||
};
|
@ -28,4 +28,6 @@ class ACE_Settings {
|
||||
isClientSetable = 0;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.h"
|
@ -1,21 +1,24 @@
|
||||
/**
|
||||
* fnc HandleFired.
|
||||
* Handles wind deflection for projectiles.
|
||||
* Is expected to be triggered by the fired eventhandler from BI.
|
||||
*
|
||||
* Params:
|
||||
* 1. unit: Object - Object the event handler is assigned to
|
||||
* 2. weapon: String - Fired weapon
|
||||
* 3. muzzle: String - Muzzle that was used
|
||||
* 4. mode: String - Current mode of the fired weapon
|
||||
* 5. ammo: String - Ammo used
|
||||
* 6. magazine: String - magazine name which was used
|
||||
* 7. projectile: Object - Object of the projectile that was shot (Arma 2: OA and onwards)
|
||||
*
|
||||
/*
|
||||
* Author: Glowbal, Ruthberg
|
||||
* Handles wind deflection for projectiles.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: unit - Object the event handler is assigned to <OBJECT>
|
||||
* 1: weapon - Fired weapon <STRING>
|
||||
* 2: muzzle - Muzzle that was used <STRING>
|
||||
* 3: mode - Current mode of the fired weapon <STRING>
|
||||
* 4: ammo - Ammo used <STRING>
|
||||
* 5: magazine - magazine name which was used <STRING>
|
||||
* 6: projectile - Object of the projectile that was shot <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Nothing
|
||||
*
|
||||
* Example:
|
||||
* [clientFiredBIS-XEH] call ace_winddeflection_fnc_handleFired
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit", "_weapon", "_ammo", "_bullet", "_airFriction", "_index"];
|
||||
|
Loading…
Reference in New Issue
Block a user