Posted November 29, 20213 yr This is my event: p.s i tried the subclasses. Above this line, I am also registering my GUI event listener with RenderGameOverlay, which works fine.
November 29, 20213 yr Author 8 minutes ago, diesieben07 said: You have to use one of them. Using just RenderPlayerEvent does not produce useful results. What do you mean by "not working"? my method isn't being called.
November 29, 20213 yr Author 1 minute ago, diesieben07 said: Are there any players on screen? Is that event only for remote players? I want to modify my player.
November 29, 20213 yr Author Just now, matthew123 said: Is that event only for remote players? I want to modify my player. Oh, I get it. On singleplayer, it does not render the player model. Thus, theoretically, it should work when I go into 3rd person?
November 29, 20213 yr Author Well, it is not working anyway. I want to modify the player's arm rotation (the model rotations in general). How would I do that? I also want to do it for all players that are tracking.
November 29, 20213 yr Author Just now, diesieben07 said: It should work fine if you go in third person. How have you checked? By going into third person The arm did not rotate. But I also want the pose in first person to change.
November 29, 20213 yr Author 19 minutes ago, diesieben07 said: It should work fine if you go in third person. How have you checked? I will implement the hand animation using RenderHandEvent. How do I work with these quaternions?
November 29, 20213 yr Author 9 minutes ago, matthew123 said: I will implement the hand animation using RenderHandEvent. How do I work with these quaternions? I will just be tweaking the Euler angle until i get it right.
November 29, 20213 yr Author 3 minutes ago, diesieben07 said: Show your code. event.getRenderer().getModel().rightArm.yRot = 50f; event.getRenderer().getModel().rightArm.xRot = 50f; I also need to render two hands in first person. Is it possible to somehow copy the matrix from the stack then add it on top after rotation to emulate a second hand?
November 29, 20213 yr Author Just now, matthew123 said: event.getRenderer().getModel().rightArm.yRot = 50f; event.getRenderer().getModel().rightArm.xRot = 50f; I also need to render two hands in first person. Is it possible to somehow copy the matrix from the stack then add it on top after rotation to emulate a second hand? Huh. Now that i think about it, the POST event is AFTER the thing was rendered. So I may need to do it in PRE, right?
November 29, 20213 yr Author 1 minute ago, matthew123 said: Huh. Now that i think about it, the POST event is AFTER the thing was rendered. So I may need to do it in PRE, right? Also does not work.
November 29, 20213 yr Author 10 minutes ago, diesieben07 said: That's not how that works. There is no event that lets you modify the animations. Then, how would I go about rotating / animating things in the player model?
November 30, 20213 yr Author 11 hours ago, diesieben07 said: You have to cancel the rendering and render it yourself. That worked, thanks.
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.