Skip to content

More features

SI spawn placement visualizer

Interactive walkthrough of the 2026-08 spawn selection pipeline (inf_nav_team_nearest 1): the native extension runs a single multi-source reverse Dijkstra pass so every Nav area records its shortest path distance to the nearest available survivor and its assigned owner; the plugin then scans 10 fixed distance bands from near to far, evaluating candidates from front to back by Flow within each band. Gray walls mark impassable cells so you can compare path detours against straight-line distance—drag any survivor to recompute the distance field live.

Drop to parse in the browser (VPK / ZIP / BSP / NAV)
Wall / unwalkable Exclusion ring <250u Current search band (half-open) Candidate being evaluated Filtered out (reason in the log) Accepted into the scoring pool Final spawn point → line points to its owner Unspawnable areas (checkpoint / rescue-closet / rescue-vehicle flags, graph mode only) Map geometry walls (2D wireframe / 3D translucent) Invisible walls (playerclip) Static prop boxes (fainter = estimated size) Gun & ammo spawns Medical item spawns Throwable spawns Upgrade pack spawns Other item spawns Blocker entity boxes (env_*_blocker) Door / elevator / movable entity boxes Other solid entity boxes Alarm cars Buttons / finale / pour targets / mounted guns

2D controls: left-drag a survivor to reposition them, drag empty space to pan, scroll to zoom around the cursor, and double-click to reset the view; in built-in grid mode, select 'Draw Wall / Erase Wall' and drag to paint obstacles.

Graph mode LOS check: once geometry data is loaded, the visualizer runs real raycasts against BSP triangles (including floors and ceilings; playerclip does not block LOS, checked only when straight-line distance <= 1800); without geometry, it falls back to the heuristic 'straight-line <= 1500, |Δz| <= 120, detour ratio <= 1.6'. Real map graphs can be exported on the server with sm_navgraph_export and loaded via 'Import Map JSON'.

Parse custom maps locally: drag a .vpk / .zip or raw .bsp+.nav directly onto the canvas (or click 'Parse Local Map') to parse everything in your browser without uploading files (.7z / .rar archives must be extracted to VPK first). Local parsing reads raw map file presets without Anne Stripper blockers or Director runtime item pruning; for official maps or live server snapshots, use the map dropdown or 'Import Map JSON'.

Survivor states (click to toggle, drag to move)

Each survivor's cap mirrors SI_Target_limit in the plugin ((SI limit / active survivors) + 1), with the Flow leader's cap doubled. Once a survivor reaches capacity, they leave the participating set and the distance field is recomputed across the remaining eligible survivors.

Current search state

Band: - Inspected: 0 Pool: 0/12 Spawned: 0

Scene saves (browser local)

Search log (matching the [FIND]/[SpawnPerf] wording)

The full pipeline of one normal spawn attempt (team-nearest branch)

