# _PSI_GetRejectByte
function _PSI_GetRejectByte(idx)Reads one REJECT lump byte safely, supporting both direct byte storage and wrapped lump data.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
src/p_sight.mlTests monster line of sight through reject tables, BSP crossings, and vertical portal slopes.
doomdata.ml → src/doomdata.mldoomdef.ml → src/doomdef.mli_system.ml → src/i_system.mlm_fixed.ml → src/m_fixed.mlp_local.ml → src/p_local.mlp_maputl.ml → src/p_maputl.mlr_state.ml → src/r_state.mlfunction _PSI_GetRejectByte(idx)Reads one REJECT lump byte safely, supporting both direct byte storage and wrapped lump data.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
function _PSI_SectorIndex(sec)Resolves a sector object to its map index for REJECT-table visibility lookup.
| Parameter | Type | Default | Description |
|---|---|---|---|
sec | dynamic | — | Sec value supplied to `_PSI_SectorIndex`. |
bottomslopeTracks the mutable bottomslope value used by the p sight subsystem.
function P_CheckSight(t1, t2)Rejects impossible sector pairs early, then traces BSP portals and vertical slopes to decide whether two mobjs see each other.
| Parameter | Type | Default | Description |
|---|---|---|---|
t1 | dynamic | — | T1 value supplied to `P_CheckSight`. |
t2 | dynamic | — | T2 value supplied to `P_CheckSight`. |
function P_CrossBSPNode(bspnum)Traverses the BSP front-to-back along the sight trace, stopping as soon as either child proves occlusion.
| Parameter | Type | Default | Description |
|---|---|---|---|
bspnum | dynamic | — | Index identifying bsp. |
function P_CrossSubsector(num)Clips the sight slope window against every blocking seg in a subsector and rejects fully occluded traces.
| Parameter | Type | Default | Description |
|---|---|---|---|
num | dynamic | — | Index identifying the requested item. |
inline function P_DivlineSide(x, y, node)Classifies a point against a divline, returning two for an exact collinear hit and using scaled products to avoid overflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
node | dynamic | — | Node value supplied to `P_DivlineSide`. |
inline function P_InterceptVector2(v2, v1)Computes where the current sight trace intersects a partition line as a fixed-point fraction.
| Parameter | Type | Default | Description |
|---|---|---|---|
v2 | dynamic | — | V2 value supplied to `P_InterceptVector2`. |
v1 | dynamic | — | V1 value supplied to `P_InterceptVector2`. |
sightcountsStores the sightcounts collection used by the p sight subsystem.
sightzstartTracks the mutable sightzstart value used by the p sight subsystem.
straceTracks the mutable strace value used by the p sight subsystem.
t2xTracks the mutable t2x value used by the p sight subsystem.
t2yTracks the mutable t2y value used by the p sight subsystem.
topslopeTracks the mutable topslope value used by the p sight subsystem.