Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

any idea how Phantom Forces deals with ray casting without delay between network communication?

I think what PF developers did was casting rays in local script and manipulating hit part from server, but what if exploiter changed the position of ray origin part?

1 answer

✓ Accepted answer

My guess is that in order to maintain immediate feedback, ray casting is done on the client with some extra data sent to the server. Then they probably have a server Script make some "sanity checks" and throw out any casted rays that seem unfit given the current context of the game (as seen by the server).

1 comment

0

Well nice opinion.But i think the fact that most of the time there is a delay between one player shooting and other getting damaged, so maybe local ray cast is just for visuals of shooter

This discussion is preserved as it was. New answers, comments, and votes are closed.