Hey there, I’m looking to understand the inner workings of the netcode for this engine. So far I have a handle on cpsr movement and mouse look for the active client player, which is that you simply run the movement code on the client immediately and then when an authorative server update comes in we rollback to the gamestate before we predicted anything and then re-apply the input snapshots from there. I have two main questions:
How does ioquake handle projectile based things such as rockets and grenades, are they using cpsr at all or are they simply rendered when they get received from the server?
How does ioquake handle hitscan based things such as railgun, machinegun, meele?
With respect to both of my questions I’m hoping someone can tell me what source files I should start poking around in to figure this out myself (or if they understand it and are willing to explain that would be great too!)