Remove client side disable sim on DZE_GodModeBase objects

Continuation of d7a3b30
This partially reverts ea94ec4.

Epoch has never disabled simulation client side on any buildables prior
to ea94ec4. We now know it disables storage capability, may disable
lighting the object with scripted light sources and potentially cause
other issues.
https://community.bistudio.com/wiki/enableSimulation

If we readd this in the future it should be well tested. It should also
be done properly in the vehicle init field, so it takes affect on all
clients, including JIP, instead of only the player building it (until
they relog).
This commit is contained in:
ebayShopper
2017-03-31 16:15:07 -04:00
parent d5e808e4d1
commit 6717b0c26e
5 changed files with 1 additions and 4 deletions

View File

@@ -22,6 +22,7 @@
[FIXED] Random skin selection on new character creation with DZE_defaultSkin = [["Male skin1","Male skin2"],["Female skin1","Female skin2"]];
[FIXED] Corpse markers are now deleted for bodies that are hidden.
[FIXED] Unable to sell classic 'ItemBloodbag' at traders. @oiad
[FIXED] The player building a shed, tent or other unlocked storage was unable to use its gear until relog when DZE_GodModeBase=true; @oiad
[NOTE] Fixes below are included in the mission file and server pbo as part of server package 1.0.6.1A (March 10th 2017)
[FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions.

View File

@@ -590,7 +590,6 @@ if (_canBuild select 0) then {
};
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
_tmpbuilt addEventHandler ["HandleDamage",{false}];
if !(_classname in DZE_isNewStorage) then {_tmpbuilt enableSimulation false;};
};
} else { //if magazine was not removed, cancel publish
deleteVehicle _tmpbuilt;

View File

@@ -471,7 +471,6 @@ if (_canBuild select 0) then {
};
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
_tmpbuilt addEventHandler ["HandleDamage",{false}];
_tmpbuilt enableSimulation false;
};
} else {
deleteVehicle _tmpbuilt;

View File

@@ -106,7 +106,6 @@ if ((count _upgrade) > 0) then {
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
_object addEventHandler ["HandleDamage",{false}];
_object enableSimulation false;
};
if (DZE_permanentPlot) then {

View File

@@ -127,7 +127,6 @@ if ((count _upgrade) > 0) then {
};
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
_object addEventHandler ["HandleDamage",{false}];
_object enableSimulation false;
};
if (DZE_permanentPlot) then {
_ownerID = _obj getVariable["ownerPUID","0"];