Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the Horizontal state is set when buckling/unbuckling #2769

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BarryNorfolk
Copy link
Contributor

@BarryNorfolk BarryNorfolk commented Jan 18, 2025

About the PR

Ensures the appearance data for the rotation is set to Horizontal when buckled, and Vertical when unbuckling. Fixes #2740
Please give it a test yourself.

I found that the best way to cause the bug is to give asphyx damage to the entity on the table, that seemed to work well.

Why / Balance

It's annoying for the up/down thing when you're buckled in.

Technical details

Bug effectively comes down to damage causing an evaluation of appearance and the rotations. The the client gets the message about apperance data being updated, the buckle system wants to set the rotation animation going but never sets the actual data that says "This entity is horizontal". So when the rotation system also gets this appearance change event, it just sets the rotation back to what it thinks is correct, which is vertical.

To fix, we just make the shared buckle system actually set the expected rotation when buckled and unbuckled.

Media

Before
https://github.com/user-attachments/assets/64c1d5c9-5e88-4cae-ab35-4bdc8f7eb1e4

After
https://github.com/user-attachments/assets/64d9be5a-40e1-48a1-8883-8eb94bceee74

Requirements

  • I have tested all added content and changes.
  • I have added media to this PR or it does not require an ingame showcase.

Breaking changes

N/A

Changelog
🆑

  • fix: Fix the up/down when entities are buckled.

@github-actions github-actions bot added size/XS Under 16 lines Changes: C# Changes any cs files and removed size/XS Under 16 lines labels Jan 18, 2025
@BarryNorfolk BarryNorfolk marked this pull request as ready for review January 18, 2025 20:55
@BarryNorfolk BarryNorfolk requested a review from a team as a code owner January 18, 2025 20:55
Copy link
Member

@deltanedas deltanedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will make people on chairs sideways, and also it calls Down for beds, which should set the visual

@BarryNorfolk
Copy link
Contributor Author

this will make people on chairs sideways, and also it calls Down for beds, which should set the visual

Ah bugger. Good point, didn't check :/
Will think how to fix this better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files S: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Players move vertical and horizontal after shitmed merge
2 participants