mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Vanilla development commits applied:3db0fe8e7a73a63898f108e18d5b52126da2dcd3d5fa323865d37526fcc65fcca134f0c9c1fc934d
22 lines
998 B
Plaintext
22 lines
998 B
Plaintext
private["_body","_name","_method","_methodStr","_message"];
|
|
|
|
_body = _this select 3;
|
|
_name = _body getVariable["bodyName","unknown"];
|
|
_method = _body getVariable["deathType","unknown"];
|
|
_methodStr = localize format ["str_death_%1",_method];
|
|
_killingBlow = _body getVariable ["KillingBlow",objNull];
|
|
|
|
// "His/Her name was %1, it appears he/she died from %2"
|
|
_message = if (_body isKindOf "SurvivorW2_DZ") then {"str_player_studybody_female"} else {"str_player_studybody"};
|
|
|
|
format[localize _message,_name,_methodStr] call dayz_rollingMessages;
|
|
|
|
if (!(isNull _killingBlow) AND {(isPlayer _killingBlow)}) then {
|
|
if (typeName _killingBlow == "OBJECT") then {
|
|
_ConfirmedHumanKills = _killingBlow getVariable ["ConfirmedHumanKills",0];
|
|
_killingBlow setVariable ["ConfirmedHumanKills",(_ConfirmedHumanKills + 1),true];
|
|
} else {
|
|
_ConfirmedBanditKills = _killingBlow getVariable ["ConfirmedBanditKills",0];
|
|
_killingBlow setVariable ["ConfirmedBanditKills",(_ConfirmedBanditKills + 1),true];
|
|
};
|
|
}; |