mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-13 13:21:57 +03:00
Update damage handler and improve study body
Vanilla development commits applied: https://github.com/DayZMod/DayZ/commit/3db0fe8e7a3df0c2ab9e0f6bb220acf84e450da3 https://github.com/DayZMod/DayZ/commit/73a63898f11501c4aad83ead106c90b3e49461ac https://github.com/DayZMod/DayZ/commit/08e18d5b526f8f8ee570fed1a3640d217f7fa83b https://github.com/DayZMod/DayZ/commit/126da2dcd38a03d5583627607a78d37ad7f64091 https://github.com/DayZMod/DayZ/commit/d5fa3238656c06f8a8c1996d748130002ab2a7f6 https://github.com/DayZMod/DayZ/commit/d37526fcc62a3291fe3b7135bacb4fb172184989 https://github.com/DayZMod/DayZ/commit/5fcca134f05ddf3e4b9458cf9fe54154a9575616 https://github.com/DayZMod/DayZ/commit/c9c1fc934d449b33a9ef3bf14a82b5a40d93874b
This commit is contained in:
@@ -1,17 +1,22 @@
|
||||
private["_body","_name","_method","_methodStr"];
|
||||
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";
|
||||
_killingBlow = _body getVariable ["KillingBlow",objNull];
|
||||
|
||||
format[localize "str_player_studybody",_name,_methodStr] call dayz_rollingMessages;
|
||||
// "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"};
|
||||
|
||||
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];
|
||||
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];
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user