Jump to content

Server-side Monster AttackDelay, AttackMotion, DamageMotion


thunginamue

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   3
  • Joined:  12/18/18
  • Last Seen:  

is this the right way to calculate this?
image.png.9d3efae6f007565e42194c48e6ae5042.png
well, first WalkSpeed I took it from an official source..

then for AttackMotion, I found something about animation frames and milliseconds of animation..
image.png.8a88e11ba142132dbf24f48b858a3b40.png
so 75ms and 14 frames..
75 x 14 = 1050
so 1050 is for the AttackMotion..

then for AttackDelay, I just divided the AttackMotion into 2..
1050 / 2 = 525
so 525 is for the AttackDelay..

then for DamageMotion, I just divided AttackMotion by 2 and added the Walkspeed, and then I just discarded the decimal value..
525 / 2 = 262.5 + 150 = 412
so 412 is for the DamageMotion.

in-game, it resulted decently, but hey I want to know if this is the right way to do it..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...