I am trying to implement a melee battle system. I used to do EVERYTHING server sided but for me it really reduced player experience, felt sluggish.
I am trying not to rely as much on the server anymore. Note the animations are being played in the client already. This being said I was also wondering where hit detection should be handled:
CLIENT - Would allow for better feeling, although more exploitable. The security checks would be much more important and, still generous, for players with higher ping. Nevertheless, only the server would change the important stuff.
SERVER - Could feel rather sluggish, and reduce player experience due to lag in effects and such. Still, would be much more secure.
BOTH? - Here is the weird one I just thought. What if said detection was handled both sides, each one carrying their own function? Client would play the effects and the server would change stuff accordingly. I feel like, however, it could be much more less optimized in terms of memory waste and such.
I would like to hear your thoughts on this matter.