The 16 Seconds of an SI Wave: Kill Observation Window, Independent Countdown & Anti-Bait State Machine
A source-level breakdown of infected_control's wave state machine: why 16 seconds is not a fixed gap between waves, how the observation window starts the clock early, and the complete trigger and release conditions for Anti-Bait wave holding.
Five Stages in the Lifecycle of a Single Special Infected Wave
In AnneHappy, regular Special Infected do not trickle in one by one as each dies—instead, they are centrally scheduled by the infected_control plugin through a strict five-stage wave state machine:
- Stage 1: Wave Queueing & Deployment:When a new wave triggers, the system fills the spawn queue according to the active rule pack's Special Infected cap and class weights, then spawns Special Infected sequentially across high-scoring Nav candidate points that pass safety filters.
- Stage 2: Kill Observation Check Window:An observation window opens simultaneously with wave deployment (Easy 16s, Normal 12s, Hard 10s, Expert 8s, Extreme 6s). If during this window the conditions 'spawn queue is empty + surviving field SI ratio drops below the tier's low-pressure threshold + team status is healthy + no living Tank on the field' are all met, observation ends immediately; otherwise, observation is forcibly ended when the window timer expires.
- Stage 3: 16-Second Independent Base Countdown:The moment the observation window ends, the next wave's 16-second base countdown officially starts ticking. This countdown runs completely independently—it neither subtracts the survival time of the last Special Infected from the previous wave, nor shortens a second time if you finish off straggling Special Infected mid-countdown.
- Stage 4: Final 4-Second Anti-Bait Evaluation Window:Only when the 16-second countdown enters its final 4 seconds is the Anti-Bait mechanism permitted to step in and evaluate the team's Flow progress and positioning.
- Stage 5: On-Time Wave Release or Uncapped Hold Delay:If no Anti-Bait extension is triggered, the next wave deploys the instant the countdown hits zero; if the state transitions into Hold, the full-squad Special Infected wave is suspended in the background and dropped right on your heads as soon as release conditions are continuously met for 2 full seconds.
Doing the Time Math: Why Two Waves Sometimes Feel Less Than 3 Seconds Apart
Comparing two practical timelines in Extreme tier (6s observation window + 16s base countdown = 22s theoretical max cycle) makes it crystal clear why wave pacing feels worlds apart depending on how your team fights:
| Combat Scenario | Second 0 | Second 3 | Second 6 | Second 19 | Second 22 | Perceived Quiet Window |
|---|---|---|---|---|---|---|
| Scenario A: Instant Wipe & Fast Push | Wave 1 spawns | Team focus-fires and wipes all SI instantly, meeting low-pressure conditions early so the 16s countdown starts right at the 3s mark | Team uses the quiet window to push map Flow forward | 16s countdown hits zero; Wave 2 spawns right on schedule | Engaging Wave 2 | Enjoy a full 16 seconds of Special Infected-free pushing time |
| Scenario B: Drawn-Out Skirmish | Wave 1 spawns | Still fighting Special Infected in the hallway, 4 remaining on the field | 6s observation window expires; 16s countdown starts running in the background | Finally kill the last low-HP Special Infected after a grueling 19-second fight | Background 16s countdown hits zero right then; Wave 2 spawns right in your face | Slam headfirst into the next full wave of Special Infected after only 3 seconds |
As the comparison shows: in Scenario B, the 13 seconds spent dragging out the fight with the first wave from second 6 to second 19 directly ate up most of the next wave's 16-second countdown. Therefore, both sloppy Special Infected clearing and wiping them instantly only to stand around idle will trap your team in an endless loop of waves—wiping the wave immediately and pushing forward right away is the only way to convert the 16-second countdown into real map progress.
Anti-Bait State Machine: Normal → Pressure → Hold
To prevent Survivors from camping inside a saferoom door, elevator entrance, or dead-end room to intentionally bait and kill a wave of Special Infected before moving on, the plugin implements a three-state Anti-Bait state machine:
- Stagnation Baseline (12-Second Lower-Median Flow Window)
- The system continuously tracks the lower-median map Nav Flow progress among all valid Survivors on the team (the 3rd player's Flow in a 4-player game). If that progress shows no meaningful forward gain within a 12-second window, the team is flagged as stagnant—a single speedrunner rushing ahead alone cannot refresh this progress for the team.
- Transition to Pressure and Hold (Last 4 Seconds + 2-Second Confirmation)
- When the 16-second base countdown enters its final 4 seconds (the Pressure window), if the team stays in a state of Stagnant + Healthy + Tightly Grouped continuously for 2 full seconds, the wave will not release when the countdown hits zero; instead, it locks into an indefinite delay (Hold). As long as you stay grouped at full health without moving, that wave remains held in the background.
- Releasing Hold for Immediate Wave Spawn (2-Second Release Confirmation)
- Once in Hold state, if any of the following changes is detected continuously for 2 seconds, the system immediately lifts the hold and unleashes the entire full wave of Special Infected on the spot: (1) the team's lower-median Flow resumes moving forward; (2) the tight formation spreads out or someone falls behind and becomes isolated; or (3) any Survivor on the field enters a vulnerable state.
This is why a public team can chat peacefully at full health inside a saferoom door or by an elevator for ages, only to have all six Special Infected slam into their faces within two seconds the moment they push the door open and take their first step out.
Exact Geometric Boundaries of Tight Grouping and Vulnerable States
The plugin determines whether a team is Healthy and Tightly Grouped using exact engine spatial coordinates and state flags rather than rough visual impressions:
- Connected Grouping and the Isolation Red Line (1200 Units):There must be at least 2 valid Survivors on the field, all belonging to the same connected graph component, with no one more than 1200 units away from their nearest teammate. The moment anyone strays beyond 1200 units from the nearest teammate, an isolation state is triggered immediately.
- Dual Rulers for Tight Span (800 / 1500 Units):Within the connected group, the team must either keep the maximum distance between the two farthest players at <= 800 units, OR keep the maximum team span at <= 1500 units while maintaining an average distance to each player's nearest teammate of <= 800 units. Exceeding these bounds marks the formation as loose, preventing Anti-Bait wave holding and allowing waves to spawn normally.
- Single-Vote Veto on Vulnerable State:If any single teammate becomes Incapacitated, Hanging from a ledge, Pinned by a Special Infected, dead, or stands in a spot where valid Nav Flow cannot be read, the entire team is immediately flagged as vulnerable, and any held wave will be ruthlessly unleashed after the 2-second confirmation.
Visit the Special Infected Spawning & Difficulty page for the full flowchart