mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-19 10:46:40 +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 [
|
||||
[
|
||||
["FR_Sykes",[1100.26,2854.37,0],179.651],
|
||||
["GUE_Villager4",[8387.1,2369.31,0],171.998],
|
||||
["GUE_Soldier_CO",[13246.2,6071.39,0],5.43464],
|
||||
@@ -45,6 +25,4 @@ private "_trader";
|
||||
["BAF_Soldier_EN_MTP",[11460.6,11395.9,0],151.445],
|
||||
["Herrera_Light",[11468,11394.9,0],197.338],
|
||||
["US_Delta_Force_Medic_EP1",[11474.3,11389.6,3.05176e-005],243.732]
|
||||
];
|
||||
|
||||
processInitCommands;
|
||||
] call server_spawnTraders;
|
||||
Reference in New Issue
Block a user