Skip to content

Commit

Permalink
Dhog's fucking condition 70.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Feb 24, 2024
1 parent f67f13d commit a596dc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vnavmesh/Movement/OverrideMovement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ private void RMIWalkDetour(void* self, float* sumLeft, float* sumForward, float*
{
_rmiWalkHook.Original(self, sumLeft, sumForward, sumTurnLeft, haveBackwardOrStrafe, a6, bAdditiveUnk);
// TODO: we really need to introduce some extra checks that PlayerMoveController::readInput does - sometimes it skips reading input, and returning something non-zero breaks stuff...
if (bAdditiveUnk == 0 && (IgnoreUserInput || *sumLeft == 0 && *sumForward == 0) && DirectionToDestination(false) is var relDir && relDir != null)
bool movementAllowed = bAdditiveUnk == 0 && !Service.Condition[Dalamud.Game.ClientState.Conditions.ConditionFlag.BeingMoved];
if (movementAllowed && (IgnoreUserInput || *sumLeft == 0 && *sumForward == 0) && DirectionToDestination(false) is var relDir && relDir != null)
{
var dir = relDir.Value.h.ToDirection();
*sumLeft = dir.X;
Expand Down

0 comments on commit a596dc7

Please sign in to comment.