OnCombatModelEvent
function · objectlayer · primitive
- Address
0x6247d0· 1217 bytes, up to0x624c90- Meaning
- Presents a pending swing on the attacker's $CAH, $AH0 to $AH3, $CPP, $DTH, $BWP and $CSS events
- Confidence
- verified, proof one
- Finding
- objectlayer/unitcombat#combat-model-events
Finding: Combat model events in objectlayer: unit combat
The attacker's model events present its swing. $CAH plays the weapon impact sound of a damaging
swing, slows the attacker's animation to half speed for a missed, dodged or evaded swing, and shows
the swing on the victim; $AH0 to $AH3 do the same with one of the attacker's four attack
sounds in place of the impact. With no swing pending a player's $CAH plays its precast sound.
$CPP plays the victim's parry, dodge or block pose. $DTH thuds, shakes the camera and adds the
loot sparkle. $BWP draws the bow. $CSS plays the whoosh of a missed swing or the weapon's
swing sound.
The derivation is in the doc.
Callers 1
- CGUnit_C::OnModelEvent objectlayer
Callees 23
- PlayWeaponImpact sound
- PlayWeaponSwing sound
- PlaySoundAtPosition sound
- PlayCombatMiss sound
- ClntObjMgrObjectPtr objectlayer
- IsTwoHandedWeapon objectlayer
- CGUnit_C::PlayAnimation objectlayer
- CGUnit_C::AddLootSparkle objectlayer
- CGUnit_C::PlayParryAnimation objectlayer
- CGUnit_C::PlayDeathThud objectlayer
- GetWeaponSwingSize objectlayer
- ShowSwingOnVictim objectlayer
- IsAvoidedSwingState objectlayer
- PlayBowPull objectlayer
- GetDrawnWeapon objectlayer
- ShakeCameraForUnit objectlayer
- CGPlayer_C::PlayPrecastSound objectlayer
- GetAutoRepeatSpell spell
- CM2Model::SetKeyBoneAnimSpeed models
- CM2Model::HasAttachment models
- CM2Model::GetAttachmentPosition models
- CM2Model::GetParent models
- CM2Model::Attach models
Calls and jumps by a bare address, from tables/calls.tsv.