Adding Damage Cap (Server Sided)
Is this possible server sided?
I'm aware it is commonly handled by client, but is this possible with a check to make sure people are unable to do damage above a certain amount? I'm not sure how else I can phrase it.
The only place I could think of is AbstractDealDamageHandler, but it didn't look like the right place to place a damage cap.
Thanks in advance!
Re: Adding Damage Cap (Server Sided)
Sure. I mean, it'd be weird for the user. But if you want to- go ahead. Basically, after the final damage calculations check if the amount exceeds your damage cap. If it does, set it to the desired amount. Simple as that.
Re: Adding Damage Cap (Server Sided)
Would it show the damage cap that's set or it'll still show what the client originally has o.o
Re: Adding Damage Cap (Server Sided)
The client calculates the damage and sends it to the server. So the client will show the original damage and the server will do the cap. So yeah, it's "tricky".