Hello developers! My question is pretty straight forward. Basically, let’s imagine I have a local script which finds a target and sends a request to server to deal some damage to it. And my question is, is it a good idea to just create copy of function on client, which will process information along the server and just save the output without waiting for the response from server?
From an exploit, anti-cheat perspective, no. Often if you can do something on the server, you should process it from the server. This is because it is extremely easy to alter the client, then the server. I’m not saying it’s impossible to alter the server; what I am saying is it is much easier to alter the client then the server. If you can process targets on the server you should let the server decide the targets that should take damage.
My question is that is it a good idea to let run client independently of server with the actions made by same client? What I mean is that client will just send request to “calculate damage”(and server will calculate damage), while it’ll also calculate its own damage using same function,so server doesn’t get overwhelmed by sending a lot of data.