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
|
|
|
|
*/
|
|
|
|
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;
|