HandleUnitCombatMessage
function · objectlayer · primitive
- Address
0x6255b0· 1339 bytes, up to0x625aea- Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)- Meaning
- Handles the attack, attacker state and environmental damage messages
- Confidence
- verified, proof one
- Finding
- objectlayer/unitcombat#attack-messages
Finding: Attack messages in objectlayer: unit combat
0x625520 registers 0x6255b0 for eight opcodes, then the combat log's; 0x625bd0 clears them.
| opcode | body | action |
|---|---|---|
| 0x143 | attacker GUID, victim GUID | the attacker's target +0xc48 is the victim; the player raises PLAYER_ENTER_COMBAT |
| 0x144 | packed attacker, packed victim, u32 | 0x624e40 stops the attack; the player raises PLAYER_LEAVE_COMBAT |
| 0x145, 0x146 | none | the attack error state 1 or 2 (players, Attack error repeat) |
| 0x148, 0x149 | none | the active player's melee attack stops |
| 0x14a | the attacker state | below |
| 0x1fc | GUID, u8 type, i32 damage, absorbed, resisted | 0x624f30, environmental damage |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 26
- CDataStore::GetUInt8 base
- CDataStore::GetInt32 base
- CDataStore::GetUInt32 base
- CDataStore::GetGuid base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- StoreGuid objectlayer
- CGGameUI::SelectTarget ui
- CGPlayer_C::OnAttackStart objectlayer
- CGPlayer_C::StopMeleeAttack objectlayer
- SetAttackErrorState objectlayer
- IsActivePlayerUnit objectlayer
- CGUnit_C::StopAutoMove objectlayer
- CGUnit_C::IsAutoMoving objectlayer
- CGUnit_C::IsAutoMovingInModes objectlayer
- CGUnit_C::SetSheatheState objectlayer
- FloatSwingResult objectlayer
- ShowSwingOnVictim objectlayer
- PlaySwingAnimation objectlayer
- StopAttack objectlayer
- OnEnvironmentalDamage objectlayer
- ReadAttackerState objectlayer
- ClearSwingRecord objectlayer
- LogSwing objectlayer
- CDataStore::GetPackGuid base
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.