mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleanup events
This commit is contained in:
@ -11,7 +11,6 @@ GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2"];
|
|||||||
["interactMenuClosed", {[objNull, false] call FUNC(displayPatientInformation); }] call EFUNC(common,addEventHandler);
|
["interactMenuClosed", {[objNull, false] call FUNC(displayPatientInformation); }] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
//Treatment EventHandlers:
|
//Treatment EventHandlers:
|
||||||
["medical_advMedication", FUNC(treatmentAdvanced_medicationLocal)] call EFUNC(common,addEventHandler);
|
|
||||||
["actionCheckBloodPressureLocal", DFUNC(actionCheckBloodPressureLocal)] call EFUNC(common,addEventHandler);
|
["actionCheckBloodPressureLocal", DFUNC(actionCheckBloodPressureLocal)] call EFUNC(common,addEventHandler);
|
||||||
["actionCheckPulseLocal", DFUNC(actionCheckPulseLocal)] call EFUNC(common,addEventHandler);
|
["actionCheckPulseLocal", DFUNC(actionCheckPulseLocal)] call EFUNC(common,addEventHandler);
|
||||||
["addToInjuredCollection", DFUNC(addToInjuredCollection)] call EFUNC(common,addEventHandler);
|
["addToInjuredCollection", DFUNC(addToInjuredCollection)] call EFUNC(common,addEventHandler);
|
||||||
@ -33,6 +32,7 @@ GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2"];
|
|||||||
|
|
||||||
//Handle Deleting Bodies on Server:
|
//Handle Deleting Bodies on Server:
|
||||||
if (isServer) then {["placedInBodyBag", FUNC(serverRemoveBody)] call EFUNC(common,addEventHandler);};
|
if (isServer) then {["placedInBodyBag", FUNC(serverRemoveBody)] call EFUNC(common,addEventHandler);};
|
||||||
|
|
||||||
["medical_onUnconscious", {
|
["medical_onUnconscious", {
|
||||||
params ["_unit", "_status"];
|
params ["_unit", "_status"];
|
||||||
if (local _unit) then {
|
if (local _unit) then {
|
||||||
|
@ -22,7 +22,7 @@ TRACE_2("params",_caller,_target);
|
|||||||
|
|
||||||
if (!local _target) exitWith {
|
if (!local _target) exitWith {
|
||||||
TRACE_1("running where local",local _target);
|
TRACE_1("running where local",local _target);
|
||||||
["medical_actionPlaceInBodyBag", [_target], [_caller, _target]] call EFUNC(common,targetEvent);
|
["actionPlaceInBodyBag", [_target], [_caller, _target]] call EFUNC(common,targetEvent);
|
||||||
objNull
|
objNull
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ TRACE_2("meds",_part,_delayedMedications);
|
|||||||
_x params ["", "", "_medPartNum"];
|
_x params ["", "", "_medPartNum"];
|
||||||
if (_part == _medPartNum) then {
|
if (_part == _medPartNum) then {
|
||||||
TRACE_1("delayed medication call after tourniquet removeal",_x);
|
TRACE_1("delayed medication call after tourniquet removeal",_x);
|
||||||
["medical_advMedication", [_target], _x] call EFUNC(common,targetEvent);
|
["treatmentAdvanced_medicationLocal", [_target], _x] call EFUNC(common,targetEvent);
|
||||||
_delayedMedications set [_forEachIndex, -1];
|
_delayedMedications set [_forEachIndex, -1];
|
||||||
_updatedArray = true;
|
_updatedArray = true;
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,7 @@ TRACE_5("params",_caller,_target,_selectionName,_className,_items);
|
|||||||
|
|
||||||
private _part = [_selectionName] call FUNC(selectionNameToNumber);
|
private _part = [_selectionName] call FUNC(selectionNameToNumber);
|
||||||
|
|
||||||
["medical_advMedication", [_target], [_target, _className, _part]] call EFUNC(common,targetEvent);
|
["treatmentAdvanced_medicationLocal", [_target], [_target, _className, _part]] call EFUNC(common,targetEvent);
|
||||||
|
|
||||||
{
|
{
|
||||||
if (_x != "") then {
|
if (_x != "") then {
|
||||||
|
Reference in New Issue
Block a user