Ai speechfilter
Jump to navigation
Jump to search
Entity description
An entity that can be used to control the idle speech patterns of a set of NPCs. Speech patterns for NPCs are defined in Response System.
Keyvalues
- Subject(s) ([todo internal name (i)]) <targetname>
- This is the NPC(s) whose speech we're filtering. May be a targetname or a classname.
- Idle modifier. ([todo internal name (i)]) <float>
- Multiplier to the percentage chance that our NPC(s) will idle speak. Set to 0 to prevent all idle speech.
- Greet Player? ([todo internal name (i)]) <choices>
- If set to Yes, our NPC(s) won't greet the player when they first meet him.
- 0 : Yes
- 1 : No
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
ResponseContext:
- Response Contexts (ResponseContext) <string>
- Pre-defined response system context{s} for this entity. Format is
key:value,key:value,...
When this entity speaks, the list of keys & values will be passed to the response rules system.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Inputs
- SetIdleModifier <float >
- Allows designers to change the idle modifier at runtime
ResponseContext:
- AddContext <string >
- Adds to the entity's list of response contexts. Format is
<key>:<value>
.
- RemoveContext <string >
- Remove a context from this entity's list. The name should match the key of an existing context.
- ClearContext
- Removes all contexts from this entity's list.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.