Ai speechfilter

From Valve Developer Community
Revision as of 05:29, 30 August 2021 by Rhiono (talk | contribs) (Fix internal name format)
Jump to navigation Jump to search
English (en)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)

Template:Base point The entity allows to adjust how much an NPC will idle chatter to other NPC’s the player. 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.

C++ In code, it is represented by theCAI_SpeechFilterclass, defined in theai_speechfilter.cppfile.

Keyvalues

Subject(s) (subject) <targetname>
This is the NPC(s) whose speech we're filtering. May be a targetname or a classname.
Idle modifie (IdleModifier) <float>
Multiplier to the probability that our NPC(s) will idle speak. Set to 0 to prevent all idle speech.
Greet Player? (NeverSayHello) <choices>
If set to Yes, our NPC(s) won't greet the player when they first meet him.
  • 0: Yes
  • 1: No
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


Inputs

SetIdleModifier <floatRedirectInput/float>
Change the Idle Modifier keyvalue at any time.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs