Jump to content
  • 0

Locating and modifying how the server sends mob/pet facing direction to client.


Satoh

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/24/12
  • Last Seen:  

I started noticing lately that when mobs or pets walk along cardinal directions (N,S,E,W) their sprite flickers between two directions.

For example when they walk directly south, toward the camera, they flicker between left and right facing.

 

I suspect this is because the server is sending their view angle 11.25 degrees off from what it should be. (Or rather, the function that determines whether to send 0,1,2,3,4,5,6 or 7 is calculating the angle incorrectly)

 

However, I can't locate where in the source this gets sent.

 

general searches for 'angle' 'direction' 'facing' and so forth have not yielded helpful results.

 

Does anyone know where I should look?

 

 

 

On a different note, still related to view data, does anyone know how I might get NPCs to send their walking animation to the client, when they have them? (I realized I would have to store server side information about which NPCs have extra animations, but as there are a few that have them, I would like to use them)

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
Answer this question...

×   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...