mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Extend DZE_GodModeBase to built items (#1898)
This now makes buildables properly apply godmode instead of having to wait till restart for: * Being built * Being upgraded * Being downgraded master
This commit is contained in:
@@ -23,7 +23,7 @@ if ([_object, "Server"] call check_publishobject) then {
|
||||
_key call server_hiveWrite;
|
||||
|
||||
if !(_object isKindOf "TrapItems") then {
|
||||
if (DZE_GodModeBase) then {
|
||||
if (DZE_GodModeBase && {!(_type in DZE_GodModeBaseExclude)}) then {
|
||||
_object addEventHandler ["HandleDamage", {false}];
|
||||
} else {
|
||||
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
|
||||
@@ -42,4 +42,4 @@ else {
|
||||
#ifdef OBJECT_DEBUG
|
||||
diag_log ("PUBLISH: *NOT* created " + (_type ) + " (not allowed)");
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user