So i’m making an fps game however the guns can shoot at insane speeds and multiple bullets so I am wondering how I should handle displaying the bullets as their will be hundreds possibly thousands? Whether I should just do it on the server or use remote events to display them on the client.
Would love to here any thoughts anyone has on this. Thank you!
There is a modual called fastcast. I don’t know much about it but, many say it works well. May be worth checking out. This is a gun made with it and it is unloading just like you’re saying.
instead of using physical projectiles, i would strongly suggest using raycasting. to display the bullets, u can use beams that are displayed on the client (create 2 attachments, one at the origin of the ray and another at the final position the ray hit and then tween the first attachment towards the second one.)
fastcast works but if i recall correctly, i remember seeing something that said that the original creator stopped maintaining the module & that it’s starting to show its age.
tl;dr: use server-sided raycasting for hit detection and display “tracers” on the client
Use raycasts for bullets whether they are hitscan or projectile. This will be the most efficient. All hit detection should be done on the client and validated on the server. Otherwise you will have to lead your shots to compensate for ping which is not fun. You can then display the bullets with a tracer