[GH-ISSUE #4149] Damage has no/wrong sound #1221

Closed
opened 2026-11-02 15:45:11 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Otisius-cyber on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4149

When taking damage in singleplayer it makes the wrong damage sound and in multiplayer there isnt even any sound when the player takes damage

Originally created by @Otisius-cyber on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4149 When taking damage in singleplayer it makes the wrong damage sound and in multiplayer there isnt even any sound when the player takes damage
bsakaguchi 2026-11-02 15:45:11 +07:00
Author
Owner

@WhyFovius commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim — will trace the player damage sound path (single player picks the wrong sound, multiplayer none).

<!-- gh-comment-id:6518302181 --> @WhyFovius commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim — will trace the player damage sound path (single player picks the wrong sound, multiplayer none).
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, will trace the player damage sound path single player picks isn't understood here. Use /claim or /unclaim (the trusted reviewers: /unclaim @login). (asked by @WhyFovius)

<!-- gh-comment-id:6518304466 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, `will trace the player damage sound path single player picks` isn't understood here. Use `/claim` or `/unclaim` (the trusted reviewers: `/unclaim @login`). (asked by @WhyFovius)
Author
Owner

@WhyFovius commented on GitHub (Oct 30, 2026):

🤖 Agent: traced both halves of the missing sound. In the server-thread setup the server-side Game is built with Audio::silent, and it was the one playing MotionEvent::HurtSound, so nothing ever left it; the client's ClientboundDamageEventPacket handler restarted the hurt flash but never played the sound (vanilla's LivingEntity.handleDamageEvent plays it there — checked against the 26.3 jar bytecode). Fix in #4332: the client plays hurt_sound(effects of the packet's damage type) with the vanilla pitch 1.0 ± 0.2, and the server sends its sound to everyone around except the hurt player, the same split vanilla and the existing death-sound code use.

<!-- gh-comment-id:6520792088 --> @WhyFovius commented on GitHub (Oct 30, 2026): 🤖 Agent: traced both halves of the missing sound. In the server-thread setup the server-side Game is built with Audio::silent, and it was the one playing MotionEvent::HurtSound, so nothing ever left it; the client's ClientboundDamageEventPacket handler restarted the hurt flash but never played the sound (vanilla's LivingEntity.handleDamageEvent plays it there — checked against the 26.3 jar bytecode). Fix in #4332: the client plays hurt_sound(effects of the packet's damage type) with the vanilla pitch 1.0 ± 0.2, and the server sends its sound to everyone around except the hurt player, the same split vanilla and the existing death-sound code use.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1221
No description provided.