mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-09 09:42:52 +03:00
Fix MPKilled mp evh call on client, add correct 0 return value for all HandleDamage evhs when godmode
This commit is contained in:
@@ -10,7 +10,7 @@ _old removeAllEventHandlers "HandleDamage";
|
||||
_old removeAllEventHandlers "Killed";
|
||||
_old removeAllEventHandlers "Fired";
|
||||
_old allowDamage false;
|
||||
_old addEventHandler ["handleDamage", {0}];
|
||||
_old addEventHandler ["HandleDamage", {0}];
|
||||
|
||||
//Logout
|
||||
local _humanity = player getVariable ["humanity",0];
|
||||
@@ -109,7 +109,7 @@ if (Z_SingleCurrency) then {
|
||||
call dayz_resetSelfActions; //New unit has no self actions yet. Reset variables so actions can be added back.
|
||||
dayz_actionInProgress = false; //Allow self actions to run now.
|
||||
|
||||
player removeAllEventHandlers "handleDamage";
|
||||
player removeAllEventHandlers "HandleDamage";
|
||||
eh_player_killed = player addeventhandler ["FiredNear",{_this call player_weaponFiredNear;}];
|
||||
[player] call fnc_usec_damageHandle;
|
||||
player allowDamage true;
|
||||
|
||||
@@ -70,7 +70,7 @@ _newUnit = _group createUnit [_class,respawn_west_original,[],0,"NONE"];
|
||||
_newUnit allowDamage false;
|
||||
|
||||
if (_isArray) then {
|
||||
mydamage_eh1 = _newUnit addEventHandler ["handleDamage", {0}];
|
||||
mydamage_eh1 = _newUnit addEventHandler ["HandleDamage", {0}];
|
||||
_newUnit setVariable ["characterID",(_this select 1),true];
|
||||
_newUnit setVariable ["humanity",(_this select 2),true];
|
||||
_newUnit setVariable ["zombieKills",(_this select 3),true];
|
||||
|
||||
Reference in New Issue
Block a user