branchrust_reboot/main/mountable_rollbackcancel
7 Commits over 0 Days - Infinitycph!
Refactor tick parent history into TickHistory
Set parenthistory to false as default
main -> mountable_rollback
Cleanup
Make sure its explicitly named/works with only parents
Parenting doesnt allow to mountables all the time so going down a pure parenting route catches the cases we need
main -> mountable_rollback
- Add a serverside convar to be able to toggle it on/off
- Parameter-less constructor to Deque so it can be pooled
- Codegen
Initial attempt at mountable rollback to fix 'projectile invalid' when attacking a player thats on a mini or zipline etc.
We cheat by only storing player relative positions to avoid rolling back mountables physics positions
Each client will allocate and store the last 16 ticks. 192 bytes for each mounted player, which is reused via the pool.
Retain old behaviour if not mounted hit or if the last 16 ticks aren't available