CGUnit_C::IsDuelingWith
function · objectlayer · unreached
- Address
0x6060a0· 197 bytes, up to0x606164- Signature
bool __thiscall (CGUnit_C *this, CGUnit_C *other)- Meaning
- Returns true when two player-controlled units' players share a duel arbiter on different nonzero teams
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- objectlayer/reaction#contest-free-for-all-and-duel-tests
Finding: Contest, free-for-all and duel tests in objectlayer: reaction
Three small tests read the same player state as the ladder. One is true when a unit's
controlling player has the contested flag, bit 8 of PLAYER_FLAGS; another, which nothing calls,
when it has the free-for-all flag, bit 7. A third, also never called, is true when two
player-controlled units belong to players in one duel on opposing teams: the same arbiter, both
teams nonzero and different. A player stands for itself there, without the controlling-player
lookup.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- CGUnit_C::GetControllingPlayer objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.