mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-09 09:42:52 +03:00
Remove useless loop/waituntil
This commit is contained in:
@@ -1,40 +1,36 @@
|
|||||||
[] spawn {
|
[] spawn {
|
||||||
while {1 == 1} do {
|
BIS_Effects_Init = true; //A2 won't overwrite this if var is not nil
|
||||||
waitUntil {((isNil "BIS_Effects_Rifle") OR {(count(toArray(str(BIS_Effects_Rifle)))!=7)})};
|
diag_log "Res3tting B!S effects...";
|
||||||
diag_log "Res3tting B!S effects...";
|
/* BIS_Effects_* fixes from Dwarden */
|
||||||
/* BIS_Effects_* fixes from Dwarden */
|
BIS_Effects_Rifle = {false};
|
||||||
BIS_Effects_Rifle = {false};
|
BIS_Effects_EH_Fired = {false};
|
||||||
BIS_Effects_EH_Fired = {false};
|
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
|
||||||
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
|
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
|
||||||
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
|
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
|
||||||
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
|
BIS_Effects_Secondaries = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\secondaries.sqf";
|
||||||
BIS_Effects_Secondaries = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\secondaries.sqf";
|
|
||||||
|
|
||||||
BIS_Effects_globalEvent = {
|
|
||||||
BIS_effects_gepv = _this;
|
|
||||||
publicVariable "BIS_effects_gepv";
|
|
||||||
_this call BIS_Effects_startEvent;
|
|
||||||
};
|
|
||||||
|
|
||||||
BIS_Effects_startEvent = {
|
BIS_Effects_globalEvent = {
|
||||||
switch (_this select 0) do {
|
BIS_effects_gepv = _this;
|
||||||
case "AirDestruction": {
|
publicVariable "BIS_effects_gepv";
|
||||||
[_this select 1] spawn BIS_Effects_AirDestruction;
|
_this call BIS_Effects_startEvent;
|
||||||
};
|
};
|
||||||
case "AirDestructionStage2": {
|
|
||||||
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
|
BIS_Effects_startEvent = {
|
||||||
};
|
switch (_this select 0) do {
|
||||||
case "Burn": {
|
case "AirDestruction": {
|
||||||
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
|
[_this select 1] spawn BIS_Effects_AirDestruction;
|
||||||
};
|
};
|
||||||
|
case "AirDestructionStage2": {
|
||||||
|
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
|
||||||
|
};
|
||||||
|
case "Burn": {
|
||||||
|
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
"BIS_effects_gepv" addPublicVariableEventHandler {
|
"BIS_effects_gepv" addPublicVariableEventHandler {
|
||||||
(_this select 1) call BIS_Effects_startEvent;
|
(_this select 1) call BIS_Effects_startEvent;
|
||||||
};
|
|
||||||
|
|
||||||
sleep 1;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user