Point player speak

From Valve Developer Community
Revision as of 09:19, 15 July 2020 by FrozenH2O (talk | contribs) (Remove duplicate inputs)
Jump to navigation Jump to search

Template:Source2 point multi It is used to force the HLVR player to speak.

Keyvalues

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Parent Model Bone/Attachment Name (parentAttachment) <parentAttachment>
The name of the bone or attachment to attach to on the entity's parent in the movement hierarchy. Use !bonemerge to use bone-merge style attachment.
Model Attachment position offset (origin) <vector>
Offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
Model Attachment angular offset (angles) <angle>
Angular offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
Model Attachment scale (scales) <vector>
Scale in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
Use Model Attachment Offset (useLocalOffset) <boolean>
Whether to respect the specified local offset when doing the initial hierarchical attachment to its parent.

Inputs

SpeakConcept <stringRedirectInput/string>
Speak the desired concept. Optional string can be used to specify temp contexts for this speak (context1:value1)
InterruptSpeech
If the player is speaking, wait for the next interrupt point in the current scene, and then stop talking and cancel the scene.
CancelSpeech
If the player is speaking, stop talking and cancel the speech scene.
AddContext <stringRedirectInput/string>
Adds context (context1:value1,context2:value2).
RemoveContext <stringRedirectInput/string>
Remove context (contextname).
ClearContext
Clear all context.
SilencePlayer <booleanRedirectInput/boolean>
Silence the player.
VScript:
CallPrivateScriptFunction <stringRedirectInput/string>
Calls a script function from this entity's private script scope.
CallGlobalScriptFunction <stringRedirectInput/string>
Calls a script function in the global script scope.


Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Outputs