From ae637612201bcb76d1f3058000ca071eb7a32c38 Mon Sep 17 00:00:00 2001 From: IT07 Date: Sun, 8 May 2016 20:48:54 +0200 Subject: [PATCH] Fixed punishments --- exile_vemf_reloaded/functions/fn_aiKilled.sqf | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/exile_vemf_reloaded/functions/fn_aiKilled.sqf b/exile_vemf_reloaded/functions/fn_aiKilled.sqf index a34cd70..a39a6b5 100644 --- a/exile_vemf_reloaded/functions/fn_aiKilled.sqf +++ b/exile_vemf_reloaded/functions/fn_aiKilled.sqf @@ -75,13 +75,22 @@ if (_this isEqualType []) then }; } else // If kill from vehicle (NOT a roadkill) { - _killer = effectiveCommander _killer; - [_target, _killer] ExecVM "exile_vemf_reloaded\sqf\handleRespectGain.sqf"; - _sayKilled = "sayKilled" call VEMFr_fnc_getSetting; - if (_sayKilled > 0) then // Send kill message if enabled - { - [_target, _killer, _sayKilled] ExecVM "exile_vemf_reloaded\sqf\sayKilledWeapon.sqf"; - }; + if (typeOf (vehicle _target) isEqualTo "Steerable_Parachute_F") then + { + if ("logCowardKills" call VEMFr_fnc_getSetting isEqualTo 1) then + { + ["fn_aiKilled", 1, format["A coward (%1 @ %2) killed a parachuting AI", name _killer, mapGridPosition _killer]] spawn VEMFr_fnc_log; + }; + } else + { + _killer = effectiveCommander _killer; + [_target, _killer] ExecVM "exile_vemf_reloaded\sqf\handleRespectGain.sqf"; + _sayKilled = "sayKilled" call VEMFr_fnc_getSetting; + if (_sayKilled > 0) then // Send kill message if enabled + { + [_target, _killer, _sayKilled] ExecVM "exile_vemf_reloaded\sqf\sayKilledWeapon.sqf"; + }; + }; }; };