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

@@ -31,9 +31,9 @@ if ([_object, "Server"] call check_publishobject) then {
if !(_object isKindOf "TrapItems") then {
if (DZE_GodModeBase && {!(_type in DZE_GodModeBaseExclude)}) then {
_object addEventHandler ["HandleDamage", {false}];
_object addEventHandler ["HandleDamage", {0}];
} else {
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
_object addMPEventHandler ["MPKilled",{if !(isServer) exitWith {};_this call vehicle_handleServerKilled;}];
};
};
// Test disabling simulation server side on buildables only.