info_director
Jump to navigation
Jump to search
Code classes:
CInfoDirector
CBaseEntity
(all ents)
info_director
is a point entity present in both Left 4 Dead games. The director is a vital part of Left 4 Dead's gameplay. It handles the majority of infected spawning and tries to keep dull moments to a minimum, just like a real movie.
Inputs[edit | edit source]
- PanicEvent
- Tells the director an event of some sort happened which should attract infected.
- PanicEventControlled
<integer>
(only available in ) - Causes a panic event with a specific intensity. 1 is less intense, 2 is more intense. In use ScriptedPanicEvent.
- ForceSurvivorPositions
- Teleports each survivor to an unoccupied
info_survivor_position
and freezes them there. Often used at the very start of a campaign to makes survivors stay in place for the camera movement. - ReleaseSurvivorPositions
- Lets survivors move freely again.
- FireConceptToAny
<string>
- Gives a speech concept to any survivor that is capable of speaking it.
- StartIntro
- Used for intro sequences. Players are immune to damage, and no infected mobs or special infected may be spawned.
- FinishIntro
- Tells the game the intro sequence is over. Players will take damage as normal, and mobs/special infected may spawn once all players leave their starting area.
- EnableTankFrustration
- "Can be used to enable the tank frustration meter."[Clarify]
- DisableTankFrustration
- "Can be used to disable the tank frustration meter."[Clarify]
- ScriptedPanicEvent
<string>
(only available in ) - Runs a scripted panic event.
- ForcePanicEvent (only available in )
- Trigger a panic event, "no matter what else is going on".
- EndCustomScriptedStage (only available in )
- "End a custom scripted stage."[Clarify]
IncrementTeamScore(only available in )- No effect.
- BeginScript
<string>
(only available in ) - Runs a director script.
- EndScript (only available in )
- Ends all director scripts.
- CreateNewJournal
<string>
(only available in ) - "Creates a new journal."[Clarify]
- WriteToJournal
<string>
(only available in ) - "Adds a task to the I/O Journal."[Clarify]
- ExecuteJournal
<string>
(only available in ) - "Executes all tasks in the specified journal."[Clarify]
Outputs[edit | edit source]
- OnGameplayStart
- Fires when initial players have spawned in.
- OnPanicEventFinished
- Fires when a panic event is finished.
- OnCustomPanicStageFinished (only available in )
- Fires when each stage of a custom panic event or custom finale finishes.
- OnTeamScored (only available in )
- Fires when a player places a scavenge item in the scavenge goal.
- OnScavengeRoundStart (only available in )
- Fires when a scavenge game starts.
- OnScavengeOvertimeStart (only available in )
- Fires when the scavenge timer has run out and game went into overtime.
- OnScavengeOvertimeCancel (only available in )
- Fires if time gets added to the clock, ending overtime.
- OnScavengeTimerExpired (only available in )
- Fires when the scavenge timer has run out and game did not go to overtime.
- OnScavengeIntensityChanged
<integer>
(only available in ) - Fires when the scavenge mode intensity level has changed. 1 = highest intensity, decreases as number gets larger.
- OnUserDefinedScriptEvent1 to OnUserDefinedScriptEvent4 (only available in )
- Fires when the functions
UserDefinedEvent1()
toUserDefinedEvent4()
are called in a Vscript.