mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e11e102a76
* Enable majority of actions underwater * Remove log * Add logistics_wirecutter support (don't play kneel animations underwater - looks silly) * Don't perform kneel animations when repairing or medicaling underwater * Fix interaction menu rendering underwater (was moving based on player eye level due to height max used for large vehicles) * Fix attach underwater (LIW does not work underwater, LIS does), Add attach scan drawing define * Remove left-over systemChat * Remove vehiclelock from Plane, Disallow linking belt underwater, Allow checking ammo when sitting via action (was already possible via keybind), Use param for LIS
72 lines
2.4 KiB
C++
72 lines
2.4 KiB
C++
|
|
class CfgVehicles {
|
|
|
|
class ACE_Module;
|
|
class ACE_moduleMedicalMenuSettings: ACE_Module {
|
|
scope = 2;
|
|
displayName = CSTRING(module_DisplayName);
|
|
icon = QPATHTOEF(medical,UI\Icon_Module_Medical_ca.paa);
|
|
category = "ACE_medical";
|
|
function = QUOTE(DFUNC(module));
|
|
functionPriority = 1;
|
|
isGlobal = 0;
|
|
isSingular = 1;
|
|
isTriggerActivated = 0;
|
|
author = ECSTRING(common,ACETeam);
|
|
class Arguments {
|
|
class allow {
|
|
displayName = CSTRING(allow);
|
|
description = CSTRING(allow_Descr);
|
|
typeName = "NUMBER";
|
|
class values {
|
|
class disable {
|
|
name = ECSTRING(common,Disabled);
|
|
value = 0;
|
|
};
|
|
class enable {
|
|
name = ECSTRING(common,Enabled);
|
|
value = 1;
|
|
default = 1;
|
|
};
|
|
class VehiclesOnly {
|
|
name = ECSTRING(common,VehiclesOnly);
|
|
value = 2;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
class ModuleDescription {
|
|
description = CSTRING(module_Desc);
|
|
sync[] = {};
|
|
};
|
|
};
|
|
|
|
class Man;
|
|
class CAManBase: Man {
|
|
class ACE_SelfActions {
|
|
class Medical_Menu {
|
|
displayName = CSTRING(OpenMenu);
|
|
runOnHover = 0;
|
|
exceptions[] = {"isNotInside", "isNotSwimming"};
|
|
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
|
|
statement = QUOTE([_target] call DFUNC(openMenu));
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
};
|
|
};
|
|
|
|
class ACE_Actions {
|
|
// Create a consolidates medical menu for treatment while boarded
|
|
class ACE_MainActions {
|
|
class Medical_Menu {
|
|
displayName = CSTRING(OpenMenu);
|
|
runOnHover = 0;
|
|
exceptions[] = {"isNotInside", "isNotSwimming"};
|
|
condition = QUOTE([ARR_2(ACE_player,_target)] call FUNC(canOpenMenu));
|
|
statement = QUOTE([_target] call DFUNC(openMenu));
|
|
icon = QPATHTOEF(medical,UI\icons\medical_cross.paa);
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|