A shot hits a player where the shooter saw it #33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/3996-a-shot-hits-a-player-where-the-shooter-s"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracker: #3996
Lag-compensated shots, step 5 of the multiplayer netcode plan (#3571).
Tests:
tests/sim_lagged_shots.sx: at 150 ms round trip with jitter and 2% loss, a shooter fires at a target strafing across its view, aimed where its client draws it. The server's answer names the target. The same ray against the target where the server has it as the shot fires misses. Five hits kill, and the respawn follows.tests/sim_rewind.sx: interpolation between kept ticks, the 0.5 s limit, a wall and a body in front of the rewound target taking the hit, and five hits killing.tests/net_messages.sx,tests/net_deltas.sx,tests/sim_client.sxandtests/walk_sdl_events.sx: the wire format and the NaN refusal, answers repeating until acknowledged, the view time, and the clicks.To check in the app: under
--lag 150, shoot a bot walking past. It dies in 5 hits where it was drawn.