CGPlayer_C::GetFactionSide
function · objectlayer · primitive
- Address
0x5efe00· 88 bytes, up to0x5efe57- Meaning
- Returns 0 for a race whose faction template has bit 0x4, 1 for bit 0x2, else −1
- Confidence
- verified, proof one
- Finding
- objectlayer/interaction#other-units
Finding: Other units in objectlayer: interaction
| function | returns |
|---|---|
0x5f0700 | a unit is trivial: not a player, below the player's level by more than 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 10, 11, then 12, by level / 5 |
0x5efea0 | the relation of a GUID's unit, or a game object's creator, to the player, 0 to 9 |
0x5efe00 | the player's faction side: 0 Horde, 1 Alliance, −1 neither |
0x5efe60 | the gendered PVP_RANK_%d_%d text of a rank for that side |
0x5efcd0 | a resistance's base, effective, positive and negative values |
0x5ec4c0, 0x5ec890 | a race's male or female display id, which 0x5ec480 resolves to a model record; the race's ChrRaces row +0x20 |
0x5ed5b0 | the gender: PLAYER_BYTES_3 byte 0 for the active player, else UNIT_FIELD_BYTES_0 byte 2 |
0x5ed630 | the first carried item with an on-use spell of effect 0x5e, for Script::UseSoulstone |
0x5decc0 | sends 0x114 with a nonzero GUID and calls 0x4c6f70 |
The derivation is in the doc.
Callers 8
- CGWorldFrame::ClassifyHoveredUnit ui
- CGWorldFrame::ClassifyHoveredCorpse ui
- AddChatLine ui
- GetFlagToken ui
- Script::GetBattlefieldInfo ui
- ExpandServerToken ui
- Script::GetPVPRankInfo ui
- CGPlayer_C::GetPvpRankName objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.