Ai speechfilter

From Valve Developer Community
Revision as of 14:25, 14 April 2012 by Dmx6 (talk | contribs)
Jump to navigation Jump to search

Template:Base point

Entity description

The ai_speechfilter entity allows to adjust how much an NPC will idle chatter to other NPC’s around him and indeed the player themselves. This is quite useful, especially if you have a script setup where idle chatter will seem out of place, or get in the way of a Face Poser scene. 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 or target).
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 theEnableinput).

Inputs

SetIdleModifier <floatRedirectInput/float>
Allows designers to change the idle modifier at runtime
ResponseContext:
AddContext <stringRedirectInput/string>
Adds to the entity's list of response contexts. Format is <key>:<value>.
RemoveContext <stringRedirectInput/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.

Outputs

See also

Response System