Skip to content

Conversation

LPLafontaineB
Copy link
Contributor

@LPLafontaineB LPLafontaineB commented Jan 4, 2023

Description

Because of NetworkTransform's interpolation, the bullets' explosion vfx were happening too early on clients. This PR fixes this by removing the NetworkTransform entirely. Bullets are now spawned and initialized on the server and clients handle their movement locally. Collision detection still happens only on the server. The result is that bullets' positions are no longer synchronized and interpolated. It is thus possible that a small desync happens during a bullet's lifetime, but since it is quite short it wouldn't cause issues. Plus, it would only be a visual artifact since all gameplay logic is still server-driven.

Issue Number(s)

MTT-5080

Contribution checklist

  • Tests have been added for the project and/or any internal package
  • Release notes have been added to the project changelog file
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink

@LPLafontaineB LPLafontaineB added the bug Something isn't working label Jan 4, 2023
@LPLafontaineB LPLafontaineB marked this pull request as ready for review January 4, 2023 18:46
@LPLafontaineB LPLafontaineB merged commit 7a0900d into develop Jan 4, 2023
@LPLafontaineB LPLafontaineB deleted the fix/bullet-explosion-desync branch January 4, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants