CGUnit_C::IsPVPContested
function · objectlayer · primitive
- Address
0x606060· 28 bytes, up to0x60607b- Signature
bool __thiscall (CGUnit_C *this)- Meaning
- Returns bit 8 of the controlling player's PLAYER_FLAGS, the contested flag, or false with no player
- 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.