Fix MPKilled mp evh call on client, add correct 0 return value for all HandleDamage evhs when godmode

This commit is contained in:
A Man
2022-04-18 10:22:42 +02:00
parent 2a1f36f55c
commit bec7ff8146
8 changed files with 11 additions and 11 deletions

View File

@@ -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;