mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +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,24 +1,4 @@
|
||||
private "_trader";
|
||||
{
|
||||
_trader = createAgent [_x select 0,_x select 1,[],0,"CAN_COLLIDE"];
|
||||
{_trader removeMagazine _x;} count magazines _trader;
|
||||
removeAllItems _trader;
|
||||
removeAllWeapons _trader;
|
||||
removeBackpack _trader;
|
||||
_trader switchMove "";
|
||||
_trader setDir (_x select 2);
|
||||
_trader setVehicleInit "this disableAI 'ANIM'; this disableAI 'AUTOTARGET'; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; this allowDamage false;";
|
||||
_trader setUnitAbility 0.6;
|
||||
_trader disableAI "ANIM";
|
||||
_trader disableAI "AUTOTARGET";
|
||||
_trader disableAI "FSM";
|
||||
_trader disableAI "MOVE";
|
||||
_trader disableAI "TARGET";
|
||||
_trader setBehaviour "CARELESS";
|
||||
_trader forceSpeed 0;
|
||||
_trader allowDamage false;
|
||||
_trader enableSimulation false;
|
||||
} count [
|
||||
[
|
||||
["Profiteer4",[17176.2,13586.9,0],73.4977],
|
||||
["RU_Villager3",[19245.6,13587,2.55686],275.413],
|
||||
["Worker3",[14280.5,12382.6,0],345.399],
|
||||
@@ -45,6 +25,4 @@ private "_trader";
|
||||
["HouseWife1",[13488.9,6891.06,3.55589],268.259],
|
||||
["Doctor",[14263.7,12434.9,0],95.8567],
|
||||
["Soldier_GL_PMC",[13243.8,11189.8,0],260.76]
|
||||
];
|
||||
|
||||
processInitCommands;
|
||||
] call server_spawnTraders;
|
||||
Reference in New Issue
Block a user