five-on-it / packages/protocol/src/codec / guessedInput
Function: guessedInput()
guessedInput(
last,pinOut):VehicleInput
Defined in: packages/protocol/src/codec.ts:177
The input the server runs a client's tick on when the client's own did not come in time (a stall, a lag spike, a tick the client dropped): last, the last input it took, held without its one-shot presses (ONE_SHOT_PRESSES), its transfer and its service, and without the trigger unless pinOut (a grenade's pin out stays held, so a gap never throws it). The server's input queue guesses by it (apps/server/src/input-queue.ts), and the client runs the ticks it drops on it (Predictor.guess), so both run them alike.
Parameters
last
pinOut
boolean