Compatibility to Enhanced Movement

Not tested - Feedback required!!!
This commit is contained in:
He-Man 2019-01-01 03:56:02 +01:00
parent 1976a7b839
commit 56a539ee55
3 changed files with 16 additions and 0 deletions

View File

@ -118,6 +118,12 @@ forceRestartTime = 14400; // 4 hour restarts
};
ExceptedDeSymObjects[] = { // Not Desymulated, also if in a Class of DeSimulateObjects
};
DisableDoorsOnObj[] = { // Add speacial Vars to disable Doors (no effect in Epoch, but 3rd party addons like enhanced movement)
"WoodLargeWallDoorL_EPOCH",
"WoodWall4_EPOCH",
"WoodLargeWallDoorL_EPOCH",
"CinderWallDoorwHatch_EPOCH"
};
// Dynamic Simulation System
enableDynamicSimulationSystem = "true"; // enable / disable the complete dynamic simulation system

View File

@ -26,6 +26,7 @@ _ExceptedBaseObjects = [_serverSettingsConfig, "ExceptedBaseObjects", []] call E
_UseDeSimulateObjects = [_serverSettingsConfig, "UseDeSimulateObjects", true] call EPOCH_fnc_returnConfigEntry;
_DeSimulateObjects = [_serverSettingsConfig, "DeSimulateObjects", []] call EPOCH_fnc_returnConfigEntry;
_ExceptedDeSymObjects = [_serverSettingsConfig, "ExceptedDeSymObjects", []] call EPOCH_fnc_returnConfigEntry;
_DisableDoorsOnObj = [_serverSettingsConfig, "DisableDoorsOnObj", []] call EPOCH_fnc_returnConfigEntry;
_cfgEpochClient = 'CfgEpochClient' call EPOCH_returnConfig;
_cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig;
_buildingJammerRange = getNumber(_cfgEpochClient >> "buildingJammerRange");
@ -88,6 +89,10 @@ for "_i" from 0 to _this do {
if (isClass (configFile >> "CfgVehicles" >> _class) && (_damage < 1) && !(_class isKindOf 'Constructions_lockedstatic_F')) then {
_baseObj = createVehicle [_class, [0,0,0], [], 0, "CAN_COLLIDE"];
if (_class in _DisableDoorsOnObj) then {
_baseObj setvariable ["bis_disabled_door",1,true];
_baseObj setvariable ["bis_disabled_hatch",1,true];
};
if (_UseIndestructible) then {
if ({_class iskindof _x} count _ExceptedBaseObjects == 0) then {
{

View File

@ -32,6 +32,11 @@ if (!isNull _object && !(_class isEqualTo "")) then {
_UseIndestructible = [_serverSettingsConfig, "UseIndestructible", false] call EPOCH_fnc_returnConfigEntry;
_IndestructibleBaseObjects = [_serverSettingsConfig, "IndestructibleBaseObjects", []] call EPOCH_fnc_returnConfigEntry;
_ExceptedBaseObjects = [_serverSettingsConfig, "ExceptedBaseObjects", []] call EPOCH_fnc_returnConfigEntry;
_DisableDoorsOnObj = [_serverSettingsConfig, "DisableDoorsOnObj", []] call EPOCH_fnc_returnConfigEntry;
if (_class in _DisableDoorsOnObj) then {
_baseObj setvariable ["bis_disabled_door",1,true];
_baseObj setvariable ["bis_disabled_hatch",1,true];
};
if (_UseIndestructible) then {
if ({_class iskindof _x} count _ExceptedBaseObjects == 0) then {
{