ClassifyGuidForPlayer
function · objectlayer · primitive
- Address
0x5efea0· 649 bytes, up to0x5f0128- Meaning
- Returns the relation of a GUID's unit, or a game object's creator, to the active player, 0 to 9
- 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 20
- ClassifyDamageSource objectlayer
- CGUnit_C::BuildNameText objectlayer
- CGUnit_C::PlayTextEmoteVoice objectlayer
- ResolveCombatLogPair objectlayer
- LogHappinessDrain objectlayer
- LogOneSidedLine objectlayer
- LogEnchantmentRemoved objectlayer
- LogEnvironmentalDamage objectlayer
- LogTerseCast objectlayer
- CombatLogSpellCast objectlayer
- LogAuraChange objectlayer
- LogAuraApplication objectlayer
- LogUnitDeath objectlayer
- LogCastFailure objectlayer
- LogInstakill objectlayer
- LogAuraDispel objectlayer
- LogFeedPetInRange objectlayer
- LogTradeSkillInRange objectlayer
- LogExtraAttacks objectlayer
- LogOpenLock objectlayer
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGPartyInfo::IsMember ui
- CGUnit_C::CanAttack objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.