mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
+ Fixed detection of vehicles in vehicle sell menu + Added trade in progress checks to all traders. + set pos after direction on deployables when placed. + Server side set pos after direction when spawning anything.
24 lines
791 B
Plaintext
24 lines
791 B
Plaintext
private["_radius","_position","_inVehicle","_dateNow","_age","_locationstypes","_nearestCity","_maxZombies","_nearby","_maxWildZombies","_tooManyZs","_tooManyWildZs","_type","_config","_canZombie","_dis","_zombied","_bPos","_zombiesNum","_withinRange","_spawnWildZs"];
|
|
|
|
_radius = _this select 0;
|
|
_position = _this select 1;
|
|
_inVehicle = _this select 2;
|
|
_dateNow = _this select 3;
|
|
_age = _this select 4;
|
|
_locationstypes = _this select 5;
|
|
_nearestCity = _this select 6;
|
|
_maxZombies = _this select 7;
|
|
|
|
/*
|
|
if (_inVehicle) then {
|
|
_maxZombies = _maxZombies / 2;
|
|
};
|
|
*/
|
|
|
|
_zombied = (_x getVariable ["zombieSpawn",-0.1]);
|
|
_dateNow = (DateToNumber date);
|
|
_age = (_dateNow - _zombied) * 525948;
|
|
if (_age > 1) then {
|
|
_x setVariable ["zombieSpawn",_dateNow,true];
|
|
[_x] call building_spawnZombies;
|
|
}; |