Open LocalInsomniac opened 2 months ago
The local Player's Thing gets ticked with f_predicting
enabled, which lets the Thing move freely without altering anything in the game world. The variables stored in the predict_host
struct are Thing
(and ModelInstance
if available) variables that can be freely modified during prediction ticks, while anything else will risk a desync.
See #65.
For the local player,
PlayerPawn
virtual functionsplayer_update()
andplayer_update_camera()
would be called in a "predicting" state, which will only change the pawn's position then roll back to the last synced position on host tick.