Hi
Can anyone discuss to me what happens when a player fires a grenade launcher?
Does the flow looks someting like:
1. client tag each bullet with an id and immediately sends network message that he has just fired
2. server receives fire message from client, adds it to a master list of bullets
3. every 50 ms server broadcasts all bullet positions, and resolves any collisions (with players and geometry)
4. each client receives updated bullet positions from server and renders them correctly. If the grenade hits or its timer has expired, it explodes. all of these info came from the server.
And if someone knows where all the network code is in the source please do point it out.
Thanks.