mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added drag/carry actions
This commit is contained in:
parent
0428a1d558
commit
ac4309237b
@ -49,6 +49,31 @@ class ACE_Medical_Actions {
|
||||
callbackSuccess = QUOTE(DFUNC(treatmentBasic_bloodbag));
|
||||
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
||||
};
|
||||
class Carry: Bandage {
|
||||
displayName = "";
|
||||
displayNameProgress = "";
|
||||
treatmentLocations[] = {"All"};
|
||||
requiredMedic = 0;
|
||||
treatmentTime = 0;
|
||||
items[] = {};
|
||||
condition = QUOTE(DFUNC(canCarry));
|
||||
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, true)] call DFUNC(actionCarryUnit));
|
||||
callbackFailure = "";
|
||||
callbackProgress = "";
|
||||
animationPatient = "";
|
||||
itemConsumed = 0;
|
||||
animationPatient = "";
|
||||
animationCaller = "";
|
||||
animationCallerProne = "";
|
||||
animationCallerSelf = "";
|
||||
animationCallerSelfProne = "";
|
||||
};
|
||||
class Drag: Carry {
|
||||
displayName = "";
|
||||
displayNameProgress = "";
|
||||
condition = QUOTE(DFUNC(canCarry));
|
||||
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, false)] call DFUNC(actionCarryUnit));
|
||||
};
|
||||
};
|
||||
|
||||
class Advanced {
|
||||
@ -199,6 +224,31 @@ class ACE_Medical_Actions {
|
||||
animationPatient = "";
|
||||
itemConsumed = 0;
|
||||
};
|
||||
class Carry: fieldDressing {
|
||||
displayName = "";
|
||||
displayNameProgress = "";
|
||||
treatmentLocations[] = {"All"};
|
||||
requiredMedic = 0;
|
||||
treatmentTime = 0;
|
||||
items[] = {};
|
||||
condition = QUOTE(DFUNC(canCarry));
|
||||
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, true)] call DFUNC(actionCarryUnit));
|
||||
callbackFailure = "";
|
||||
callbackProgress = "";
|
||||
animationPatient = "";
|
||||
itemConsumed = 0;
|
||||
animationPatient = "";
|
||||
animationCaller = "";
|
||||
animationCallerProne = "";
|
||||
animationCallerSelf = "";
|
||||
animationCallerSelfProne = "";
|
||||
};
|
||||
class Drag: Carry {
|
||||
displayName = "";
|
||||
displayNameProgress = "";
|
||||
condition = QUOTE(DFUNC(canCarry));
|
||||
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, false)] call DFUNC(actionCarryUnit));
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
@ -433,6 +433,28 @@ class CfgVehicles {
|
||||
enableInside = 1;
|
||||
icon = PATHTOF(UI\icons\bandage.paa);
|
||||
};
|
||||
class Carry {
|
||||
displayName = "$STR_ACE_MEDICAL_CARRY";
|
||||
distance = 2.0;
|
||||
condition = QUOTE([ARR_4(_player, _target, 'body', 'Carry')] call DFUNC(canTreatCached));
|
||||
statement = QUOTE([ARR_4(_player, _target, 'body', 'Carry')] call DFUNC(treatment));
|
||||
showDisabled = 1;
|
||||
priority = 2;
|
||||
hotkey = "";
|
||||
enableInside = 1;
|
||||
//icon = PATHTOF(UI\icons\bandage.paa);
|
||||
};
|
||||
class Drag {
|
||||
displayName = "$STR_ACE_MEDICAL_DRAG";
|
||||
distance = 2.0;
|
||||
condition = QUOTE([ARR_4(_player, _target, 'body', 'Drag')] call DFUNC(canTreatCached));
|
||||
statement = QUOTE([ARR_4(_player, _target, 'body', 'Drag')] call DFUNC(treatment));
|
||||
showDisabled = 1;
|
||||
priority = 2;
|
||||
hotkey = "";
|
||||
enableInside = 1;
|
||||
//icon = PATHTOF(UI\icons\bandage.paa);
|
||||
};
|
||||
|
||||
class TriageCard {
|
||||
displayName = "Triage Card";
|
||||
|
@ -219,7 +219,7 @@ if (isNil QGVAR(level)) then {
|
||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
// broadcast injuries to JIP clients in a MP session
|
||||
if (isMultiplayer and GVAR(level) >= 2) then {
|
||||
if (isMultiplayer && GVAR(level) >= 2) then {
|
||||
[QGVAR(onPlayerConnected), "onPlayerConnected", {
|
||||
if (isNil QGVAR(InjuredCollection)) then {
|
||||
GVAR(InjuredCollection) = [];
|
||||
|
Loading…
Reference in New Issue
Block a user