Shooting Down Missiles

Hi

My game features ship combat with missiles and I recently switched over to HomingCast to handle them for better hit detection.

Ships have CIWS to counter these missiles by shooting them down, however I now handle the missiles purely on the client. I also handle normal projectiles in the same way.

Client fires hit detection bullet with tracer - tells server - server tells other clients to fire the same tracer - original shooter client tells server if the bullet hit and if it does it’ll apply damage to either a part or a humanoid.

This is okay but since the missiles are handled on the client my bullet-part damage script (which is server sided) can no longer apply to the part since it literally
doesn’t exist for the server

The best idea I can think of is individual clients detecting if their own bullets hit a missile and then telling the server to tell all clients that a missile got shot down, but not only is this kinda weird (id have to send a way to identify a missiles actual handler jsut by its model) but it’s also kinda concerning for cheating purposes.

Any other solutions are appreciated, thanks.

1 Like