Thread: Game Mechanics: Lava in VP does too much damage
View Single Post
  #15  
Old 11-09-2014, 11:09 PM
Zaela Zaela is offline
Sarnak


Join Date: Jul 2014
Posts: 319
Default

Quote:
Originally Posted by Nirgon [You must be logged in to view images. Log in or Register.]
I imagine its a result of it being stock eq emu and needing the wrench taken to it like every damn thing to bring it up to p99 quality standard

I doubt very little is correct just out of the box from the source
Quote:
Originally Posted by Zaela [You must be logged in to view images. Log in or Register.]
"Environmental" damage like lava is calculated on the clientside, just to put that out there.
It's alllll the client's fault.

The server knows very little about how you're moving through a zone. Stuff like collision, knockback, levitation, falling damage, breath/drowning and lava damage are calculated and applied on the client side.

On the other hand, the client does send a packet to the server saying when it has applied such damage, to keep the server in sync. This gives the server an opportunity to muck with the damage that ultimately gets applied a bit, but it's far from a perfect -- the damage has already been done as far as the client is concerned. The best the server can do is undo some of the damage and send out a new hp update for you. You would still see the amount of damage that the client decided on being done to you; the hp update from the server would cause your HP bar to ping-pong a bit; and the client may still force death if it believes this hit of lava damage should have killed you. Still, could be used as a quick bandage fix...


I was poking at some of the client files today, hoping for the longshot of the increased damage being indicated and editable there. No luck, though. (There was one anomaly in the flag for VP's lava, but it turned out not to be meaningful.) Most likely there is some line of code in the client's lava damage function saying "if zone is VP, then multiply base damage by 5" or something like that. Would need to find that and write over it or something for a real fix.

Ironically it's a lot easier to just turn lava into non-damaging water in the client files...
[You must be logged in to view images. Log in or Register.]
...but that would be cheating a bit, obviously.
Reply With Quote