2015-02-28 10:41:27 +00:00
|
|
|
/**
|
|
|
|
* fn_healLocal.sqf
|
|
|
|
* @Descr: N/A
|
|
|
|
* @Author: Glowbal
|
|
|
|
*
|
|
|
|
* @Arguments: []
|
|
|
|
* @Return:
|
|
|
|
* @PublicAPI: false
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-04 14:26:49 +00:00
|
|
|
private ["_target", "_caller", "_allUsedMedication"];
|
|
|
|
_caller = _this select 0;
|
|
|
|
_target = _this select 1;
|
2015-02-28 10:41:27 +00:00
|
|
|
|
2015-04-04 14:26:49 +00:00
|
|
|
if (alive _target) exitwith {
|
2015-02-28 10:41:27 +00:00
|
|
|
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setVariable [QGVAR(pain), 0, true];
|
|
|
|
_target setVariable [QGVAR(morphine), 0, true];
|
|
|
|
_target setVariable [QGVAR(bloodVolume), 100, true];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// tourniquets
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setvariable [QGVAR(tourniquets), [0,0,0,0,0,0], true];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// wounds and injuries
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setvariable [QGVAR(openWounds), [], true];
|
2015-04-05 17:26:33 +00:00
|
|
|
_target setvariable [QGVAR(bandagedWounds), [], true];
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setVariable [QGVAR(internalWounds), [], true];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// vitals
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setVariable [QGVAR(heartRate), 80];
|
|
|
|
_target setvariable [QGVAR(heartRateAdjustments), []];
|
|
|
|
_target setvariable [QGVAR(bloodPressure), [80, 120]];
|
|
|
|
_target setVariable [QGVAR(peripheralResistance), 100];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// fractures
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setVariable [QGVAR(fractures), []];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// IVs
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setVariable [QGVAR(salineIVVolume), 0];
|
|
|
|
_target setVariable [QGVAR(plasmaIVVolume), 0];
|
|
|
|
_target setVariable [QGVAR(bloodIVVolume), 0];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// damage storage
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setvariable [QGVAR(bodyPartStatus), [0,0,0,0,0,0], true];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// airway
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setvariable [QGVAR(airwayStatus), 100, true];
|
|
|
|
_target setVariable [QGVAR(airwayOccluded), false, true];
|
|
|
|
_target setvariable [QGVAR(airwayCollapsed), false, true];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// generic medical admin
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setvariable [QGVAR(addedToUnitLoop), false, true];
|
|
|
|
_target setvariable [QGVAR(inCardiacArrest), false, true];
|
|
|
|
_target setvariable [QGVAR(inReviveState), false, true];
|
|
|
|
_target setVariable ["ACE_isUnconscious", false, true];
|
|
|
|
_target setvariable [QGVAR(hasLostBlood), false, true];
|
|
|
|
_target setvariable [QGVAR(isBleeding), false, true];
|
|
|
|
_target setvariable [QGVAR(hasPain), false, true];
|
2015-02-28 10:41:27 +00:00
|
|
|
|
|
|
|
// medication
|
2015-04-04 14:26:49 +00:00
|
|
|
_allUsedMedication = _target getVariable [QGVAR(allUsedMedication), []];
|
2015-02-28 10:41:27 +00:00
|
|
|
{
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setvariable [_x select 0, nil];
|
2015-02-28 10:41:27 +00:00
|
|
|
}foreach _allUsedMedication;
|
|
|
|
|
|
|
|
// Resetting damage
|
2015-04-04 14:26:49 +00:00
|
|
|
_target setDamage 0;
|
2015-02-28 10:41:27 +00:00
|
|
|
};
|