For the MMO RPG I am making, there are some assaults which have a little bit of FX previous to the precise assault occurring. To do that, listed below are the steps I’ve in place:
- Shopper tells server they’re performing the assault
- Server verifies they’ll do the assault
- Server tells different purchasers what assault that participant is doing to start FX on their finish
What I’m not sure about is how I talk the damaging of the NPCs to gamers, since there’s a delay between when the FX performs and when the hit detection happens. Listed here are the choices I’ve thought of
After server-sided hit detection happens:
- Choice 1: Server sends one other sign to inform purchasers the outcomes (which NPCs have been broken and the way a lot)
- Choice 2: When the purchasers get the very first FX sign from the server, they carry out their very own hit detection and replace the NPC harm themselves.
Initially I assumed possibility 1, however I am now contemplating possibility 2 is as a result of I am questioning if we actually even have to ship the second sign within the first place, so we are able to restrict the variety of occasions the server has to inform the shopper (restrict community exercise).