Added surgicalKit treatment

This commit is contained in:
BaerMitUmlaut 2015-05-26 00:33:20 +02:00
parent 1041d68b06
commit 41892fd6df
3 changed files with 40 additions and 0 deletions

View File

@ -78,6 +78,8 @@ PREP(treatmentAdvanced_fullHeal);
PREP(treatmentAdvanced_fullHealLocal);
PREP(treatmentAdvanced_medication);
PREP(treatmentAdvanced_medicationLocal);
PREP(treatmentAdvanced_surgicalKit);
PREP(treatmentAdvanced_surgicalKitLocal);
PREP(treatmentBasic_bandage);
PREP(treatmentBasic_bloodbag);
PREP(treatmentBasic_bloodbagLocal);

View File

@ -0,0 +1,20 @@
/*
* Author: BaerMitUmlaut
* Handles treatment via surgical kit.
*
* Public: No
*/
#include "script_component.hpp"
private ["_target", "_caller", "_selectionName", "_className", "_items"];
_caller = _this select 0;
_target = _this select 1;
_selectionName = _this select 2;
_className = _this select 3;
_items = _this select 4;
// TODO replace by event system
[[_caller, _target], QUOTE(DFUNC(treatmentAdvanced_surgicalKitLocal)), _target] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
true;

View File

@ -0,0 +1,18 @@
/*
* Author: BaerMitUmlaut
* Handles treatment via surgical kit (locally).
*
* Public: No
*/
#include "script_component.hpp"
private ["_target", "_caller"];
_caller = _this select 0;
_target = _this select 1;
if (alive _target) exitwith {
_target setvariable [QGVAR(bandagedWounds), [], true];
};