mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Disable TownGenerator and plant spawner by default
Junk and plant spawning is disabled by default. It can be enabled via dayz_townGenerator config variable and positions blacklist (for trader cities, etc.). The trader objects spawn code was consolidated to functions.
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
private ["_object","_type"];
|
||||
{
|
||||
_type = _x select 0;
|
||||
_object = _type createVehicleLocal (_x select 1);
|
||||
_object setDir (_x select 2);
|
||||
_object setPos (_x select 1);
|
||||
_object allowDamage false;
|
||||
if !(_type in ["Land_Campfire","Land_Campfire_burning","Land_Fire","Land_Fire_burning","Land_Fire_barrel","Land_Fire_barrel_burning"]) then {_object enableSimulation false;};
|
||||
} count [
|
||||
[
|
||||
["Land_HBarrier_large",[3619.65,6807.09,-0.222103],351.175],
|
||||
["Land_HBarrier_large",[3611.36,6805.53,0.000356674],351.138],
|
||||
["Land_HBarrier_large",[3603.07,6803.98,0.000679016],351.144],
|
||||
@@ -92,4 +84,4 @@ private ["_object","_type"];
|
||||
["Land_Fire_barrel",[3577.17,6830.6,0.000236511],359.997],
|
||||
["Info_Board_EP1",[3612.99,6829.27,0.000593185],86.5122],
|
||||
["Land_Fire_barrel",[4723.34,833.238,0.000152588],0.00214848]
|
||||
];
|
||||
] call local_spawnTraderCities;
|
||||
Reference in New Issue
Block a user