kaansoral / adventureland

Adventure Land The Open Source CODE MMORPG
Other
189 stars 60 forks source link

fix eta for projectiles #152

Closed earthiverse closed 5 days ago

earthiverse commented 2 weeks ago

Currently, the ETA for every 'action' sent to the client is 400. This fixes to return the actual ETA.

We also round down to the nearest ms to make the number nicer. The attacks might land at most 1ms earlier than before, but that's insignificant in my opinion.

earthiverse commented 2 weeks ago

image

earthiverse commented 2 weeks ago

image

Marked as draft, as it looks like I'm getting a new game_response socket event now?

edit: is this a development server thing? edit 2: I think you get this response when you're operating the character on the socket. The first screenshot in this PR is from /comm.

earthiverse commented 1 week ago

The extra game_response is used to resolve the attack promise. It doesn't show on /comm, it only shows on the character's socket.

It is unrelated to this commit.

kaansoral commented 1 week ago

Merging this one?