Skip to content

Commit

Permalink
Allow standing system to handle up/down before buckling occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryNorfolk committed Jan 19, 2025
1 parent f2ad3e2 commit c54c337
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 c54c337

Please sign in to comment.