Cleanup events

This commit is contained in:
PabstMirror 2016-02-19 15:39:38 -06:00
parent 44b526ab6d
commit dffcbc7650
4 changed files with 4 additions and 4 deletions

View File

@ -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);
//Treatment EventHandlers:
["medical_advMedication", FUNC(treatmentAdvanced_medicationLocal)] call EFUNC(common,addEventHandler);
["actionCheckBloodPressureLocal", DFUNC(actionCheckBloodPressureLocal)] call EFUNC(common,addEventHandler);
["actionCheckPulseLocal", DFUNC(actionCheckPulseLocal)] 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:
if (isServer) then {["placedInBodyBag", FUNC(serverRemoveBody)] call EFUNC(common,addEventHandler);};
["medical_onUnconscious", {
params ["_unit", "_status"];
if (local _unit) then {

View File

@ -22,7 +22,7 @@ TRACE_2("params",_caller,_target);
if (!local _target) exitWith {
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
};

View File

@ -44,7 +44,7 @@ TRACE_2("meds",_part,_delayedMedications);
_x params ["", "", "_medPartNum"];
if (_part == _medPartNum) then {
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];
_updatedArray = true;
};

View File

@ -22,7 +22,7 @@ TRACE_5("params",_caller,_target,_selectionName,_className,_items);
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 {