mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +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:
@@ -1580,7 +1580,7 @@ if (_canBuild) then {
|
||||
};
|
||||
};
|
||||
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
|
||||
_builtObject addEventHandler ["HandleDamage", {false}];
|
||||
_builtObject addEventHandler ["HandleDamage", {0}];
|
||||
};
|
||||
} else { // if magazine was not removed, cancel publish
|
||||
deleteVehicle _builtObject;
|
||||
|
||||
@@ -110,7 +110,7 @@ if (count _upgrade > 0) then {
|
||||
|
||||
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
|
||||
|
||||
_object addEventHandler ["HandleDamage", {false}];
|
||||
_object addEventHandler ["HandleDamage", {0}];
|
||||
|
||||
} else {
|
||||
//
|
||||
|
||||
@@ -188,7 +188,7 @@ if ((count _upgrade) > 0) then {
|
||||
|
||||
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
|
||||
|
||||
_object addEventHandler ["HandleDamage",{false}];
|
||||
_object addEventHandler ["HandleDamage",{0}];
|
||||
|
||||
} else {
|
||||
//
|
||||
|
||||
@@ -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