Add IEDs to zeus with enabled asym debug

This commit is contained in:
Wyqer 2019-06-25 18:22:20 +02:00
parent 33577ddc45
commit 1c062000d0
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
2 changed files with 12 additions and 2 deletions

View File

@ -28,7 +28,12 @@ if (!(isnull _roadobj)) then {
_ied_obj = createMine [_ied_type, _roadpos getPos [_spread, random (360)], [], 0];
_ied_obj setdir (random 360);
if (KP_liberation_asymmetric_debug > 0) then {private _text = format ["[KP LIBERATION] [ASYMMETRIC] manage_asymIED.sqf -> IED %1 spawned at %2", _count, markerText _sector];_text remoteExec ["diag_log",2];};
if (KP_liberation_asymmetric_debug > 0) then {
private _text = format ["[KP LIBERATION] [ASYMMETRIC] manage_asymIED.sqf -> IED %1 spawned at %2", _count, markerText _sector];_text remoteExec ["diag_log",2];
{
[_x, [[_ied_obj], true]] remoteExecCall ["addCuratorEditableObjects", 2];
} forEach allCurators;
};
while {(_sector in KP_liberation_asymmetric_sectors) && (mineActive _ied_obj) && !_goes_boom} do {
_nearinfantry = ((getpos _ied_obj) nearEntities ["Man", _activation_radius_infantry]) select {side _x == GRLIB_side_friendly};

View File

@ -34,7 +34,12 @@ if (!(isnull _roadobj)) then {
_ied_obj = createMine [_ied_type, _roadpos getPos [_spread, random 360], [], 0];
_ied_obj setdir (random 360);
if (KP_liberation_asymmetric_debug > 0) then {private _text = format ["[KP LIBERATION] [ASYMMETRIC] ied_manager.sqf -> IED %1 spawned at %2", _number, markerText _sector];_text remoteExec ["diag_log",2];};
if (KP_liberation_asymmetric_debug > 0) then {
private _text = format ["[KP LIBERATION] [ASYMMETRIC] ied_manager.sqf -> IED %1 spawned at %2", _number, markerText _sector];_text remoteExec ["diag_log",2];
{
[_x, [[_ied_obj], true]] remoteExecCall ["addCuratorEditableObjects", 2];
} forEach allCurators;
};
while {_sector in active_sectors && mineActive _ied_obj && !_goes_boom} do {
_nearinfantry = ((getpos _ied_obj) nearEntities ["Man", _activation_radius_infantry]) select {side _x == GRLIB_side_friendly};