mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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:
@@ -18,7 +18,8 @@
|
||||
[CHANGED] Salvage vehicle actions are no longer allowed in positions defined in DZE_SafeZonePosArray
|
||||
[CHANGED] The town generator and comfrey plant spawner loops are now fully disabled when dayz_townGenerator=false; to improve client performance.
|
||||
[CHANGED] Changed default value for the variable dayz_bleedingeffect to 2 (blood particle effect only) due to negative FPS impact. Set to 3 to enable blood stains again.
|
||||
[CHANGED] Group icons have been moved to a slower loop and the group system is disabled by default. Enable in configVariables.sqf. #1816
|
||||
[CHANGED] Group icons have been moved to a slower loop and the group system is disabled by default. See configVariables.sqf to enable. #1816
|
||||
[CHANGED] Flies are now disabled by default due to negative FPS impact. See init.sqf to enable. #1816
|
||||
|
||||
[FIXED] Wrong texture for z_hunter zombie. #1805 @schwanzkopfhegel @ebayShopper
|
||||
[FIXED] Refuel with generator at gas station not working. #1806 @Helios27 @ebayShopper
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -53,13 +53,14 @@ sched_corpses = {
|
||||
};*/
|
||||
_deathTime = diag_tickTime;
|
||||
_x setVariable ["sched_co_deathTime", _deathTime];
|
||||
_x setVariable ["sched_co_fliesAdded", true];
|
||||
_addFlies = _addFlies + 1;
|
||||
|
||||
if (dayz_enableFlies) then {
|
||||
_x setVariable ["sched_co_fliesAdded", true];
|
||||
_addFlies = _addFlies + 1;
|
||||
};
|
||||
};
|
||||
// 40 minutes = how long a player corpse stays on the map
|
||||
if (diag_tickTime - _deathTime > 40*60) then {
|
||||
if (_x getVariable ["sched_co_fliesDeleted", false]) then {
|
||||
if (_x getVariable["sched_co_fliesDeleted",false] or !dayz_enableFlies) then {
|
||||
// flies have been switched off, we can delete body
|
||||
_sound = _x getVariable ["sched_co_fliesSource", nil];
|
||||
|
||||
@@ -77,6 +78,8 @@ sched_corpses = {
|
||||
// body will be deleted at next round
|
||||
};
|
||||
} else {
|
||||
// Do not spawn flies immediately after death. Wait 10 minutes.
|
||||
if ((diag_tickTime - _deathTime < 10*60) or !dayz_enableFlies) exitWith {};
|
||||
_onoff = 1;
|
||||
// remove flies on heavy rain.
|
||||
if (rain > 0.25) then { _onoff = 0; };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
//new
|
||||
5 !=(remExField|remExFP) !=(PVCDZ_obj_GutBody|drn_AskServerDynamicWeatherEventArgs|BIS_effects_gepv|achievement|dayzFlies) !=PVDZ_(drg_(RaDrag|RaLW|RLact)|getTickTime|hlt_Bleed|obj_(Delete|Publish|RoadFlare|Destroy|Fire)|veh_Save|veh_SF) !=PVDZ_(plr_(Death|Login[12]|LoginRecord|Save|SwitchMove)|Server(_Simulation|StoreVar)|sec_atp) !=PVDZ_(playerMedicalSync|object_replace|groupInvite) !=PVDZ_(send(|Unconscious)) !=PVDZ_Server_(buildLock|LogIt|UpdateGroup) !=PVDZ_Server_process(Code|SetAccessCode) !=PVDZ_objgather_(Delete|Knockdown) !=PVDZE_(obj_(Delete|Publish|Swap|Trade)|fullobj_Publish|maintainArea|veh_(Lock|Publish2|Upgrade)|handleSafeGear|plr_(DeathB|FriendRQ|TradeMenu))
|
||||
5 !=(remExField|remExFP) !=(PVCDZ_obj_GutBody|drn_AskServerDynamicWeatherEventArgs|BIS_effects_gepv|achievement) !=PVDZ_(drg_(RaDrag|RaLW|RLact)|getTickTime|hlt_Bleed|obj_(Delete|Publish|RoadFlare|Destroy|Fire)|veh_Save|veh_SF) !=PVDZ_(plr_(Death|Login[12]|LoginRecord|Save|SwitchMove)|Server(_Simulation|StoreVar)|sec_atp) !=PVDZ_(playerMedicalSync|object_replace|groupInvite) !=PVDZ_(send(|Unconscious)) !=PVDZ_Server_(buildLock|LogIt|UpdateGroup) !=PVDZ_Server_process(Code|SetAccessCode) !=PVDZ_objgather_(Delete|Knockdown) !=PVDZE_(obj_(Delete|Publish|Swap|Trade)|fullobj_Publish|maintainArea|veh_(Lock|Publish2|Upgrade)|handleSafeGear|plr_(DeathB|FriendRQ|TradeMenu))
|
||||
1=BIS_effects_gepv|PVDZ_(drg_RaDrag|hlt_Bleed|obj_Delete|obj_Destroy|obj_Publish|plr_Death|plr_LoginRecord|sec_atp|send|veh_SF)
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
@@ -16,6 +16,7 @@ dayz_POIs = false; //Adds Point of Interest map additions (negatively impacts FP
|
||||
dayz_infectiousWaterholes = false; //Randomly adds some bodies, graves and wrecks by ponds (negatively impacts FPS)
|
||||
dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
dayz_enableFlies = false; // Enable flies on dead bodies (negatively impacts FPS).
|
||||
|
||||
//DayZMod presets
|
||||
dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"
|
||||
|
||||
Reference in New Issue
Block a user