mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Feedback - Fix pain effects when set to Only high pain effect
(#8534)
Close #8533
This commit is contained in:
parent
5fc9856b61
commit
e1141cdd27
@ -19,10 +19,10 @@
|
|||||||
params ["_enable", "_intensity"];
|
params ["_enable", "_intensity"];
|
||||||
|
|
||||||
if (!_enable || {_intensity == 0}) exitWith {
|
if (!_enable || {_intensity == 0}) exitWith {
|
||||||
GVAR(ppPain) ppEffectEnable false;
|
if (GVAR(ppPain) != -1) then { GVAR(ppPain) ppEffectEnable false; };
|
||||||
GVAR(ppPainBlur) ppEffectEnable false;
|
GVAR(ppPainBlur) ppEffectEnable false;
|
||||||
};
|
};
|
||||||
GVAR(ppPain) ppEffectEnable true;
|
if (GVAR(ppPain) != -1) then { GVAR(ppPain) ppEffectEnable true; };
|
||||||
GVAR(ppPainBlur) ppEffectEnable true;
|
GVAR(ppPainBlur) ppEffectEnable true;
|
||||||
|
|
||||||
// Trigger effect every 2s
|
// Trigger effect every 2s
|
||||||
|
@ -33,7 +33,7 @@ private _fnc_createEffect = {
|
|||||||
// - Pain ---------------------------------------------------------------------
|
// - Pain ---------------------------------------------------------------------
|
||||||
if (!isNil QGVAR(ppPain)) then {
|
if (!isNil QGVAR(ppPain)) then {
|
||||||
TRACE_1("delete pain",GVAR(ppPain));
|
TRACE_1("delete pain",GVAR(ppPain));
|
||||||
ppEffectDestroy GVAR(ppPain)
|
if (GVAR(ppPain) != -1) then { ppEffectDestroy GVAR(ppPain); };
|
||||||
};
|
};
|
||||||
switch (GVAR(painEffectType)) do {
|
switch (GVAR(painEffectType)) do {
|
||||||
case FX_PAIN_WHITE_FLASH: {
|
case FX_PAIN_WHITE_FLASH: {
|
||||||
@ -57,6 +57,7 @@ switch (GVAR(painEffectType)) do {
|
|||||||
[0, 0, false]
|
[0, 0, false]
|
||||||
] call _fnc_createEffect;
|
] call _fnc_createEffect;
|
||||||
};
|
};
|
||||||
|
default { GVAR(ppPain) = -1; };
|
||||||
};
|
};
|
||||||
// Base blur on high pain
|
// Base blur on high pain
|
||||||
if (isNil QGVAR(ppPainBlur)) then {
|
if (isNil QGVAR(ppPainBlur)) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user