L L4D2node

CDirector

56 own methods

The director

Methods

callable on a CDirector script handle
Script Function Returns Parameters Description
AreAllSurvivorsInBattlefield (ScriptAreAllSurvivorsInBattlefield) bool none Returns true if all Survivors are in the battlefield
AreAllSurvivorsInFinaleArea bool none True when all survivors are within the finale area
AreTeamsFlipped bool none True when teams are flipped in Versus modes
ClearCachedBotQueries void none Mark all cached bot query results as invalid
ForceNextStage void none Push the ScriptedMode to next stage - i.e. request GNSS be called
GetAveragedSurvivorSpan float none Get the distance between the lead and trailing survivors, smoothed over time
GetAveragedSurvivorSpeed float none Get the rate at which the lead survivor is moving along the flow, smoothed over time
GetClosestActivePipeBomb (ScriptGetClosestActivePipeBomb) hscript Vector Returns the closest active pipe bomb from this origin
GetClosestCharacterWhoIsIT (ScriptGetClosestCharacterWhoIsIT) hscript hscript Returns the closest character who is IT
GetClosestSurvivor (ScriptGetClosestSurvivorOrigin) hscript Vector, bool, bool Returns the closest Survivor to the passed origin
GetCommonInfectedCount (ScriptGetCommonInfectedCount) int none Returns number fo infected currently spawned
GetFurthestSurvivorFlow float none Get the maximum distance along the flow that the survivors have reached
GetGameMode cstring none Get the current game mode
GetGameModeBase cstring none Get the current base game mode
GetHighestFlowSurvivor (ScriptGetHighestFlowSurvivor) hscript none Returns the Survivor with the highest flow
GetHoldoutCooldownEndTime float none Get the end time of the cooldown timer
GetLowestFlowSurvivor (ScriptGetLowestFlowSurvivor) hscript none Returns the Survivor with the lowest flow
GetMapName cstring none Get the current game mode
GetMapNumber int none Return the current map number
GetMissionWipes int none Returns the current number of mission wipes
GetPendingMobCount (ScriptGetPendingMobCount) int none Returns tnumber of infected waiting to spawn
GetRandomSurvivor (ScriptGetRandomSurvivor) hscript none Returns a random Survivor
GetSurvivorSet int none 1=L4D1 Survivors, 2=L4D2 Survivors
GetTimeSinceSpecialZombieKilled (ScriptGetTimeSinceSpecialZombieKilled) float int Returns the time since the passed zombie type was killed
GetTotalElapsedMissionTime int none Returns the total elapsed mission time
HasAnySurvivorLeftSafeArea bool none True when one or more survivors have left the starting safe area
IsAnySurvivorBypassingTank bool none True when one or more survivors are bypassing the Tank
IsAnySurvivorInCombat bool none Returns true if any survivor recently dealt or took damage
IsAnySurvivorInExitCheckpoint bool none True when one or more survivors are in the exit checkpoint
IsAnySurvivorInStartArea bool none True when one or more survivors are in the starting safe area
IsFinale bool none True when the finale has started
IsFinaleEscapeInProgress bool none True when the finale escape is in progress
IsFinaleVehicleReady bool none True when the finale vehicle is ready
IsFinaleWon bool none Returns true if the finale has been won
IsFirstMapInScenario bool none True if the first map in a scenario
IsL4D1Campaign bool none Return true is the current campaign is originally from L4D1
IsLocationFoggedToSurvivors (ScriptIsLocationFoggedToSurvivors) bool Vector Returns true if the passed location is fogged to Survivors
IsPlayingIntro bool none True if the intro is currently playing
IsPlayingOnConsole bool none Return true if game is running on a console (such as Xbox 360)
IsSessionStartMap bool none True if the map is the start of the session
IsSinglePlayerGame bool none Return true if game is in single player
IsTankInPlay bool none Returns true if any tanks are aggro on survivors
L4D1SurvivorGiveItem void none Let the L4D1 survivors know that now is a good time to give the players an item
PlayMegaMobWarningSounds void none Plays a horde scream sound and asks survivors to speak 'incoming horde' lines
RegisterForbiddenTarget (ScriptRegisterForbiddenTarget) void hscript Registers a target entity as forbidden
ResetMobTimer void none Trigger a mob as soon as possible when in BUILD_UP
ResetSpecialTimers void none Reset all special timers (by type and by slot) so that hopefully mobs will spawn asap
SetHoldoutCooldownEndTime void float Set the end time of the cooldown timer
UnregisterForbiddenTarget (ScriptUnregisterForbiddenTarget) void hscript Unregisters a target entity as forbidden
UserDefinedEvent1 (ScriptUserDefinedEvent1) void none generic user defined event fired from a squirrel script
UserDefinedEvent2 (ScriptUserDefinedEvent2) void none generic user defined event fired from a squirrel script
UserDefinedEvent3 (ScriptUserDefinedEvent3) void none generic user defined event fired from a squirrel script
UserDefinedEvent4 (ScriptUserDefinedEvent4) void none generic user defined event fired from a squirrel script
WarpAllSurvivorsToBattlefield void none Warp the survivors to the crescendo event
WarpAllSurvivorsToCheckpoint void none Warp the survivors to the next checkpoint
WarpAllSurvivorsToFinale void none Warp the survivors to the finale area