FAT
NARROW
Entity flags, used for collision detection against the level or against
map entities. Determine which of the two standard bounding box sizes is
used by the entity.
Type:
flag
(eflags)
Remarks:
- If an entity is larger than 64 quants, its FAT flag
automatically is set at game start. Otherwise its NARROW flag
is set. If the entity is smaller than 8 quants, like a bullet, neither
of the flags is set - a point hull is used then.
- You can set or reset FAT and NARROW manually.
In some cases you'll want the entity to choose the narrow hull
instead of the fat one, to pass through small doors.
- If both flags are set, the entities' bounding box (min_x,
max_x) is not automatically recalculated when the entities' model
or scale changes.
- The c_setminmax and c_updatehull functions
automatically set both flags.
Example:
// Example for manually assigning a player a narrow hull so that he fits through doors
my.FAT = OFF;
my.NARROW = ON;
my.eflags &= ~FAT;
my.eflags |= NARROW;
See also:
Map Compiler, c_setminmax, c_updatehull, POLYGON
► latest
version online