All Packets #3601
Javelin::ClientMessages::VitalsComponentClientFacet_OnDamage
We know its format and the Azoth server already uses it.
The server tells your game about a hit so it can show the damage number. It goes to the one who hit and the one who got hit.
Activity: Combat
We already have this packet in a recording. You only need to record it again if you want to help check it.
- Find a few enemies and fight them with your usual weapon. Use at least two different abilities, and block once.
- Let the enemies hit you a few times until your health is low, then recover with food, a potion or a heal.
- Fight until you die once and respawn.
- Write down the time of each step.
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.
When: Sent by the server to a player each time something hurts them: a creature's hit, a damage-over-time tick, or damage from falling or drowning. It makes the damage number and the hit indicator appear on that player's screen. Damage you deal yourself arrives as OnDamageDealt instead. It goes to the player's own health component (not the creature's).
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.
| At | Field | Type | Size | Meaning | Example |
|---|---|---|---|---|---|
| 16 | attackerEntityId | u64be |
8 B | The numeric id of whatever dealt the damage: a creature, or the player's own id for falls and drowning. The value is not shown (it can be another player). | not shown (may contain names/chat) |
| 24 | flags | raw2 |
2 B | Bit flags in a 2-byte little-endian number. They do NOT follow the bit layout of OnDamageDealt. Bit 0x20 means the attack can crit and 0x40 means this hit was a crit. Other values than those listed also appear; their meaning is not known.
|
2
also seen: 2, 10, 34, 8, 24, 18, 6, 98, 66, 38
range 2 to 98
|
| 26 | damageShare | u32be |
4 B | The hit's total damage divided by the player's maximum health, as a 4-byte float (0.25 means a quarter of max health). The sum of the part amounts divided by this number gives the player's max health. |
0.0918036
also seen: 0.0918036, 0.07761342, 0.32985705, 0.15139496, 0.23386078, 0.026025042, 0.07030265, 0.3994715, 0.19973575, 0.0036931254
range 0 to 398.94357
|
| 30 | attackerPosX | u32be |
4 B | X of the attacker at the moment of the hit, in world metres (4-byte float). It is the attacker's position, not the point of impact, and the client uses it for the direction of the hit. |
965.17645
also seen: 965.17645, 965.23676, 965.29425, 968.9287, 970.6334, 971.4109, 973.0796, 974.0465, 974.93634, 968.29834
range 0 to 10209.741
|
| 34 | attackerPosY | u32be |
4 B | Y of the attacker, in world metres. |
450.42484
also seen: 450.42484, 450.75208, 451.08093, 451.72327, 452.8813, 452.99188, 451.46237, 451.86276, 452.7001, 445.0404
range 0 to 11241.049
|
| 38 | attackerPosZ | u32be |
4 B | Height of the attacker, in world metres. |
118.01344
also seen: 118.01344, 118.02324, 118.01506, 118.08111, 0, 120.05972, 120.03746, 118.04746, 120.03142, 120.027725
range 0 to 431.12338
|
| 42 | parts.count | nested structure |
โ | How many damage parts follow. A hit can carry one part per damage type; the captures show 0 to 3. |
1
also seen: 1, 2, 3
range 1 to 3
|
| 43 | 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.
|
5
also seen: 5, 4, 3, 6, 8, 11, 10, 13, 9, 14
range 1 to 255
|
| 44 | part.amount | f32be |
4 B | Damage of this part after mitigation (a 4-byte float, big-endian). |
1108.1603
also seen: 1108.1603, 936.8707, 3981.701, 1827.487, 2822.931, 314.148, 848.6225, 4822.016, 2411.008, 44.579678
range 0.1011688 to 4746806.0
|
| 48 | part.mitigation | f32be |
4 B | Final damage divided by raw damage before mitigation (a 4-byte float); about 0.7 on a creature's thrust hit in the captures. |
0.58194274
also seen: 0.58194274, 0.61498904, 0.6854945, 0.6016777, 0.6330621, 0.6278828, 0.64616144, 0.5848334, 0.5877143, 0.62401843
range 0.18559897 to 1.2442499
|