func_orator

From Valve Developer Community
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Class hierarchy
CFlexExpresser
CFlexExpresserShim
CFlexCycler
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

func_orator is a point entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It's an entity that allows the firing of a response rule to a random player, allowing them to talk when prompted.
This can be used for a simple one-liner, or to create whole conversations.

Example uses:

  • Campaign intros firing an intro response rule, which causes one of many conversations to take place.
  • Panic events where the relay to start the event eventually fires an output to any player, making them speak up that the path is now cleared.
  • Scripting conversations between the players and the person on the radio in the finale.
Note.pngNote:This entity does not require a model to function. However, in Left 4 Dead Left 4 Dead not using a model causes the console to print a WARNING: orator at X Y Z missing modelname. Which can be ignored. In Left 4 Dead 2 Left 4 Dead 2 this message was removed and in official maps it's used without a model.
Note.pngNote:Disembodied voices, such as the "NPC" on the radio, emit from the orator's location. For example, the orator in the finale of "No Mercy" is the white console next to the radio, causing the voices to only play on the right speaker when looking directly at the radio.
Warning.pngRisk of Confusion:This is a point entity despite the name starting with func_ (which is usually used for brush entities).

Keyvalues

Note.pngNote:This entity can optionally use a model. See Model entity/Generic Keyvalues, Inputs and Outputs for keyvalues and inputs that affect model rendering.
Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Max Followup Dist (maxThenAnyDispatchDist) <float> (only in Left 4 Dead 2)
A 'then ANY' followup on a response from this orator will dispatch to characters up to this many units away. Leave 0 to mean that even an infinitely distant character may respond.}}

Flags

Not Solid : [1]

Inputs

SpeakResponseConcept <stringRedirectInput/string>
Speak the specified response concept