branchwiseguys/main/DestroyOrderTestingcancel
17 Commits over 0 Days - ∞cph!
Fix cleanup not happening when the client disconnects
Revert more changes that were just for testing
Revert changes that were just for testing
Fix wreckage spawner not calling the right type of destroy
Special fix for the following bug:
[SERVER]
- Character spawns
- Character queues spawn message.Has full HP
- Character gets killed immediately
- Character queues update message for the 0HP change
- Spawn message goes out. Has 0 HP now, so message sends with 0HP
[CLIENT}
- Client gets spawn message, starts initializing
- Initializes health.HP is already zero. Call death event immediately!
- But health script is only half-way through init. Missing references, things break.
With this fix, the pre-init spawn message with 0hp is clamped to 1, and the character still dies right after init when they get the follow-up 0hp update message.
Need more bots to make bugs show up faster
Fix destroy error showing on the client when there was no real problem
Tidier destroy/cleanup code. Hopefully makes more sense
Rearranging. Don't have to wait until next frame to call destroy code on client.
Better. Still breaks occasionally
Client now gets the destroy messages. Still got issues
Working on cleaning things up. Server can run without errors now. Clients still not getting the despawn/destroy messages they should be though.
Fix for the delete queue error. Needs testing, needs tidying up...
Use spectate bots mode to test more easily