mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Reduce to only one Var
This commit is contained in:
parent
1f8293ccc7
commit
bef09d5cd3
@ -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 -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 };
|
||||
case eXpoch_keysVectorTiltL: {_adj = 1;if(_shift)then{_adj = 2.5};if(_alt)then{_adj = 0.5};EPOCH_buildDirectionRoll = (EPOCH_buildDirectionRoll - _adj) max -EPOCH_MaxBuildingTilt; 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_MaxBuildingTilt; 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_MaxBuildingTilt; 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_MaxBuildingTilt; EPOCH_doRotate = true; _handled = true };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -83,8 +83,7 @@ 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_MaxBuildingTilt = ["CfgEpochClient", "MaxBuildingTilt", 180] call EPOCH_fnc_returnConfigEntryV2;
|
||||
Epoch_NuisanceMulti = ["CfgEpochClient", "NuisanceMulti", 0.5] call EPOCH_fnc_returnConfigEntryV2;
|
||||
|
||||
//ON INIT and RESPAWN
|
||||
|
@ -56,8 +56,7 @@ 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
|
||||
MaxBuildingTilt = 180; // Max degrees players can tilt building elements
|
||||
|
||||
AtmBlockedAtPlot = "true"; // Block ATM's in Plotpole-Range
|
||||
disableRemoteSensors = "true"; // disableRemoteSensors true/false
|
||||
|
Loading…
Reference in New Issue
Block a user