Exile Snap Mode Rotation Correction

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-07-24 08:56:34 -05:00
parent a1dd93b901
commit 4df1bf31dd

View File

@ -74,6 +74,8 @@ switch (_keyCode) do
case 0x10: case 0x10:
{ {
if (ExileClientIsInConstructionMode) then if (ExileClientIsInConstructionMode) then
{
if!(ExileClientConstructionMode isEqualTo 3)then
{ {
_step = 1; _step = 1;
if(_shiftState)then{_step = 3;}; if(_shiftState)then{_step = 3;};
@ -82,11 +84,32 @@ switch (_keyCode) do
BuildVecYaw = (((BuildVecYaw - _step)min 360) max -360); BuildVecYaw = (((BuildVecYaw - _step)min 360) max -360);
[] call ExileClient_gui_constructionMode_update; [] call ExileClient_gui_constructionMode_update;
_stopPropagation = true; _stopPropagation = true;
}
else
{
_step = 45;
if (_shiftState) then
{
_step = 90;
}
else
{
if (_controlState) then
{
_step = 22.5;
};
};
ExileClientConstructionRotation = (ExileClientConstructionRotation - _step + 360) % 360;
[] call ExileClient_gui_constructionMode_update;
_stopPropagation = true;
};
}; };
}; };
case 0x12: case 0x12:
{ {
if (ExileClientIsInConstructionMode) then if (ExileClientIsInConstructionMode) then
{
if!(ExileClientConstructionMode isEqualTo 3)then
{ {
_step = 1; _step = 1;
if(_shiftState)then{_step = 3;}; if(_shiftState)then{_step = 3;};
@ -95,6 +118,25 @@ switch (_keyCode) do
BuildVecYaw = (((BuildVecYaw + _step)min 360) max -360); BuildVecYaw = (((BuildVecYaw + _step)min 360) max -360);
[] call ExileClient_gui_constructionMode_update; [] call ExileClient_gui_constructionMode_update;
_stopPropagation = true; _stopPropagation = true;
}
else
{
_step = 45;
if (_shiftState) then
{
_step = 90;
}
else
{
if (_controlState) then
{
_step = 22.5;
};
};
ExileClientConstructionRotation = (ExileClientConstructionRotation + _step + 360) % 360;
[] call ExileClient_gui_constructionMode_update;
_stopPropagation = true;
};
}; };
}; };
case 0x47: case 0x47: