Skip to content

More features

Spawn Points

Where Special Infected Spawn From: Nav Candidate Filtering, 250 Hard Exclusion & Class Distance Bands

Breaking down the two-stage Special Infected spawn selection pipeline: six hard C++ safety filters, the 250-unit 3D straight-line red line, directed path distance bands for the five classes, and the rooftop high-ground discount formula.

Two-Stage Spawn Selection Pipeline: Six Safety Gates First, Multi-Dimensional Scoring Pool Second

In AnneHappy, every Special Infected spawn location passes through a two-stage selection process: low-level hard safety filtering followed by plugin tactical scoring. In Stage 1, the underlying C++ extension collects candidate areas across the map's directed Nav mesh and enforces six strict safety gates one by one:

  1. Nav Attribute Validity:Excludes no-spawn marked zones, the interior of the starting saferoom, and isolated mesh areas without valid connections.
  2. True Pathfinding Reachability:A candidate Nav area must have a directed reachable path to the target Survivor's Nav area, preventing Special Infected from spawning stuck behind sealed walls or at the bottom of one-way drops.
  3. 3D Hull Clearance:Checks ground and overhead clearance using the spawning Special Infected class's actual hull bounding box, eliminating spawns inside walls, low ducts, or geometry traps.
  4. Geometric Line-of-Sight Occlusion (LOS):The candidate point must lie completely outside the direct geometric line of sight (Trace ray) of all human Survivors, never materializing a Special Infected out of thin air right before a Survivor's eyes.
  5. 250-Unit 3D Straight-Line Exclusion:Any point within 250 units of 3D Euclidean straight-line distance from any Survivor on the field is immediately disqualified.
  6. Local Spawn Density Cap:Limits how many times the same small Nav cluster can be selected within a single wave, preventing all six Special Infected from stacking behind the exact same doorframe.

Only qualified candidate points that pass all six safety gates enter the Stage 2 scoring pool: based on the current AI difficulty tier, the system samples the top 9 to 12 candidates and computes a total score from distance sweet-spot fit, vertical height difference, front/back Flow position relative to the team, and class preferences before finalizing the spawn coordinates.

The 250 Straight-Line Red Line and Directed Path Distance Bands for the Five Classes

The key to understanding spawn locations is distinguishing between 3D straight-line distance and directed Nav path distance: the 250-unit hard exclusion measures through-wall 3D straight-line distance—even if a solid brick wall separates you from the next corridor and walking around takes 800 units, if the straight-line distance through the wall is under 250 units, nothing will ever spawn on the other side. Thus, true face-spawning does not exist in this server's code; when it feels like you rounded a corner right into a Hunter's face, it actually spawned in a legal blind spot 350+ units away and pounced into you at 900 air speed in 0.3 seconds.

Beyond the 250 straight-line red line, each class selects spawn points based on the directed Nav path distance walking or climbing from the candidate spot to the target Survivor. Every class prioritizes its closest preferred distance band first; if the preferred band is completely covered by Survivor line of sight, the system relaxes only the outer distance cap in two steps while keeping the class minimum safe distance strictly locked:

Special Infected ClassPreferred Path Distance Band1st Relaxed RangeFinal Relaxed RangeCombat Attack Profile
Boomer250 – 550250 – 1000250 – 1800Closest of all classes; camps right behind doors one wall away and around stair corners
Jockey / Charger250 – 700250 – 1250250 – 2200Close-range formation breaker right behind the Boomer; spawns frequently in hallways and narrow lanes
Spitter300 – 800300 – 1450300 – 2300Close-to-mid range corner follow-up; specializes in denying narrow doorways and incapacitation revive spots
Hunter350 – 950350 – 1750350 – 2900Mid-range and rooftop high-ground mainstay; pounces at high speed along open angled trajectories
Smoker500 – 1200500 – 2100500 – 3000Minimum distance locked at 500; pulls exclusively from mid-to-long range or high eaves

High-Ground Path Discount: Why Rooftops and Second Floors Always Have Smokers and Hunters

If calculated purely by ground Nav pathfinding distance, many second-floor balconies, motel eaves, or elevated factory catwalks require a long detour down distant stairs to reach Survivors on the first floor—often exceeding 1500 units in raw path distance, which would normally push them out of the preferred band. The reason these overhead vantage points constantly spawn Special Infected in actual play is that the plugin implements a dedicated High-Ground Discount formula:

For example, if a second-floor eave has a 1300-unit ground detour path to a first-floor Survivor but sits 260 units higher vertically, Smoker's 1.5x height discount shrinks the effective path distance to just over 900 units—landing squarely inside the high-scoring 500–1200 preferred band. Note that the high-ground discount only reduces long path estimates and boosts candidate scores; it never bypasses the 250 3D straight-line hard exclusion or the minimum path distance floor of 500 for Smoker / 350 for Hunter.

Countering Spawn Selection with Positioning: Three Practical Spawn-Blocking Principles

Because Special Infected spawn selection is strictly governed by line-of-sight occlusion, the 250 straight-line red line, and high-ground discounts, a Survivor squad can actively prune away the deadliest nearby candidate spots through smart positioning:

  • Hug Map Edges to Cut Out Half the Ground Nav:When pushing across wide streets, parks, or docks, never walk right down the center of the open area (which leaves all 360 degrees inside the 250–950 preferred band); hugging a solid building wall, cliff edge, or waterline on one side lets you use the terrain boundary to invalidate an entire side of the candidate pool.
  • Lock Down Close Boomers with Your 250 Exclusion Circle and Line of Sight:When clearing a wave or reviving indoors, have two covering teammates stand by hallway corners or doorframes to extend line of sight—both lighting up long corridors with Trace rays and sealing off adjacent cubbies with their own 250 straight-line exclusion circles, forcing Boomers and Chargers to spawn much farther out.
  • Raise Crosshairs to Clear 32+ High Ground First When Entering Atriums and Multi-Story Zones:The moment you step into a mall atrium, construction site, or two-story street block, the #3 rifle/sniper player must immediately raise their crosshair toward second-floor railings and eaves—high-ground discounts guarantee that Smokers and Hunters will fire from overhead, and looking up to cut a tongue when pulled is always faster than finding stairs to run up.

Open the interactive Special Infected Spawn Visualizer to simulate map-wide spawn points