Include Base Building Godmode

This commit is contained in:
Skaronator
2014-02-06 11:52:18 +01:00
parent a625738ce9
commit c3112bc12d
4 changed files with 25 additions and 10 deletions

View File

@@ -18,8 +18,9 @@ if(!isNull(_obj)) then {
_objectID = _obj getVariable ["ObjectID","0"];
// Find objectUID
_objectUID = _obj getVariable ["ObjectUID","0"];
_obj removeAllMPEventHandlers "MPKilled";
if !(DZE_GodModeBase) then {
_obj removeAllMPEventHandlers "MPKilled";
};
// Remove old object
deleteVehicle _obj;
@@ -63,8 +64,11 @@ _key call server_hiveWrite;
_object setVariable ["lastUpdate",time];
_object setVariable ["ObjectUID", _uid,true];
// _object setVariable ["CharacterID",_charID,true];
_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
if (DZE_GodModeBase) then {
_object addEventHandler ["HandleDamage", {false}];
}else{
_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
};
// Test disabling simulation server side on buildables only.
_object enableSimulation false;