2018-07-30 09:22:14 +00:00
|
|
|
#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
|
|
|
*/
|
2018-08-02 14:02:10 +00:00
|
|
|
|
2016-12-01 19:54:03 +00:00
|
|
|
params ["_enable", "_intensity"];
|
|
|
|
|
2017-02-19 04:11:40 +00:00
|
|
|
if ((!_enable) || {_intensity == 0}) exitWith {
|
2016-12-01 19:54:03 +00:00
|
|
|
GVAR(ppBloodVolume) ppEffectEnable false;
|
|
|
|
};
|
|
|
|
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;
|