X-com / RealmShark

MIT License
40 stars 19 forks source link

Adding counter for heals possible ? #8

Open mschessler opened 1 year ago

mschessler commented 1 year ago

As mentioned in the title. Does the client get information about heals of other players ?

X-com commented 1 year ago

I believe its possible but sadly its quite difficult to predict the exact source of the heals. It could be from any heal done in the tick. The healing has to be simulated from simply predicting the HP value changing. Given HP value can increase from more than one source it makes it quite difficult to get an accurate simulation. Server sadly sends a minimal amount of data to simply HP value updates, particles from healer and MP value changes from healer. From that both regular HP regeneration has to be simulated, pet heals, item swaps, HP max increase and other random effects taken into account to finally predict the exact value the actual healing then does. It could be predicted by simply checking the distance to the healer when the heal area of effect is used. But sadly because of ping, random effects showing up with a delay and other random effects parsing packets have the info can't be really properly trusted.