Update GMS_fnc_processIlleagalAIKills.sqf

Cleaned up code a bit.
This commit is contained in:
Ghostrider-DbD- 2017-06-04 09:31:44 -04:00 committed by GitHub
parent 27e31c5f48
commit e8b863a8f5

View File

@ -1,6 +1,6 @@
/* /*
by Ghostrider by Ghostrider
4-12-17 6-1-17
-------------------------- --------------------------
License License
-------------------------- --------------------------
@ -12,13 +12,13 @@
private["_missionType","_wasRunover","_launcher","_legal"]; private["_missionType","_wasRunover","_launcher","_legal"];
params["_unit","_killer"]; params["_unit","_killer"];
//diag_log format["##-processIlleagalAIKills.sqf-## processing illeagal kills for unit %1",_unit]; diag_log format["##-processIlleagalAIKills.sqf-## processing illeagal kills for unit %1",_unit];
_launcher = _unit getVariable ["Launcher",""]; _launcher = _unit getVariable ["Launcher",""];
_legal = true; _legal = true;
_fn_targetVehicle = { // force AI to fire on the vehicle with launchers if equiped _fn_targetVehicle = { // force AI to fire on the vehicle with launchers if equiped
params["_unit","_vk"]; params["_unit","_vk"];
private private["_unit"];
{ {
if ( ( (getPos _vk) distance2d (getPos _x) ) < 500 ) then if ( ( (getPos _vk) distance2d (getPos _x) ) < 500 ) then
{ {