1.4 KiB
1.4 KiB
1. Authoritative State Ownership
- 1.1 Add a client-side authoritative player-state snapshot model or owner on
Playerso position, rotation, HP, and optional velocity have one explicit owner per player. - 1.2 Update the
NetworkManager -> MasterManager -> Playerreceive path so acceptedPlayerStatepackets refresh that owned authoritative snapshot before presentation reads it.
2. Client Application
- 2.1 Update local-player reconciliation so authoritative
PlayerState.Tickstill drives prediction replay while authoritative position and rotation are applied from the accepted snapshot. - 2.2 Update remote-player presentation to consume authoritative position, rotation, HP, and optional velocity from the owned snapshot without inventing gameplay truth.
- 2.3 Expose authoritative HP or comparable authoritative-state diagnostics in the current MVP UI so server-truth changes are visible during development.
3. Verification
- 3.1 Add or extend edit-mode tests for authoritative
PlayerStateownership and stale-packet rejection on the client side where practical. - 3.2 Add or extend regression tests for local reconciliation and remote authoritative-state application behavior that this step changes.
- 3.3 Run the relevant validation flow and confirm the client-side authoritative
PlayerStatepath works in editor play/testing.