mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Add _createLitter
to medical events (#9959)
Added `_createLitter` to medical events
This commit is contained in:
parent
872d460e6d
commit
60b87f0b41
@ -155,9 +155,9 @@ if (_callbackProgress isEqualTo {}) then {
|
|||||||
_callbackProgress = {true};
|
_callbackProgress = {true};
|
||||||
};
|
};
|
||||||
|
|
||||||
[_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem] call _callbackStart;
|
[_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem, _createLitter] call _callbackStart;
|
||||||
|
|
||||||
["ace_treatmentStarted", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem]] call CBA_fnc_localEvent;
|
["ace_treatmentStarted", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem, _createLitter]] call CBA_fnc_localEvent;
|
||||||
|
|
||||||
[
|
[
|
||||||
_treatmentTime,
|
_treatmentTime,
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
* 3: Treatment <STRING>
|
* 3: Treatment <STRING>
|
||||||
* 4: Item User <OBJECT>
|
* 4: Item User <OBJECT>
|
||||||
* 5: Used Item <STRING>
|
* 5: Used Item <STRING>
|
||||||
|
* 6: Create Litter <BOOL>
|
||||||
*
|
*
|
||||||
* Return Value:
|
* Return Value:
|
||||||
* None
|
* None
|
||||||
@ -19,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
params ["_args"];
|
params ["_args"];
|
||||||
_args params ["_medic", "_patient", "_bodyPart", "_classname", "_itemUser", "_usedItem"];
|
_args params ["_medic", "_patient", "_bodyPart", "_classname", "_itemUser", "_usedItem", "_createLitter"];
|
||||||
|
|
||||||
// Return used item to user (if used)
|
// Return used item to user (if used)
|
||||||
if (!isNull _itemUser) then {
|
if (!isNull _itemUser) then {
|
||||||
@ -53,4 +54,4 @@ GET_FUNCTION(_callbackFailure,configFile >> QGVAR(actions) >> _classname >> "cal
|
|||||||
|
|
||||||
_args call _callbackFailure;
|
_args call _callbackFailure;
|
||||||
|
|
||||||
["ace_treatmentFailed", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem]] call CBA_fnc_localEvent;
|
["ace_treatmentFailed", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem, _createLitter]] call CBA_fnc_localEvent;
|
||||||
|
@ -50,4 +50,4 @@ _args call _callbackSuccess;
|
|||||||
if (_createLitter) then { _args call FUNC(createLitter); };
|
if (_createLitter) then { _args call FUNC(createLitter); };
|
||||||
|
|
||||||
// Emit local event for medical API
|
// Emit local event for medical API
|
||||||
["ace_treatmentSucceded", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem]] call CBA_fnc_localEvent;
|
["ace_treatmentSucceded", [_medic, _patient, _bodyPart, _classname, _itemUser, _usedItem, _createLitter]] call CBA_fnc_localEvent;
|
||||||
|
@ -38,9 +38,9 @@ The vehicle events will also have the following local variables available `_gunn
|
|||||||
|`ace_unconscious` | [_unit, _state(BOOL)] | Global | Listen | Unit's unconscious state changed |
|
|`ace_unconscious` | [_unit, _state(BOOL)] | Global | Listen | Unit's unconscious state changed |
|
||||||
|`ace_placedInBodyBag` | [_target, _bodyBag, _isGrave] | Global | Listen | Target placed into a bodybag Note: (Target will soon be deleted, target could be a bodybag) |
|
|`ace_placedInBodyBag` | [_target, _bodyBag, _isGrave] | Global | Listen | Target placed into a bodybag Note: (Target will soon be deleted, target could be a bodybag) |
|
||||||
|`ace_placedInGrave` | [_target, _grave] | Global | Listen | Target placed into a grave, _grave will be objNull if `Create Grave Markers` is disabled Note: (Target will soon be deleted) |
|
|`ace_placedInGrave` | [_target, _grave] | Global | Listen | Target placed into a grave, _grave will be objNull if `Create Grave Markers` is disabled Note: (Target will soon be deleted) |
|
||||||
|`ace_treatmentStarted` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem] | Local | Listen | Treatment action has started (local on the _caller) |
|
|`ace_treatmentStarted` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem, _createLitter] | Local | Listen | Treatment action has started (local on the _caller) |
|
||||||
|`ace_treatmentSucceded` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem] | Local | Listen | Treatment action is completed (local on the _caller) |
|
|`ace_treatmentSucceded` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem, _createLitter] | Local | Listen | Treatment action is completed (local on the _caller) |
|
||||||
|`ace_treatmentFailed` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem] | Local | Listen | Treatment action has been interrupted (local on the _caller) |
|
|`ace_treatmentFailed` | [_caller, _target, _selectionName, _className, _itemUser, _usedItem, _createLitter] | Local | Listen | Treatment action has been interrupted (local on the _caller) |
|
||||||
|`ace_medical_handleUnitVitals` | [_unit, _deltaT] | Local | Listen | Vitals update ran for unit, _deltaT is the time elapsed since the previous vitals update (local to _unit) |
|
|`ace_medical_handleUnitVitals` | [_unit, _deltaT] | Local | Listen | Vitals update ran for unit, _deltaT is the time elapsed since the previous vitals update (local to _unit) |
|
||||||
|`ace_medical_treatment_bandaged` | [_medic, _patient, _bodyPart, _className, _itemUser, _usedItem, _createLitter, _bandageEffectiveness] | Local | Listen | _medic has bandaged _patient, the array can be modified to change treatment parameters (local to _medic) |
|
|`ace_medical_treatment_bandaged` | [_medic, _patient, _bodyPart, _className, _itemUser, _usedItem, _createLitter, _bandageEffectiveness] | Local | Listen | _medic has bandaged _patient, the array can be modified to change treatment parameters (local to _medic) |
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user