mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Compatibility to Enhanced Movement
Not tested - Feedback required!!!
This commit is contained in:
parent
1976a7b839
commit
56a539ee55
@ -118,6 +118,12 @@ forceRestartTime = 14400; // 4 hour restarts
|
|||||||
};
|
};
|
||||||
ExceptedDeSymObjects[] = { // Not Desymulated, also if in a Class of DeSimulateObjects
|
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
|
// Dynamic Simulation System
|
||||||
enableDynamicSimulationSystem = "true"; // enable / disable the complete dynamic simulation system
|
enableDynamicSimulationSystem = "true"; // enable / disable the complete dynamic simulation system
|
||||||
|
@ -26,6 +26,7 @@ _ExceptedBaseObjects = [_serverSettingsConfig, "ExceptedBaseObjects", []] call E
|
|||||||
_UseDeSimulateObjects = [_serverSettingsConfig, "UseDeSimulateObjects", true] call EPOCH_fnc_returnConfigEntry;
|
_UseDeSimulateObjects = [_serverSettingsConfig, "UseDeSimulateObjects", true] call EPOCH_fnc_returnConfigEntry;
|
||||||
_DeSimulateObjects = [_serverSettingsConfig, "DeSimulateObjects", []] call EPOCH_fnc_returnConfigEntry;
|
_DeSimulateObjects = [_serverSettingsConfig, "DeSimulateObjects", []] call EPOCH_fnc_returnConfigEntry;
|
||||||
_ExceptedDeSymObjects = [_serverSettingsConfig, "ExceptedDeSymObjects", []] call EPOCH_fnc_returnConfigEntry;
|
_ExceptedDeSymObjects = [_serverSettingsConfig, "ExceptedDeSymObjects", []] call EPOCH_fnc_returnConfigEntry;
|
||||||
|
_DisableDoorsOnObj = [_serverSettingsConfig, "DisableDoorsOnObj", []] call EPOCH_fnc_returnConfigEntry;
|
||||||
_cfgEpochClient = 'CfgEpochClient' call EPOCH_returnConfig;
|
_cfgEpochClient = 'CfgEpochClient' call EPOCH_returnConfig;
|
||||||
_cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig;
|
_cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig;
|
||||||
_buildingJammerRange = getNumber(_cfgEpochClient >> "buildingJammerRange");
|
_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 {
|
if (isClass (configFile >> "CfgVehicles" >> _class) && (_damage < 1) && !(_class isKindOf 'Constructions_lockedstatic_F')) then {
|
||||||
|
|
||||||
_baseObj = createVehicle [_class, [0,0,0], [], 0, "CAN_COLLIDE"];
|
_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 (_UseIndestructible) then {
|
||||||
if ({_class iskindof _x} count _ExceptedBaseObjects == 0) then {
|
if ({_class iskindof _x} count _ExceptedBaseObjects == 0) then {
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,11 @@ if (!isNull _object && !(_class isEqualTo "")) then {
|
|||||||
_UseIndestructible = [_serverSettingsConfig, "UseIndestructible", false] call EPOCH_fnc_returnConfigEntry;
|
_UseIndestructible = [_serverSettingsConfig, "UseIndestructible", false] call EPOCH_fnc_returnConfigEntry;
|
||||||
_IndestructibleBaseObjects = [_serverSettingsConfig, "IndestructibleBaseObjects", []] call EPOCH_fnc_returnConfigEntry;
|
_IndestructibleBaseObjects = [_serverSettingsConfig, "IndestructibleBaseObjects", []] call EPOCH_fnc_returnConfigEntry;
|
||||||
_ExceptedBaseObjects = [_serverSettingsConfig, "ExceptedBaseObjects", []] 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 (_UseIndestructible) then {
|
||||||
if ({_class iskindof _x} count _ExceptedBaseObjects == 0) then {
|
if ({_class iskindof _x} count _ExceptedBaseObjects == 0) then {
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user