Disable flies by default and add enableFlies config variable

Also, when enabled, flies now spawn ten minutes after the player's death
instead of two minutes after as recommended by @oiad .
This commit is contained in:
ebaydayz
2017-01-25 13:05:09 -05:00
parent 5d330e1c71
commit 405dd7e519
28 changed files with 38 additions and 12 deletions

View File

@@ -154,9 +154,6 @@ deleteGroup _myGroup;
4 cutRsc ["default", "PLAIN",3];
_body setVariable["combattimeout", 0, true];
//due to a cleanup issue with effects this has been disabled remember to look at the cleanup before adding it back.
//dayzFlies = player;
//publicVariable "dayzFlies";
_animState = toLower (animationState _body);
_animStateArray = toArray _animState;

View File

@@ -328,7 +328,9 @@ if (!isDedicated) then {
};
"PVDZE_deathMessage" addPublicVariableEventHandler {(_this select 1) call dze_deathMessage};
// flies and swarm sound sync
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\client_flies.sqf";
if (dayz_enableFlies) then {
// flies and swarm sound sync
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\client_flies.sqf";
};
};