Advanced Mechanics

Deep-dive into Pressure's technical underpinnings. WFC generation, entity raycasting, node pathfinding, and the art of safespotting.

πŸ—ΊοΈ Procedural Generation β€” Wave Function Collapse

Pressure's Hadal Blacksite is not randomly generated β€” it uses a Wave Function Collapse (WFC) algorithm, a constraint-based procedural generation technique that ensures architecturally coherent room sequences.

How WFC Works

  1. Tile Definition: Each room archetype is a "tile" with defined connection points (north, south, east, west). Connection types must match adjacent tiles.
  2. Entropy Calculation: The algorithm starts with all tiles in a "superposition" (all possibilities valid). It identifies the cell with the lowest entropy (fewest valid options) and collapses it to a single tile.
  3. Spatial Overlap Protection: The code utilizes a `PrimaryPart` to align the entrance of a new room with the exit of the previous. It calculates 3D bounding-box collisions. If an intersection is detected, the algorithm aborts placement, trims rotational sequences (e.g., preventing looping left turns), and forces a new tile selection.
  4. Iteration: Repeat until all procedural chunks are resolved.
Strategic Implication: Because WFC enforces adjacency and collision rules, speedrunners can predict the critical path simply by observing the physical footprint of the current tile, knowing that the engine mathematically forbids intersections.

🧭 Entity Node Pathfinding

Node Monsters (Anglers, Blitz, Pinkie, Froger, Chainsmoker, Pandemonium) do not possess free-roaming AI. They traverse predefined pathfinding nodes that are generated alongside room geometry during the WFC process.

Node Architecture

  • Nodes form a graph connecting room entry/exit points
  • Entity velocity and sweep pattern follow the shortest path through the graph
  • Nodes do NOT path through lockers β€” lockers are always in "dead zones"
  • The entity sweep is one-directional (except Froger's rebound)

Pandemonium Exception

  • Pandemonium initially follows nodes BUT abandons them on aggravation
  • When aggravated: direct coordinate tracking replaces node pathfinding
  • Can levitate off the navigation mesh to reach elevated positions
  • Continuous omnidirectional raycasting regardless of node position

🧱 Safespotting β€” Advanced Evasion

Safespotting is the technique of using environmental geometry to break an entity's detection raycasting without entering a locker. It is the only viable defense against entities with lethal or infinite locker minigames (Harbinger, Chainsmoker gas).

Raycasting Detection Model

Most entities use raycasting to detect players. The raycast originates from the entity's core and targets the player's torso hitbox. If any ray successfully reaches the torso without obstruction, the entity triggers aggravation.

  • Standard entities: Single torso-targeted raycast. Partial occlusion (hiding behind furniture with limbs exposed) can sometimes break detection.
  • Pandemonium: Omnidirectional multi-ray scanning. 100% of the player's hitbox must be occluded β€” any exposed vertex triggers aggravation.
  • Harbinger: Similar to Pandemonium but with persistent tracking. Must break ALL rays before it enters your room.

Effective Safespot Locations

  • Thick pillars and structural columns (ensure full torso width coverage)
  • Recessed alcoves with solid back walls
  • Desk undersides (crouch required)
  • Behind stacked machinery in Maintenance rooms
  • Corner geometry where two walls meet at 90Β°
Common Mistake: Players often stand behind thin geometry (railings, open shelving) thinking they're hidden. Raycasts pass through thin obstructions. Only solid, full-width geometry blocks entity detection.

🌊 Specialized Environments β€” Trenchbleeders

The Trench Tunnels are sub-aquatic pressurized zones that restrict vertical mobility. Occasionally, players encounter massive mechanical constructs known as Trenchbleeders walking outside the facility.

Absolute Safe Zones

  • Trenchbleeder interaction rooms override standard entity spawns.
  • During Endless Mode's "Witching Hour" (which imposes a 5-minute death timer per chunk), these rooms act as temporal safe havens.

❀️ Lethality Buffer System β€” Technical Deep Dive

Pressure's health system includes a Lethality Buffer designed to prevent one-shot kills from environmental damage or entity attacks that would reduce HP from above a threshold to 0 or below.

How It Works

  • When damage > remaining HP: set HP to 1 instead of 0
  • Buffer activates only once per unique damage source
  • A second hit from the same or different source at 1 HP = death
  • Buff does NOT apply to entity "execution" attacks (Angler catch, Pandemonium pull)

Critical Injury State (<20 HP)

  • Visual distortion overlay (chromatic aberration, vignette)
  • Passive regeneration: 1 HP per second
  • Regen caps at 20 HP β€” will not passively exceed this threshold
  • Healing items (NeoStyk, Medkit) can push past 20 HP