CGUnit_C::UnitReaction_Corpse
function · objectlayer · orchestration
- Address
0x6064c0· 101 bytes, up to0x606524- Signature
uint32_t __thiscall (CGUnit_C *this, CGCorpse_C *corpse)- Meaning
- Returns the unit's template reaction toward a corpse's template, or 3 when either row is missing
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- objectlayer/reaction#corpses-and-game-objects
Finding: Corpses and game objects in objectlayer: reaction
A unit's reaction toward a corpse compares the unit's template with the corpse's, through the
template comparator alone, and is 3 when either is missing. A game object reacts as its creator
does when its creator, field 6, is a live unit; otherwise as its faction, field 20, through
0x606530; with no faction it is 3.
The derivation is in the doc.
Callers 1
- CGUnit_C::CanAssist_Corpse objectlayer
Callees 2
- CGCorpse_C::GetRaceTemplate objectlayer
- FactionTemplateReaction objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.