Azoth Central โ€” Javelin::ClientMessages::DamageReceiverComponentClientFacet_OnDamageDealt

All Packets #2071

Javelin::ClientMessages::DamageReceiverComponentClientFacet_OnDamageDealt

SolvedCaptured โœ“

We know its format and the Azoth server already uses it.

What it doesVery likely

The server tells your game that you dealt damage, so the damage numbers can show up.

Activity: Combat

How to capture

We already have this packet in a recording. You only need to record it again if you want to help check it.

  1. Head to an area with enemies.
  2. Hit an enemy with plain attacks, then with abilities, and try to land a few critical hits.
  3. Do it with a second weapon if you have one.
  4. Write down the time you started.

Recording tips

  • Record one activity per recording.
  • Keep each recording under 5 minutes.
  • Write down the time of each step.
  • Send the ledger.bin file only through /capture on Discord.

Send your recording or use /capture on Discord.

FieldsSpec: Verified

When: Sent by the server to the player who dealt damage, once per hit that lands on something, and again for every damage-over-time tick. It drives the damage number on the attacker's screen. The message goes to the attacking player themself, and the thing that was hit is named inside it. The official server does not send OnDamage to the creature that was hit.

16 B headervariable sizelayout not fully traced

Offsets count from the first byte after the message type. The first 16 bytes name the component the call is addressed to; the arguments start at offset 16.

AtFieldTypeSizeMeaningExample
16 targetRef nested structure 16 B The 16-byte reference of the entity that was hit, the same reference the client received when it created that entity. The value is not shown (it could identify another player). not shown (may contain names/chat)
32 targetEntityId u64be 8 B The numeric id of the entity that was hit: the first 8 bytes of targetRef read as little-endian. The value is not shown. not shown (may contain names/chat)
40 hitVolumeCrc u32be 4 B Which part of the target took the hit, as the CRC32 of its lowercase name. 0 on damage-over-time ticks, which have no hit volume.
  • 2817783452 head
  • 3685223346 body
  • 366775075 body_static
  • 0 No hit volume (damage over time)
3348683562
also seen: 3348683562, 3747518165, 660585605, 0, 821599770, 3575179007, 3685223346, 1818067385, 140449882, 2085387840
range 0 to 4286038430
44 cameraShakeCrc u32be 4 B The camera shake to play, as the CRC32 of the lowercase name taken from the damage table row (the crit variant on a crit). 0 means no shake.
  • 1967516179 small
  • 1716201075 large_short
  • 0 No shake
0
also seen: 0, 1967516179, 1716201075
range 0 to 1967516179
48 flags u16le 2 B Bit flags about the hit, in a 2-byte little-endian number (add the values together). The names come from the client's own list of constants, in order.
  • 1 Ranged
  • 2 Self damage
  • 4 Structure damage
  • 8 The hit caused the target's death (seen in captures)
  • 16 The hit put the target in Death's Door
  • 32 The attack can crit (set on every hit a player lands in the captures)
  • 64 The hit was a critical hit (seen in captures)
  • 128 Resisted
  • 256 Headshot (a hit on the head does not set it in the captures we checked)
  • 512 Damage from a status effect, a damage-over-time tick (seen in captures)
  • 1024 Fully absorbed
  • 2048 Immortal target
33
also seen: 33, 97, 1, 512, 105, 41, 520, 32, 104, 129
range 0 to 2560
50 parts.count vlq32 โ€” How many damage parts follow. A hit can carry one part per damage type; the captures show 0 to 3. 1
also seen: 1, 0, 2
range 0 to 2
51 part.type u8 1 B Damage type of this part, as the id from the game's damage type table. Repeats for each part; the offset shown is the first part.
  • 3 Standard (the type of damage-over-time ticks in the captures)
  • 4 Slash
  • 5 Thrust (a boar's gore)
  • 6 Strike (the end of a boar's charge)
5
also seen: 5, 9, 3, 4, 0, 10, 11, 8, 14, 255
range 0 to 255
52 part.amount f32be 4 B Damage of this part after mitigation (a 4-byte float, big-endian). This is the number the client shows. 652.38446
also seen: 652.38446, 766.6601, 0, 1749.7214, 1178.5802, 195.86086, 197.54182, 1178.7981, 803.1804, 1974.5045
range 0 to 45540
56 part.mitigation f32be 4 B Final damage divided by raw damage before mitigation (a 4-byte float). The client works out the raw damage as amount / mitigation to show how much was mitigated. About 0.6 to 0.8 in the captured hits of a level 60 player on level 44 creatures. 0.8010386
also seen: 0.8010386, 0.66753215, 0.7676619, 0.8223424, 0.54645807, 0.7643573, 0.5692271, 0.7150804, 0.5340257, 0.68307257
range 0 to 6
How to capture