Added onTreatmentCompleted event calls

This commit is contained in:
Glowbal 2015-02-21 23:17:20 +01:00
parent e5941e55fc
commit 3f12af8b21
5 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,9 @@ GVAR(heartBeatSounds_Normal) = ["ACE_heartbeat_norm_1", "ACE_heartbeat_norm_2"];
GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2", "ACE_heartbeat_norm_1", "ACE_heartbeat_norm_2"];
GVAR(playingHeartBeatSound) = false;
["Medical_treatmentCompleted", FUNC(onTreatmentCompleted)] call ace_common_fnc_addEventHandler;
// Initialize all effects
// @todo: make this a macro?
_fnc_createEffect = {

View File

@ -34,6 +34,7 @@ if ([_caller, _target, _items] call FUNC(useEquipment)) then {
};
}foreach _items;
["Medical_treatmentCompleted", [_caller, _target, _selectionName, _className, true]] call ace_common_fnc_localEvent;
[_target, "activity", "STR_ACE_HAS_BANDAGED_ACTIVITY", [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
};

View File

@ -34,6 +34,7 @@ if ([_caller, _target, _items] call FUNC(useEquipment)) then {
};
}foreach _items;
["Medical_treatmentCompleted", [_caller, _target, _selectionName, _className, true]] call ace_common_fnc_localEvent;
[_target, "activity", "STR_ACE_HAS_MEDICATION_ACTIVITY", [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
};

View File

@ -29,6 +29,7 @@ if (count _items == 0) exitwith {};
if ([_caller, _target, _items] call FUNC(useEquipment)) then {
_removeItem = _items select 0;
[[_target, _removeItem], QUOTE(FUNC(treatmentIVLocal)), _target] call EFUNC(common,execRemoteFnc);
["Medical_treatmentCompleted", [_caller, _target, _selectionName, _className, true]] call ace_common_fnc_localEvent;
[_target, _removeItem] call FUNC(addToTriageCard);
[_target, "activity", "STR_ACE_HAS_GIVEN_IV_ACTIVITY", [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
};

View File

@ -41,6 +41,7 @@ if ((_tourniquets select _part) > 0) exitwith {
if ([_caller, _target, _items] call FUNC(useEquipment)) then {
_removeItem = _items select 0;
[[_target, _removeItem], QUOTE(FUNC(treatmentTourniquetLocal)), _target] call EFUNC(common,execRemoteFnc);
["Medical_treatmentCompleted", [_caller, _target, _selectionName, _className, true]] call ace_common_fnc_localEvent;
[_target, _removeItem] call FUNC(addToTriageCard);
[_target, "activity", "STR_ACE_HAS_APPLIED_TOURNIQUET_ACTIVITY", [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
};