mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Config to restrict Vectorbuilding (max tilting)
This commit is contained in:
parent
af6318940b
commit
1f8293ccc7
@ -161,10 +161,10 @@ if (vehicle player == player) then {
|
||||
};
|
||||
if (Epoch_target iskindof 'Const_Ghost_EPOCH') then {
|
||||
switch (_dikCode) do {
|
||||
case eXpoch_keysVectorTiltL: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionRoll = (EPOCH_buildDirectionRoll - _adj) max -180; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltR: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionRoll = (EPOCH_buildDirectionRoll + _adj) min 180; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltAwy: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionPitch = (EPOCH_buildDirectionPitch - _adj) max -180; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltTwd: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionPitch = (EPOCH_buildDirectionPitch + _adj) min 180; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltL: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionRoll = (EPOCH_buildDirectionRoll - _adj) max -EPOCH_MaxBuildingTiltLR; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltR: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionRoll = (EPOCH_buildDirectionRoll + _adj) min EPOCH_MaxBuildingTiltLR; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltAwy: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionPitch = (EPOCH_buildDirectionPitch - _adj) max -EPOCH_MaxBuildingTiltFB; EPOCH_doRotate = true; _handled = true };
|
||||
case eXpoch_keysVectorTiltTwd: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionPitch = (EPOCH_buildDirectionPitch + _adj) min EPOCH_MaxBuildingTiltFB; EPOCH_doRotate = true; _handled = true };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -83,6 +83,8 @@ EPOCH_keysActionPressed = false; //prevents EH spam
|
||||
|
||||
// load some frequently used configs to variables
|
||||
EPOCH_maxBuildingHeight = ["CfgEpochClient", "maxBuildingHeight", 100] call EPOCH_fnc_returnConfigEntryV2;
|
||||
EPOCH_MaxBuildingTiltLR = ["CfgEpochClient", "MaxBuildingTiltLR", 180] call EPOCH_fnc_returnConfigEntryV2;
|
||||
EPOCH_MaxBuildingTiltFB = ["CfgEpochClient", "MaxBuildingTiltFB", 180] call EPOCH_fnc_returnConfigEntryV2;
|
||||
Epoch_NuisanceMulti = ["CfgEpochClient", "NuisanceMulti", 0.5] call EPOCH_fnc_returnConfigEntryV2;
|
||||
|
||||
//ON INIT and RESPAWN
|
||||
|
@ -56,6 +56,9 @@ class CfgEpochClient
|
||||
maxdoors = 10; // Max allowed doors per Group
|
||||
maxgates = 5; // Max allowed Gates per Group
|
||||
|
||||
MaxBuildingTiltLR = 180; // Max degrees players can tilt building elements left / right
|
||||
MaxBuildingTiltFB = 180; // Max degrees players can tilt building elements forward backward
|
||||
|
||||
AtmBlockedAtPlot = "true"; // Block ATM's in Plotpole-Range
|
||||
disableRemoteSensors = "true"; // disableRemoteSensors true/false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user