mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Handles any audible and visual effects of medical.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private _disableAll = (!isNull curatorCamera) || {!alive ACE_player};
|
|
if (_disableAll) exitWith {
|
|
[false, false] call FUNC(effectUnconscious);
|
|
[false] call FUNC(effectPain);
|
|
[false] call FUNC(effectBloodVolume);
|
|
};
|
|
|
|
// - Current state info -------------------------------------------------------
|
|
private _bleedingStrength = [ACE_player] call EFUNC(medical,getBloodloss);
|
|
private _bleeding = _bleedingStrength > 0;
|
|
private _bloodVolume = ACE_player getVariable [QEGVAR(medical,bloodVolume), DEFAULT_BLOOD_VOLUME];
|
|
private _unconscious = ACE_player getVariable [QEGVAR(medical,isUnconscious), false];
|
|
private _heartRate = ACE_player getVariable [QEGVAR(medical,heartRate), 70];
|
|
private _pain = ACE_player getVariable [QEGVAR(medical,pain), 0];
|
|
|
|
// - Visual effects -----------------------------------------------------------
|
|
[_unconscious, _unconscious] call FUNC(effectUnconscious);
|
|
[true, _pain] call FUNC(effectPain);
|
|
[
|
|
true, linearConversion [BLOOD_VOLUME_CLASS_2_HEMORRHAGE, BLOOD_VOLUME_CLASS_4_HEMORRHAGE, _bloodVolume, 0, 1, true]
|
|
] call FUNC(effectBloodVolume);
|