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)
Question
Satoh
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.