0. Participant setCollects alive, unpinned, standing survivors below their target capacity cap (the lead survivor's cap is doubled) into a (client, navId) set. Any movement or capacity change updates the state fingerprint, resetting the search cursor and rebuilding the snapshot.
1. Extension snapshotA worker thread runs a single multi-source reverse Dijkstra pass (AnneBuildTeamNavCandidateSnapshot), recording 'shortest path distance + owner' for each Nav area, excluding areas within 250u straight-line distance of any survivor, and ordering candidates by descending Flow.
2. Distance layersPartitions candidates into 10 fixed distance bands (250 / 350 / 500 / 700 / 900 / 1150 / 1400 / 1700 / 2000 / 2400 / 3000), intersects them with the active class's min/max distance bounds, and scans band by band while skipping empty bands.
3. Owner checksWithin each band, candidates are consumed from highest to lowest Flow: if the assigned owner is invalid or has reached capacity, the candidate is skipped without resetting the cursor; otherwise the evaluation frame binds to that owner's eye position, foot origin, and progress bucket.
4. Hard filtersChecks Nav attribute flags, behind-team hard rejection (cand - owner < -8, or -4 for Hunter/Jockey/Charger; waived when owner progress >= 90%), area cooldown, 100u hard separation and exclusion radius, hull stuck check, line-of-sight occlusion, and path reachability.
5. ScoringEvaluates distance sweet-spot fit, Flow gradient (soft penalty for behind spawns, x2.5 for Hunter/Jockey/Charger), elevation advantage, and nearby SI kernel density (close-range engaged SI are excluded and kernel radius scales with SI cap); candidates with total score <= 0 are eliminated.
6. Pick and spawnOnce the scoring pool collects 12 valid candidates or the current distance band is exhausted, the highest-scoring spot spawns the SI and increments its owner's load; if all bands are exhausted without a match, the system falls back to Director Range (2000u straight-line cap).

How this page maps to the real implementation / simplifications

Real implementationThis demo
AnneSpawn_NavCandidatesPrepareTeam / CollectTeam (multi-source Dijkstra; owner is the survivor yielding the shortest path, breaking ties by lower client index)8-way grid Dijkstra recording path distance and owner per cell (tie-broken by lower index, 1 cell = 50u)
Intersects the 10 TEAM_NAV_LAYER_EDGES bands with class [classMin, min(finalMax, inf_SpawnDistanceMax*2)] (first 9 half-open, final band closed)Identical (clips distance ranges by selected class and skips empty bands)
Orders candidates within each band by descending Flow (front-first); team mode skips near/mid/far tercile interleaving and shufflingIdentical (grid mode simulates Flow progress using horizontal X coordinates)
Excludes spots within max(250, inf_SpawnDistanceMin) straight-line distance of any survivor, followed by LOS trace, hull stuck, and path checksImplements the exclusion radius and grid LOS (Bresenham wall check); omits hull stuck and path re-verification
Hard-rejects behind-progress gaps (8 buckets for standard classes, 4 for Hunter/Jockey/Charger; soft-penalized instead of rejected when owner progress >= 90%)Identical
SpawnScore_BuildCandidate multi-factor scoring + best of 12-candidate budget poolForward bonus - behind gradient - distance deviation - kernel density; 100u hard separation rejected outright; picks best once 12 candidates are collected
SI_Target_limit: per-survivor cap = (SI limit / active survivors) + 1, doubled for the Flow leaderIdentical; each spawned SI increments its owner's count by 1, removing that owner from the active set and rebuilding the distance field once capped
Falls back to Director Range (2000u straight-line distance cap) once all distance bands are exhaustedPicks a random feasible distant cell and marks it as a fallback indicator
Nearby SI kernel density (close combat excluded, radius scales with SI cap), 100u hard separation, Nav area cooldown, and post-spawn teleport supervisionImplements area cooldown, 100u hard separation, and dynamic-radius kernel density; omits post-spawn teleport supervision
Real map Nav graph (exported via sm_navgraph_export with area centers, corners, Flow, attribute flags, and directed edges)Graph mode runs the same state machine over the imported adjacency graph, using real triangle raycasts when geometry is loaded (excluding dynamic props and glass semantics) and falling back to heuristics otherwise
Dynamic blocker snapshots (blocked) are read frame-by-frame from the engine by the native extension (elevators, doors, nav_block, etc.)In graph mode, 'Block Area' lets you toggle dynamic blockers manually; Dijkstra and candidate collection skip blocked nodes directly
Item and blocker entity layers reflect the post-load runtime snapshot (includes Stripper edits, before Director round-start item pruning)Renders item markers and blocker bounding boxes directly from the exported snapshot (requires v2 export data)
Difference from legacy single-source mode (inf_nav_team_nearest 0): the legacy mode locked onto a single target survivor per spawn attempt, built a single-source distance field, expanded class distance bands linearly, and interleaved near/mid/far terciles with random shuffling; the new team-nearest mode shares one multi-source distance field across the whole team, assigns each Nav area's owner naturally by shortest path, uses the same 10 fixed distance bands for all classes, and scans strictly front-first by Flow within each band.