Wasn't this the goal of the Director AI in Left 4 Dead?[1] Monitoring player progress (or lack of it) and tailoring how zombies and items spawned outside of script events, and in L4D2 how the map, pathing, and weather worked in order to maximize tension or encourage progress?
1: https://left4dead.fandom.com/wiki/The_Director