mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Small ZombieSpawner fixes
This commit is contained in:
parent
496bb8aae1
commit
be579db029
Binary file not shown.
@ -65,6 +65,7 @@ _ZedSpawnCheck = {
|
||||
if ({vehicle _target iskindof _x} count BlackListedVehicles > 0) exitwith {};
|
||||
if (speed (vehicle _target) > 25) exitwith {};
|
||||
if ({_x distance2d _target < 150} count (missionnamespace getvariable ["Epoch_Plotpoles",[]]) > 0) exitwith {};
|
||||
if ({_x distance2d _target < 300} count NoZedAreas > 0) exitwith {};
|
||||
_OverallZeds = (entities [["EPOCH_RyanZombie_1","RyanZombieCivilian_F"],[],true,false]);
|
||||
_AliveZeds = _OverallZeds select {alive _x};
|
||||
if ((count _AliveZeds) <= MaxOverallZeds) then {
|
||||
|
@ -25,8 +25,8 @@ if !(isclass (configFile >> "CfgPatches" >> "Ryanzombies")) exitwith {};
|
||||
_dir = direction _zombie;
|
||||
_strength = _zombie call RZ_fnc_zombie_getHumanVelocityStrength;
|
||||
[_target, [(_vel select 0) + (sin _dir * _strength), (_vel select 1) + (cos _dir * _strength), (_vel select 2) + random 1]] remoteExecCall ["fnc_RyanZombies_Velocity"];
|
||||
[] remoteexec ['Epoch_ZedAttack',_target];
|
||||
};
|
||||
[] remoteexec ['Epoch_ZedAttack',_target];
|
||||
sleep _attackSpeed;
|
||||
};
|
||||
RZ_fnc_zombie_checkForNewTarget =
|
||||
|
Loading…
Reference in New Issue
Block a user