<commit_before>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2018 A3Wasteland.com *
// ******************************************************************************************
//	@file Name: fn_entityKilled.sqf
//	@file Author: AgentRev

if (!isServer) exitWith {};

params ["_entity", "_presumedKiller", "_instigator"];

// AI killed
if (_entity isKindOf "CAManBase" && !isPlayer _entity && {isNil {_killer getVariable "cmoney"} && getText (configFile >> "CfgVehicles" >> typeOf _entity >> "simulation") != "UAVPilot"}) then
{
	[_entity, _presumedKiller, "", _instigator] call FAR_setKillerInfo;

	private _killer = _entity getVariable "FAR_killerUnit";

	if (isNil "_killer" || {isNull _killer}) then
	{
		_killer = [_instigator, _presumedKiller] select isNull _instigator;
	};

	[_entity, effectiveCommander _killer, effectiveCommander _presumedKiller] call A3W_fnc_serverPlayerDied;
};<commit_msg>lil bug<commit_after>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2018 A3Wasteland.com *
// ******************************************************************************************
//	@file Name: fn_entityKilled.sqf
//	@file Author: AgentRev

if (!isServer) exitWith {};

params ["_entity", "_presumedKiller", "_instigator"];

// AI killed
if (_entity isKindOf "CAManBase" && !isPlayer _entity && {isNil {_entity getVariable "cmoney"} && getText (configFile >> "CfgVehicles" >> typeOf _entity >> "simulation") != "UAVPilot"}) then
{
	[_entity, _presumedKiller, "", _instigator] call FAR_setKillerInfo;

	private _killer = _entity getVariable "FAR_killerUnit";

	if (isNil "_killer" || {isNull _killer}) then
	{
		_killer = [_instigator, _presumedKiller] select isNull _instigator;
	};

	[_entity, effectiveCommander _killer, effectiveCommander _presumedKiller] call A3W_fnc_serverPlayerDied;
};
{'fraction_non_alphanumeric': 0.2855740922473013, 'fraction_numerical': 0.0068694798822374874, 'mean_word_length': 6.782442748091603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6067051', 'n_tokens_mistral': 632, 'n_tokens_neox': 591, 'n_words': 155}