CMovement::GetCollisionMask
function · collision · primitive
- Address
0x6315f0· 115 bytes, up to0x631662- Signature
uint32_t __thiscall (CMovement *this)- Meaning
- Returns the class mask: a base by 0x5fa550, or 0x30000 for a non-swimming water walker above -37°, or 0x8000 for a ghost
- Confidence
- verified, proof one
- Finding
- collision/contact#collision-class-mask
- Test
collision::mask_select_difftest
Finding: Collision class mask in collision: contact
0x6315f0 returns the class mask of a CMovement's world queries, built in this order; a pitch
equal to the bound, or NaN, adds nothing.
| step | test | mask |
|---|---|---|
| 1 | 0x5fa550 nonzero for the owning unit (+0x15c) | 0x100111, else 0x102111 |
| 2 | flags (+0x40) have 0x10000000 and lack 0x200000, pitch (+0x20) above −0.6457718 (0xbf25514d, 0x80dfe8, −37°) | or 0x30000 |
| 3 | the unit's type mask has 0x10, a player, and the player's flags have 0x10 | or 0x8000 |
0x5fa550 (objectlayer/units#player-driven-units) returns 0 when flag 0x2 is clear and any of
0xc00004 is set at +0xa0 of the unit field block (+0x110). Under flag 0x1000000 it returns the
answer for the unit named by the GUID at the block's +0x10 (+0x20 when zero), 0 when 0x468460 with
mask 8 finds none; otherwise 1 only for a player-type unit with a zero GUID at +0x10 and flag 0x1 clear.
The derivation is in the doc.
Callers 3
- CMovement::IsVolumeObstructed collision
- CMovement::GatherSweepFacets collision
- CMovement::QuerySweptBox collision
Callees 1
- IsUnitPlayerDriven objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.