[I believe that] The actual calculations for the game are done on the server.
So here is how it'd work:
Server <- Packets w/ info on what you press <- your rig
[Server calculates what happened...]
Server -> Packets w/ info on what happened -> your rig
Yes, this is a bit of a massive simplification. But it explains it, and I obviously don't know the specifics (I didn't make the game)... you can easily see it when you open your arsenal after collecting a ton of random junk. You press the inventory and LAGSPLOSION, because you just requested and now must update a big list of information to display.
This prevents hacking.