mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 16:51:36 +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:
1 parent
6e57bc6f6f
commit
0ab46abd52
2 files changed
+9
-3
No files matched your search
@@ -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