<commit_before>private["_unit", "_killer", "_rewardKey", "_bountyAmount", "_bountyKills"];

_unit = param [0, objNull, [objNull]];
_killer = param [1, objNull, [objNull]];
_bountyAmount = param [2, 0, [0]];

//Process transfer of bounty to killer
_rewardKey = call A3W_fnc_generateKey + "_rewardBounty";
_unit setVariable [_rewardKey, true, false];
pvar_bountyProcessing = ["rewardbounty", _unit, _killer, _rewardKey];
publicVariableServer "pvar_bountyProcessing";

//Add to killer's bounty kills
_bountyKills = _killer getVariable ["bountyKills", []];
_floatDateStamp = missionStart;
_floatDateStamp resize 5;
_floatDateStamp = (dateToNumber _floatDateStamp) + (diag_tickTime / 31536000);
_noMatch = true;
{ if(_x select 0 == getPlayerUID _unit) exitWith{
  _x set [1, _floatDateStamp];
  _noMatch = false;
} } forEach _bountyKills;
if(_noMatch)then{
  _bountyKills pushBack [getPlayerUID _unit, _floatDateStamp];
  _killer setVariable ["bountyKills", _bountyKills, true];
};

//Broadcast bounty kill to everyone
[ parseText format
  [ "<t shadow='2' size='1.75' color='#ff5f4a'>Killed!</t><br/>" +
    "<t color='#ff5f4a'>--------------------------------</t><br/>" +
    "<t size='1.25' color='#ff5f4a'>%1</t><t size='1.25'> is finally dead!</t><br/>" +
    "<img size='5' image='addons\bounty\icons\kill.paa'/><br/>" +
    "<t color='#ff5f4a'>%2</t> <t>has been rewarded the bounty of $%3</t>",
    name _unit,
    name _killer,
    _bountyAmount
   ]
  ] call hintBroadcast;<commit_msg>add some random kill messages<commit_after>private["_unit", "_killer", "_rewardKey", "_bountyAmount", "_bountyKills"];

_unit = param [0, objNull, [objNull]];
_killer = param [1, objNull, [objNull]];
_bountyAmount = param [2, 0, [0]];

//Process transfer of bounty to killer
_rewardKey = call A3W_fnc_generateKey + "_rewardBounty";
_unit setVariable [_rewardKey, true, false];
pvar_bountyProcessing = ["rewardbounty", _unit, _killer, _rewardKey];
publicVariableServer "pvar_bountyProcessing";

//Add to killer's bounty kills
_bountyKills = _killer getVariable ["bountyKills", []];
_floatDateStamp = missionStart;
_floatDateStamp resize 5;
_floatDateStamp = (dateToNumber _floatDateStamp) + (diag_tickTime / 31536000);
_noMatch = true;
{ if(_x select 0 == getPlayerUID _unit) exitWith{
  _x set [1, _floatDateStamp];
  _noMatch = false;
} } forEach _bountyKills;
if(_noMatch)then{
  _bountyKills pushBack [getPlayerUID _unit, _floatDateStamp];
  _killer setVariable ["bountyKills", _bountyKills, true];
};

//Broadcast bounty kill to everyone
[ parseText format
  [ "<t shadow='2' size='1.75' color='#ff5f4a'>Killed!</t><br/>" +
    "<t color='#ff5f4a'>--------------------------------</t><br/>" +
    "<t size='1.25' color='#ff5f4a'>%1</t><t size='1.25'> %4</t><br/>" +
    "<img size='5' image='addons\bounty\icons\kill.paa'/><br/>" +
    "<t color='#ff5f4a'>%2</t> <t>has been rewarded the bounty of $%3</t>",
    name _unit,
    name _killer,
    _bountyAmount,
    [
      "is finally dead!",
      "has ceased to be!",
      "has expired and gone to meet their maker",
      "has kicked the bucket!",
      "got fucked up!",
      "is taking a swim with cement boots",
      "is now a worm buffet",
      "is taking a dirt nap"
    ] call BIS_fnc_selectRandom
   ]
  ] call hintBroadcast;
{'fraction_non_alphanumeric': 0.17484008528784648, 'fraction_numerical': 0.024063356685957965, 'mean_word_length': 4.3311688311688314, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '1186090', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1203, 'n_words': 296}