mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +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;
|
||||
|
||||
Reference in New Issue
Block a user