I am scuffling with tips on how to deal with a selected scenario in a prediction/reconciliation server mannequin.
- At
t=0
, Participant A is firing. Participant B is shifting into A’s line of fireside - At
t=1
, Participant B strikes into A’s line of fireside and will get harm, decreasing well being from100
to50
- At
t=2
, the server receives enter from participant B fort=1
. That enter confirms that participant B moved into the road of fireside, so the server responds with a packet fort=1
indicating that the participant’s well being is now50
- Participant B receives this packet, and noting that well being dropped, flashes the display purple.
- The server receives enter from Participant A for
t=1
, indicating that A stopped firing. The server rolls again tot=1
, re-simulates, and realizes participant B didn’t get hit. - The following state despatched to B signifies
well being=100
.
How do I deal with the truth that shopper B confirmed a purple display flash based mostly on data acquired from the server, after which later discovered that they weren’t in actual fact harm?
This sounds a bit just like the scenario of e.g. Supply Video games favoring the shooter. Nevertheless, on this case, even participant A didn’t suppose they hit participant B on their very own display.
Can the server not ship a state for t=1
till it has inputs from each participant for that body? That looks as if it will trigger a single latent participant to decelerate the expertise for everybody else.