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:
ebaydayz
2016-09-15 17:07:11 -04:00
parent 6e57bc6f6f
commit 0ab46abd52
2 changed files with 9 additions and 3 deletions

View File

@@ -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;};