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:
@@ -588,6 +588,10 @@ if (_canBuild select 0) then {
|
||||
publicVariableServer "PVDZ_obj_Publish";
|
||||
};
|
||||
};
|
||||
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
|
||||
_tmpbuilt addEventHandler ["HandleDamage",{false}];
|
||||
_tmpbuilt enableSimulation false;
|
||||
};
|
||||
} else { //if magazine was not removed, cancel publish
|
||||
deleteVehicle _tmpbuilt;
|
||||
localize "str_epoch_player_46" call dayz_rollingMessages;
|
||||
@@ -610,4 +614,4 @@ if (_canBuild select 0) then {
|
||||
};
|
||||
};
|
||||
|
||||
dayz_actionInProgress = false;
|
||||
dayz_actionInProgress = false;
|
||||
|
||||
Reference in New Issue
Block a user