ACE3/addons/medical_ui/functions/fnc_effectBloodVolume.sqf

21 lines
487 B
Plaintext
Raw Normal View History

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
*/
#include "script_component.hpp"
params ["_enable", "_intensity"];
if (!_enable) exitWith {
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;