So I'm currently thinking of the best way to structure the code for a gun
I'm thinking:
1): Client - Mouse is pressed
2): Client - While loop starts. Firing to server every 0.1 seconds
3): Client - Create the gunfire effects for this client specifically
4): Server - Processes the fired event, Handles ray-cast
5): Server - FireAllClients to handle effects
6): Client - Rest of the clients play effects, expect for the original client
A gun with a fire-rate of 0.1 seconds means (1/0.1)x60x2 = 1200 event fires between the client and the server per minute. Should I be worried? Is there a better way to do this?
