mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
SupportCopter v2
This commit is contained in:
parent
965ff047e9
commit
0d35af5052
@ -22,7 +22,10 @@ _bomb = objNull;
|
||||
if(_doVariable)then{_unitClass call EPOCH_unitSpawnIncrease;};//Assumes Antagonist is required.
|
||||
|
||||
_index = EPOCH_spawnIndex find _unitClass;
|
||||
_spawnLimit = EPOCH_playerSpawnArray select _index;
|
||||
_spawnLimit = 0;
|
||||
if (_index != -1) then {
|
||||
_spawnLimit = EPOCH_playerSpawnArray select _index;
|
||||
};
|
||||
_currentLimit = count(_trgt nearEntities[_unitClass, 800]);
|
||||
if (!_doVariable && (_currentLimit >= _spawnLimit)) exitWith {
|
||||
diag_log format["DEBUG: too many %1 exiting unitspawn",_unitClass];
|
||||
|
Loading…
Reference in New Issue
Block a user