CWorld::IsEntityOutdoors
function · terrain · primitive
- Address
0x6706f0· 84 bytes, up to0x670743- Signature
uint8_t __fastcall (void *entity)- Meaning
- Returns 1 for no entity or no indoors bit, else bit 15 of the first loaded group's flags, 0 for none
- Confidence
- verified, proof one
- Finding
- terrain/world#entity-outdoors-test
- Test
terrain::entity_outdoors_difftest
Finding: Entity outdoors test in terrain: world
0x6706f0 returns in al whether an entity is outdoors for a spell. It answers 1 for a null entity
and for one whose +0x90 bit 0 is clear: on open terrain, or in a map object group with the exterior
flag 0x8 (Entity indoors bit). With the bit set it answers bit 15 (0x8000) of the flags of the
entity's group, the first that 0x69d4f0 finds loaded, and 0 when it finds none: 0 is a group with
neither 0x8 nor 0x8000, or no loaded group. It reads no area table, no terrain flag and no transport
state; group flag 0x2000 plays no part.
The derivation is in the doc.
Callers 1
- CGUnit_C::TestNodeOutdoors objectlayer
Callees 1
- FindMapObjectGroupAt terrain
Calls and jumps by a bare address, from tables/calls.tsv.