Comp numeric transition: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{point ent|comp_numeric_transition|game=TeamSpen's Hammer Addons|internal=1}} It is also available in {{P2CE}}Portal 2: Community Edition. It changes a keyvalue or input...")
 
mNo edit summary
Line 33: Line 33:
:*quartic: Quartic (x^4)
:*quartic: Quartic (x^4)
:*sine: Sinusoidal
:*sine: Sinusoidal
{{KV targetname}}
{{KV Targetname}}


==Flags==
==Flags==
Line 46: Line 46:
{{IO|CancelPending|Cancel any events fired by this relay that are currently pending in the I/O event queue.}}
{{IO|CancelPending|Cancel any events fired by this relay that are currently pending in the I/O event queue.}}
{{IO|EnableRefire|Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.|nofgd=1}}
{{IO|EnableRefire|Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.|nofgd=1}}
{{IO|TriggerWithParameter|param=string|only={{mapbase}}{{P2CE also}}|Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.}}
{{IO|TriggerWithParameter|param=string|only={{mapbase}}{{P2CE}}|Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.}}
{{I Targetname}}
{{I Targetname}}



Revision as of 10:59, 11 May 2021

Template:Point ent It is also available in Portal 2: Community EditionPortal 2: Community Edition. It changes a keyvalue or input over time with various options, when triggered.

KeyValues

Start Disabled ([todo internal name (i)]) <choices>
  • 0: No
  • 0: Yes
Entity to Control ([todo internal name (i)]) <targetname>
The entity to which the outputs will be directed to.
Keyvalue/Input Name ([todo internal name (i)]) <string>
The name of the keyvalue or input to change. If the target is not an entity findable by the postcompiler, IO Type must be set.

{{KV|I/O Type|choices|The method used to control an entity. If Input, use the input name provided. If KeyValue, use the AddOutput to change the keyvalue. If Auto, examine the entity class that is being controlled to determine the appropriate mode.

  • auto: Automatic
  • io: Input
  • kv: KeyValue (AddOutput)

{{KV|Value Type|choices|The behaviour of the input, used to control what actual values are sent. Regardless of this value, the other options are 'position'-type values!

  • set: Instantly Set
  • moveto: Move to value
  • speed: Adjust Speed
  • light: Light Pattern
Beat Interval ([todo internal name (i)]) <float>
Time between each output. Smaller values are more accurate but increase the outputs generated.
Start Delay ([todo internal name (i)]) <float>
Wait this amount of time after being triggered before animating.
Duration ([todo internal name (i)]) <float>
Time the change will take.
Start Value ([todo internal name (i)]) <float>
Starting value. If the Value Type is Light Pattern, these may be a-z letters.
Ending Value ([todo internal name (i)]) <float>
Ending value. If the Value Type is Light Pattern, these may be a-z letters.
Easing Start ([todo internal name (i)]) <choices>
Controls how the animation begins.
  • linear: None
  • quad: Quadratic (x^2)
  • cubic: Cubic (x^3)
  • quartic: Quartic (x^4)
  • sine: Sinusoidal
Easing End ([todo internal name (i)]) <choices>
Controls how the animation ends.
  • linear: None
  • quad: Quadratic (x^2)
  • cubic: Cubic (x^3)
  • quartic: Quartic (x^4)
  • sine: Sinusoidal
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

Flags

Only trigger once : [1]
Allow fast retrigger : [2]

Inputs

Enable
Allows the relay to fire the OnTrigger outputs after being disabled.
Disable
Prevents the relay from firing OnTrigger outputs in response to Trigger inputs.
Trigger
Trigger the relay, causing its OnTrigger output to fire if it is enabled.
Toggle
Toggle the relay between enabled and disabled.
CancelPending
Cancel any events fired by this relay that are currently pending in the I/O event queue.
EnableRefire  !FGD
Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.
TriggerWithParameter <stringRedirectInput/string> (only in MapbasePortal 2: Community Edition)
Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.


Outputs

OnSpawn
Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.
OnTrigger
Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.
OnTriggerParameter <stringRedirectInput/string> (only in MapbaseTemplate:P2CE also)
Fired when the relay is triggered with a parameter. If the relay is set to only trigger once, it will delete itself after firing this output.


See Also