Testing Confirmed Kills System.

Vanilla development commit:
4881e00ecf

New - Journal Kills will only update during the session on confirmed
Kills (study dead body).
This commit is contained in:
ebaydayz
2016-07-21 11:31:47 -04:00
parent 9ae21dd4f5
commit f2687345cd
6 changed files with 31 additions and 2 deletions

View File

@@ -4,5 +4,14 @@ _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";
format[localize "str_player_studybody",_name,_methodStr] call dayz_rollingMessages;
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];
};