<commit_before>//	@file Version: 1.0
//	@file Name: serverPlayerDied.sqf
//	@file Author: [404] Pulse
//	@file Created: 20/11/2012 05:19

if (!isServer) exitWith {};

private ["_corpse", "_backpack"];
_corpse = _this select 0;
_corpse setVariable ["processedDeath", diag_tickTime];
_backpack = unitBackpack _corpse;

if (!isNull _backpack) then
{
	_backpack setVariable ["processedDeath", diag_tickTime];
};

{
	if (owner _x == owner _corpse && {!isNil {_x getVariable "mf_item_id"}}) then
	{
		_x setVariable ["processedDeath", diag_tickTime];
	};
} forEach (_corpse nearEntities ["All", 20]);

// Remove any persistent info about the player on death
if (["A3W_playerSaving"] call isConfigOn) then
{
	(getPlayerUID _corpse) call iniDB_delete;
};<commit_msg>Fixed problem with player save not being deleted on death<commit_after>//	@file Version: 1.0
//	@file Name: serverPlayerDied.sqf
//	@file Author: [404] Pulse, AgentRev
//	@file Created: 20/11/2012 05:19

if (!isServer) exitWith {};

private ["_corpse", "_backpack"];
_corpse = _this select 0;
_corpse setVariable ["processedDeath", diag_tickTime];
_backpack = unitBackpack _corpse;

if (!isNull _backpack) then
{
	_backpack setVariable ["processedDeath", diag_tickTime];
};

{
	if (owner _x == owner _corpse && {!isNil {_x getVariable "mf_item_id"}}) then
	{
		_x setVariable ["processedDeath", diag_tickTime];
	};
} forEach (_corpse nearEntities ["All", 20]);

// Remove any persistent info about the player on death
if (isPlayer _corpse && {["A3W_playerSaving"] call isConfigOn}) then
{
	((getPlayerUID _corpse) call PDB_databaseNameCompiler) call iniDB_delete;
};

if (goggles _corpse != "G_Diving") then { removeGoggles _corpse };
{'fraction_non_alphanumeric': 0.13711583924349882, 'fraction_numerical': 0.024822695035460994, 'mean_word_length': 5.388679245283019, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7643780', 'n_tokens_mistral': 641, 'n_tokens_neox': 590, 'n_words': 175}