L4D2 Director Scripts/AllowFallenSurvivorItem
When its DirectorOptions is loaded, this callback for every spawned item from a Fallen Survivor. Arguments given are strings representing a weapon's classname; return
trueto allow Fallen Survivors to have a chance in equipping the weapon.
printlfunction, the arguments are:
Not only that Fallen Survivors spawn in certain maps only, like
c10m4_mainstreet(Death Toll - Streets) or
c6m2_bedlam(The Passing - Bedlam), they also are too rare to reliably debug any code with them on those maps. With these commands, once set up properly can be used to debug Fallen Survivors efficiently:
|ConVar/Command||Parameters or default value||Descriptor||Effect|
|Seconds||When a Fallen Survivor is killed, how long in seconds should pass before another can spawn.|
|Arbitrary number||How many Fallen Survivors can be active at once.|
|0 disables, 1 enables||Determines if|
|Name of a Common's model||When|
bool AllowFallenSurvivorItem(string classname)
||Name of a weapon's classname; Only 4 are given.|
|bool||Return true to allow the respective weapon from spawning; false or none is otherwise.|
When ran, Fallen Survivors will sometimes only spawn with a weapon_first_aid_kit equipped, and never spawn equipped with any other gear.