mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix death messages
This commit is contained in:
@@ -22,7 +22,7 @@ _infected = 0;
|
||||
if (r_player_infected && DZE_PlayerZed) then {
|
||||
_infected = 1;
|
||||
};
|
||||
PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected];
|
||||
PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected, dayz_playerName];
|
||||
publicVariableServer "PVDZE_plr_Died";
|
||||
|
||||
_id = [player,20,true,getPosATL player] call player_alertZombies;
|
||||
|
||||
@@ -671,7 +671,7 @@ if(!isDedicated) then {
|
||||
dayz_guiHumanity = -90000;
|
||||
dayz_firstGroup = group player;
|
||||
dayz_originalPlayer = player;
|
||||
dayz_playerName = "Unknown";
|
||||
dayz_playerName = name player;
|
||||
dayz_sourceBleeding = objNull;
|
||||
dayz_clientPreload = false;
|
||||
dayz_authed = false;
|
||||
|
||||
@@ -4,7 +4,9 @@ _attacker = _this select 1;
|
||||
_damage = _this select 2;
|
||||
|
||||
if (!isPlayer _victim || !isPlayer _attacker) exitWith {};
|
||||
if ((owner _victim) == (owner _attacker)) exitWith {};
|
||||
if ((owner _victim) == (owner _attacker)) exitWith {
|
||||
_victim setVariable["AttackedBy", _victim, true];
|
||||
};
|
||||
|
||||
_weapon = weaponState _attacker;
|
||||
if (_weapon select 0 == "Throw") then
|
||||
|
||||
@@ -5,7 +5,7 @@ _minutes = _this select 1;
|
||||
_newObject = _this select 2;
|
||||
_playerID = _this select 3;
|
||||
_infected = _this select 4;
|
||||
_victimName = name _newObject;
|
||||
_victimName = _this select 5;
|
||||
|
||||
_victim = _newObject;
|
||||
_newObject setVariable ["bodyName", _victimName, true];
|
||||
@@ -15,12 +15,12 @@ _killerName = _victim getVariable["AttackedByName", "nil"];
|
||||
|
||||
// when a zombie kills a player _killer, _killerName && _weapon will be "nil"
|
||||
// we can use this to determine a zombie kill && send a customized message for that. right now no killmsg means it was a zombie.
|
||||
if (_killerName != "nil") then
|
||||
if ((typeName _killer) != "STRING") then
|
||||
{
|
||||
_weapon = _victim getVariable["AttackedByWeapon", "nil"];
|
||||
_distance = _victim getVariable["AttackedFromDistance", "nil"];
|
||||
|
||||
if (_victimName == _killerName) then
|
||||
if ((owner _victim) == (owner _killer)) then
|
||||
{
|
||||
_message = format["%1 killed himself",_victimName];
|
||||
_loc_message = format["PKILL: %1 killed himself", _victimName];
|
||||
|
||||
Reference in New Issue
Block a user