mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Config to disable Physics while building
This commit is contained in:
parent
8db890ddec
commit
c0d0e42c43
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user