SometimesRain / crazyclient

A hacked client for Realm of the Mad God.
The Unlicense
21 stars 13 forks source link

Enemies not instantly dying when hp reaches 0 #11

Closed Testing0123 closed 7 years ago

Testing0123 commented 7 years ago

For example just say I use a Doombow and hit a 1000hp god with 1050 damage. Normally, the god would disappear instantly and the damage number wouldn't even show, which is good. But in v9, it gets to 0 hp, doesn't let me shoot it anymore, then after half a second it disappears.

On its own this is not a problem, but if it gets healed in that half second, it stays alive but is treated as dead by the client and I can't damage it anymore (shots go through it), but it can damage me. This only happens in v9, so something must have changed,

SometimesRain commented 7 years ago

This is caused by the way I fixed invisible enemies. It checks if you receive an update for an invisible enemy and turns it visible again. Because the mobs don't die on the server immediately when you kill them on you client, you receive some updates even after the mob has died.

Adding a delay to the "turn back visible" function would solve this but that requires me to track the time when an update for each individual mob was received.