mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Don't spawn epoch dynamic debris if town generator is on
Vanilla town generator debris can end up spawning inside of epoch dynamic debris if both are enabled.
This commit is contained in:
@@ -474,8 +474,14 @@ if (_hiveLoaded) then {
|
||||
_vehLimit = 0;
|
||||
};
|
||||
|
||||
diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));
|
||||
for "_x" from 1 to MaxDynamicDebris do {call spawn_roadblocks;};
|
||||
if (dayz_townGenerator) then {
|
||||
// Vanilla town generator spawns debris locally on each client
|
||||
MaxDynamicDebris = 0;
|
||||
} else {
|
||||
// Epoch global dynamic debris
|
||||
diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));
|
||||
for "_x" from 1 to MaxDynamicDebris do {call spawn_roadblocks;};
|
||||
};
|
||||
|
||||
diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes));
|
||||
for "_x" from 1 to MaxAmmoBoxes do {call spawn_ammosupply;};
|
||||
|
||||
Reference in New Issue
Block a user