Fix "AI" text localized on wrong client in death message #1867

Fixes #1867
This commit is contained in:
ebaydayz
2017-01-10 13:38:00 -05:00
parent 5c8ae96887
commit 131329fd59
6 changed files with 53 additions and 40 deletions

View File

@@ -34,7 +34,7 @@ if (!isNull _source) then {
if (_sourceWeapon == "Throw") then {_sourceWeapon = (weaponState _source) select 3;};
if (_ammo in ["PipeBomb","Mine","MineE"]) then {_sourceWeapon = _ammo;};
if (alive _source) then {
_sourceName = if (isPlayer _source) then {name _source} else {localize "STR_PLAYER_AI"};
_sourceName = if (isPlayer _source) then {name _source} else {"AI"};
};
if (_source == _body) then {_sourceName = dayz_playerName;};
};