Skip to content

Commit

Permalink
Ensure the Horizontal state is set when buckling/unbuckling (#2769)
Browse files Browse the repository at this point in the history
Allow standing system to handle up/down before buckling occurs
  • Loading branch information
BarryNorfolk authored Jan 19, 2025
1 parent f2ad3e2 commit 7b05aee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ private void Buckle(Entity<BuckleComponent> buckle, Entity<StrapComponent> strap

_audio.PlayPredicted(strap.Comp.BuckleSound, strap, user);

SetBuckledTo(buckle, strap!);
Appearance.SetData(strap, StrapVisuals.State, true);
Appearance.SetData(buckle, BuckleVisuals.Buckled, true);

Expand All @@ -384,6 +383,8 @@ private void Buckle(Entity<BuckleComponent> buckle, Entity<StrapComponent> strap
break;
}

SetBuckledTo(buckle, strap!); // DeltaV - Allow standing system to handle Down/Stand before buckling

var ev = new StrappedEvent(strap, buckle);
RaiseLocalEvent(strap, ref ev);

Expand Down

0 comments on commit 7b05aee

Please sign in to comment.