ACE3/addons/medical_feedback/functions/fnc_effectBloodVolume.sqf

29 lines
653 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2016-12-01 19:54:03 +00:00
/*
* Author: BaerMitUmlaut
* Handles the blood volume effect.
*
* Arguments:
* 0: Enable <BOOL>
* 1: Intensity <NUMBER>
*
* Return Value:
* None
2019-03-30 16:07:54 +00:00
*
* Example:
* [false, 0.5] call ace_medical_feedback_fnc_effectBloodVolume
*
* Public: No
2016-12-01 19:54:03 +00:00
*/
2016-12-01 19:54:03 +00:00
params ["_enable", "_intensity"];
if (isNil QGVAR(ppBloodVolume)) exitWith {};
if ((!_enable) || {_intensity == 0}) exitWith {
2016-12-01 19:54:03 +00:00
GVAR(ppBloodVolume) ppEffectEnable false;
};
2016-12-01 19:54:03 +00:00
GVAR(ppBloodVolume) ppEffectEnable true;
2016-12-09 18:14:12 +00:00
GVAR(ppBloodVolume) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [1, 1, 1, 1 - _intensity], [0.2, 0.2, 0.2, 0]];
2016-12-01 19:54:03 +00:00
GVAR(ppBloodVolume) ppEffectCommit 1;