Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_buildings","_buildingToSpawn","_positionsToSpawn","_zombies"];
- _zombies =
- [
- "RyanZombieC_man_1slow","RyanZombieC_man_polo_1_Fslow","RyanZombieC_man_polo_2_Fslow","RyanZombieC_man_polo_4_Fslow","RyanZombieC_man_polo_5_Fslow","RyanZombieC_man_polo_6_Fslow","RyanZombieC_man_p_fugitive_Fslow","RyanZombieC_man_w_worker_Fslow","RyanZombieC_man_hunter_1_Fslow",
- "RyanZombieC_man_1medium","RyanZombieC_man_polo_1_Fmedium","RyanZombieC_man_polo_2_Fmedium","RyanZombieC_man_polo_4_Fmedium","RyanZombieC_man_polo_5_Fmedium","RyanZombieC_man_polo_6_Fmedium","RyanZombieC_man_p_fugitive_Fmedium","RyanZombieC_man_w_worker_Fmedium","RyanZombieC_man_hunter_1_Fmedium",
- "RyanZombieC_man_1walker","RyanZombieC_man_polo_1_Fwalker","RyanZombieC_man_polo_2_Fwalker","RyanZombieC_man_polo_4_Fwalker","RyanZombieC_man_polo_5_Fwalker","RyanZombieC_man_polo_6_Fwalker","RyanZombieC_man_p_fugitive_Fwalker","RyanZombieC_man_w_worker_Fwalker","RyanZombieC_scientist_Fwalker","RyanZombieC_man_hunter_1_Fwalker","RyanZombieC_man_pilot_Fwalker","RyanZombieC_journalist_Fwalker","RyanZombieC_Oresteswalker","RyanZombieC_Nikoswalker"
- ];
- _chance = 50;
- if (ExileReborn_playerIsWounded) then {_chance = _chance + 25;};
- if (ExileReborn_playerIsInfected) then {_chance = _chance + 40;};
- _position = position player;
- // is position in range of a territory?
- if([_position, 250] call ExileClient_util_world_isTerritoryInRange) then { _chance = 0; };
- // is position in range of a trader zone?
- if([_position, 500] call ExileClient_util_world_isTraderZoneInRange) then { _chance = 0; };
- if (_chance >= random 100) then
- {
- _buildings = player nearObjects ["House", 300];
- {
- if !(_buildings isEqualTo []) then
- {
- _nearZombies = getPos _x nearEntities [_zombies,150];
- if ((count _nearZombies) > 0) exitWith {};
- _positionsToSpawn = _x buildingPos -1;
- //if (random 1 > 0.8) then
- //{
- ["spawnZombieNearTarget", [_positionsToSpawn]] call ExileClient_system_network_send;
- //};
- };
- } forEach _buildings;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement