I currently have a character with several abilities, but the problem is that they dont feel responsive.
The system goes like this:
The client fires a remote to the server
The server validates if the player can use this ability
Server fires a function that does stuff
The animations for the abilities are played on the server, so i suspect thats the issue. Although i think making the client handle the abilities isnt any better. I would like to hear your solution to the problem.
Do note prior to reading this that I’ve never actually done what I am saying, so take it with a grain of salt.
What I would do is first create the ability on the client, ask the server if it was ok (sanity check) If not, no biggie since it is client side. If it is valid, duplicate the effects to every other client. For hitboxes I would do something similar, have the client do all the raycasting voodoo or magnitude whatever then sanity check on the server.
(im boutta be flamed for how exploitable this is and whatnot, apologies in advance)
I forgot to mention, the game is PVE so there’s no need to replicate other peoples hitboxes and what not on all clients (apart from enemy projectiles ig)
You may have to put some trust in the client. Checking every time they use an ability could cause it to feel unresponsive as the server has to be contacted and reply. Which will add latency.