Jump to content

[1.7.10] Multiplayer Animation


gegy1000

Recommended Posts

I have some armor, that when you put on the full set it activates some animations. I have an animation that only activates when off the ground. player.onGround works perfectly when in single player but when one player views another player with the armor on, it activates the falling animation, because player.onGround is not synced between clients. That is not what I want to happen. I can't think of another way to check if the player is on the ground. I tried checking if the block beneath the player is air, but it doesn't work that well because you could be standing on the very edge of a block.

 

I also use player.motionY and player.capabilties.isFlying in the animation. But then again, that is not synced between clients.

I want to avoid using packets for this because I don't want to send too many of them just for the animation.

 

You can find the source here: https://github.com/FiskFille/TransformersMod/blob/master/src/main/java/fiskfille/tf/client/model/transformer/ModelPurge.java/#L550

 

- gegy1000

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

By using this site, you agree to our Terms of Use.