Config to disable Physics while building

This commit is contained in:
He-Man 2019-08-21 23:22:02 +02:00
parent 8db890ddec
commit c0d0e42c43
3 changed files with 4 additions and 1 deletions

View File

@ -52,6 +52,7 @@ EPOCH_simulSwap_Lock = true;
_objType = typeOf _object;
_cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig;
_class = getText(_cfgBaseBuilding >> _objType >> "GhostPreview");
_EnablePhysicsOnBuild = ["CfgEpochClient", "EnablePhysicsOnBuild", true] call EPOCH_fnc_returnConfigEntryV2;
if (_class != "") then {
_energyCost = getNumber(_cfgBaseBuilding >> _objType >> "energyCost");
@ -404,7 +405,7 @@ if (_class != "") then {
// remove item here
if (([player, _item] call BIS_fnc_invRemove) == 1) then {
if (_stabilityCheck && !isTouchingGround _currentTarget) then {
if (_stabilityCheck && !isTouchingGround _currentTarget && _EnablePhysicsOnBuild) then {
_offsetZPos = [_currentPos select 0, _currentPos select 1, (_currentPos select 2) - 0.5];
if !(terrainIntersect[_currentPos, _offsetZPos]) then {

View File

@ -49,6 +49,7 @@ class CfgEpochClient
maxBuildingHeight = 100; // Max Height, building is allowed.
splitCountLimits = 0; //1 = distinguish buildingCountLimit from storageCountLimit (ex.: buildingCountLimit=100, storageCountLimit=100 >> you can build 100 baseparts AND additional 100 storage objects like safes, lockboxes...)
MaxBuildingTilt = 180; // Max degrees players can tilt building elements
EnablePhysicsOnBuild = "true"; // Building parts need Snap (hold) points to not fall on the ground while building
class CfgJammers {
class PlotPole_EPOCH // Jammer Classname

View File

@ -61,6 +61,7 @@ All changes for [Arma 3](https://arma3.com/) [Epoch Mod](https://epochmod.com) a
- Players playtimes are now shown in the Playerlist in Adminmenu
- https://cdn.discordapp.com/attachments/474595539107971072/613059969943601208/unknown.png
- Added a function to jump up for Admins in Adminmenu
- Added an option "EnablePhysicsOnBuild" to cfgEpochClient.hpp to disable physics while Building
## [1.3.1.0] - 2019-03-28
### Added