Add DZE_EVRWhiteFlash

Turns On/Off the white flash within the EVR Storm, this is an important option for players who suffers from epilepsy.
This commit is contained in:
A Man
2022-05-02 09:52:47 +02:00
parent 08558080c8
commit 6b24eaa26f
19 changed files with 19 additions and 2 deletions

View File

@@ -320,7 +320,7 @@ fnc_evr = {
// Define arrays of sound effects
local _hit = ["ns_evrHit1","ns_evrHit2","ns_evrHit3"];
local _wave = ["ns_evrWave1","ns_evrWave2","ns_evrWave3"];
#define FLASH titleText["","WHITE OUT",1]; titleText["","WHITE IN",1]; uiSleep 0.25;
#define FLASH if (DZE_EVRWhiteFlash) then {titleText["","WHITE OUT",1]; titleText["","WHITE IN",1]; uiSleep 0.25;};
FLASH
playSound (_hit select (round (random 2)));
@@ -461,5 +461,4 @@ fnc_evr = {
};
};
};
"PVDZE_EVR" addPublicVariableEventHandler {(_this select 1) spawn fnc_evr;};