r/MultiplayerGameDevs • u/Malviss • 2d ago
Question A question about server requests
Hi, I haven't actually made anything with multiplayer yet but I'm theorizing an approach to an MMORPG combat system. I would like feedback on something I'm stuck on.
The project consists of standalone clients connecting to a dedicated server (server authority model).
Conundrum:
I have a skillbar with skills, these have a manacost, cooldown, range and require a living enemy target.
Whenever a target is selected, the skill icons should be colorized when the skill is castable, and grayed out when one of ita criteria isn't met (mana, range, etc...)
Should I just let the client check if the skill is castable (with predicted variables) to display the correct icon before I'm asking the server for the true state (recheck of criteria) to update my skills icons?
This to minimize requests to the server and optimizing performance of it. This does make server and client both do the same thing though.
And let's say I'm a player with malicious intent. When I change the client's code so the skill has no cooldown, I could theoretically flood the server with requests check the criteria for the skill being castable. (There is no global cooldown mechanic for skills as often used in these type of games).
Is this a valid approach and does the server need another sort of protection against requests being spammed maliciously or should I be going at this in another way?
I do realize I might be overthinking this all, but my brain can't let it go and is turning into swiss cheese. Pls halp ;-;
For clarification:
No, I'm not planning on creating an MMO, simply a combat system that I thought of. Theory sounds fun to me, does it work and is it fun in practice?
Yes this idea can be developed without implementing multiplayer, but it's a great and interesting opportunity to expand my skills and knowledge.