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

Fix despawn for pre-spawned entities #819

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Conversation

cBournhonesque
Copy link
Owner

For prespawned entities that are despawned before matching with a server entity:

  • we do the same behaviour as normal predicted entities (we don't fully despawn the entity, instead we remove all components and keep a copy of them)
  • if the server entity never matches for some reason, the client entity gets cleaned up eventually
  • if the server entity matches, then all its components should match with the client history, and there shouldn't be any rollback! The client entity stays visually despawned.

Fixes #818

@cBournhonesque cBournhonesque merged commit 048c7be into main Jan 14, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to handle spawn-despawn for Prespawned entities before we receive the server entity?
1 participant