mojira.dev
MC-26678

Damage wobble no longer shows direction of incoming damage

Note

The comment section in the bug tracker is only meant for providing additional information regarding a bug report, it's not meant to be used as a forum for discussion. Please see @unknown's comment on where you can hold discussions.
If you don't respect the rules of the bug tracker, you may be banned.
@unknown's comment

The bug

In 1.2.5 SSP and before the little wobble to the whole viewport that occurs when you take damage used to indicate the direction the damage came from. As part of the 1.3 client/server merge, this behavior was lost.

Steps to view correct behavior

  1. Revert to 1.2.5 SSP and start a new creative world

  2. Build the contraption as shown in the image attachment below

  3. Fill the dispensers with arrows.

  4. Exit MC and use NBTExplorer to change the world to survival mode (alternatively play survival until you obtain those items or open a copy of a current world)

  5. Facing forward, strafe left into the left pressure plate. Arrow will hit you and the viewport will tilt to the right, simulating the head whiplash.

  6. Facing forward, strafe right into the right pressure plate. Arrow will hit you and the viewport will tilt to the left, simulating the head whiplash.

  7. Facing forward, walk into the front pressure plate. Arrow will hit you and the viewport will tilt DOWN, simulating being hit in the top of the head by something

  8. Facing forward, back into the rear pressure plate, Arrow will hit you and the viewport will tilt UP, simulating being hit in the back of the head and having forward whiplash.

  9. This seemingly "cool aesthetic" actually has real gameplay value because it indicates to fighters where incoming damage is originating from.

  10. Repeat all steps in latest version (no need to use NBT editors just open to lan with cheat mode to switch gamemode). Notice how the viewport will always tilt right no matter what.

Code analysis (MCP Names)

EntityLivingBase.attackedAtYaw is not synced to the client, causing an animation present in the client to not be correctly rendered.

Linked issues

MC-73853 Damage wobble no longer shows direction of incoming damage Resolved MC-143964 Player's arm and camera only jerk to the left when getting hurt Resolved MC-202355 Damage screen tilt is de-synced, defaulting to tilt left Resolved MC-202616 Damage tilt always tilts to the left, and not towards the source of the damage Resolved MC-202922 camera doesn't tilt to damage Resolved

Attachments

Comments 41

Confirmed.

Confirmed all the way up to 14w18a

Confirmed all the way up to 14w29b

Confirmed to 1.8-pre3. please fix!

Confirmed tup to 15w46a. Please fix.

31 more comments

Been watching this one for years. Thank you for finally fixing it. 🙂

only took 9 years

MC-265044 can probably be marked as related - both reports involve the camera not tilting under specific circumstances while they used to in previous versions.

Relates to MC-269238.

Also relates to MC-225335.

williewillus

slicedlime

Confirmed

Networking, Rendering

12w18a, damage, shake

Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.3, Minecraft 13w37b, ..., 20w08a, 1.16.1, 20w29a, 1.16.2, 1.19.3

23w03a

Retrieved