Logic choreographed scene: Difference between revisions
Jump to navigation
Jump to search
(choreo actually can work in MP, but the actor needs to be in each player's PVS) |
(-added internal names, removed irrelevant info) |
||
Line 5: | Line 5: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Scene file|scene|The [[VCD]] scene file to use.}} | {{KV|Scene file|intn=SceneFile|scene|The [[VCD]] scene file to use.}} | ||
{{KV|Target 1|to=Target 8|target_destination|Use these keyvalues to specify the resolution of Actor or Event Target names that are using a [[Choreography_Implementation#Using_.21Target.23_Names|!Target#]] name in the VCD.}} | {{KV|Target 1|intn=target1|to=Target 8|intn2=target8|target_destination|Use these keyvalues to specify the resolution of Actor or Event Target names that are using a [[Choreography_Implementation#Using_.21Target.23_Names|!Target#]] name in the VCD.}} | ||
{{KV|If an Actor is talking...|choices|What to do if an actor this scene needs is already talking when this scene is told to start.}} | {{KV|If an Actor is talking...|intn=busyactor|choices|What to do if an actor this scene needs is already talking when this scene is told to start.}} | ||
:* 0 : Start immediately | :* 0 : Start immediately | ||
:* 1 : Wait for actor to finish | :* 1 : Wait for actor to finish | ||
:* 2 : Interrupt at next interrupt event | :* 2 : Interrupt at next interrupt event | ||
:* 3 : Cancel at next interrupt event | :* 3 : Cancel at next interrupt event | ||
{{KV|On player death|choices|What should this entity do if the player dies}} | {{KV|On player death|intn=onplayerdeath|choices|What should this entity do if the player dies}} | ||
:* 0 : Do Nothing | :* 0 : Do Nothing | ||
:* 1 : Cancel Script and return to AI | :* 1 : Cancel Script and return to AI | ||
Line 26: | Line 26: | ||
{{IO|InterjectResponse|Finds an actor who can respond to the specified concept string while the scene continues playing|param=string}} | {{IO|InterjectResponse|Finds an actor who can respond to the specified concept string while the scene continues playing|param=string}} | ||
{{IO|StopWaitingForActor|Stop waiting on an actor to stop talking.}} | {{IO|StopWaitingForActor|Stop waiting on an actor to stop talking.}} | ||
== Outputs == | == Outputs == | ||
Line 33: | Line 32: | ||
{{IO|OnCanceled|The scene has been canceled}} | {{IO|OnCanceled|The scene has been canceled}} | ||
{{IO|OnTrigger1|to=OnTrigger16|Scene trigger 1. {{activator|activator}}}} | {{IO|OnTrigger1|to=OnTrigger16|Scene trigger 1. {{activator|activator}}}} | ||
[[Category:Choreography]] | [[Category:Choreography]] |
Revision as of 12:34, 27 October 2022
Template:Base point It manages a choreographed scene of one or more actors. For an example on how this entity can be used, see the npc_gman_overwatch prefab.
Keyvalues
- Target 1 (target1) to Target 8 (target8) <targetname>
- Use these keyvalues to specify the resolution of Actor or Event Target names that are using a !Target# name in the VCD.
- If an Actor is talking... (busyactor) <choices>
- What to do if an actor this scene needs is already talking when this scene is told to start.
- 0 : Start immediately
- 1 : Wait for actor to finish
- 2 : Interrupt at next interrupt event
- 3 : Cancel at next interrupt event
- On player death (onplayerdeath) <choices>
- What should this entity do if the player dies
- 0 : Do Nothing
- 1 : Cancel Script and return to AI
- 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
Inputs
- Start
- Starts playback of the scene file
- Pause
- Pauses playback of the scene file
- Resume
- Resumes playback of the scene if it has been paused
- Cancel
- Cancels playback of the scene
- CancelAtNextInterrupt
Cancel
s playback of the scene at the next interrupt event in the scene.
- PitchShift <float >
- Multiplies the pitch
- InterjectResponse <string >
- Finds an actor who can respond to the specified concept string while the scene continues playing
- StopWaitingForActor
- Stop waiting on an actor to stop talking.
Outputs
- OnStart
- The scene has started
- OnCompletion
- The scene has completed
- OnCanceled
- The scene has been canceled
- OnTrigger1 to OnTrigger16
- Scene trigger 1. (!activator is the activator)