1.5 KiB
1.5 KiB
1. CombatEvent Receive Path
- 1.1 Register a client-side
CombatEventhandler inAssets/Scripts/NetworkManager.csand route parsed authoritative combat events through the existingNetworkManager -> MasterManager -> Playergameplay boundary. - 1.2 Extend the player-management path so authoritative combat events are delivered to the relevant local and/or remote player instance safely, including missing-player guard behavior for MVP diagnostics.
2. Player-Owned Combat Application
- 2.1 Add a player-owned client combat-result application path that can consume authoritative
CombatEventresults and update HP, death state, hit feedback, or equivalent presentation truth without bypassing existing authoritative player ownership. - 2.2 Keep local fire FX cosmetic by ensuring
ShootRejected, hit, damage, and death handling come from authoritativeCombatEventapplication rather than speculative local fire presentation. - 2.3 Expose lightweight MVP UI or debug visibility for recent authoritative combat results, including rejected shots and player damage/death changes where practical.
3. Verification
- 3.1 Add or extend edit-mode tests for client
CombatEventreceive routing and authoritative player-application behavior. - 3.2 Add or extend regression tests for
ShootRejectedvisibility and authoritative HP/death or hit-feedback updates that this change introduces. - 3.3 Run the relevant validation flow and confirm the client-side
CombatEventhandling path works in editor play/testing.