From e6a4e39bb9dbf041ea8b2dfd3e7c65fb102d65fd Mon Sep 17 00:00:00 2001
From: vbawol <vbawol@veteranbastards.com>
Date: Wed, 22 Mar 2017 16:51:51 -0500
Subject: [PATCH] fixed soldier units spawning long after spotted

if unit is forced to spawn no need to increase random spawn limit, Also
since there was no way to decrease the spawn for soldiers they would
randomly spawn forever.
get random postion around player to spawn soldier if extra data is not
sent.
set soldiers to spawn at ground level.
---
 Sources/epoch_code/compile/EPOCH_unitSpawn.sqf | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf b/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf
index 78877054..feb899c8 100644
--- a/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf
+++ b/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf
@@ -123,7 +123,6 @@ switch _unitClass do {
 	};
 	case "I_UAV_01_F": {
 		for "_i" from 0 to (_unitCount-1) do {
-			_targetPos = getPosATL _trgt;
 			_targetPos = [_targetPos, 600, 1200, 5, 0, 400, 0] call BIS_fnc_findSafePos;
 			_targetPos set[2, 600];
 			_unit = createVehicle["I_UAV_01_F", _targetPos, [], 0, "FLY"];
@@ -151,7 +150,6 @@ switch _unitClass do {
 		};
 	};
     case "I_Soldier_EPOCH": {
-        _extraData params [["_pos",getpos player],["_copter",objnull]];
 		_grp = createGroup RESISTANCE;
 		_grp setBehaviour "COMBAT";
 		_grp setCombatMode "RED";