Comp relay: Difference between revisions
Jump to navigation
Jump to search

Note: Inputs and outputs only work if given directly from entities placed in Hammer, messages sent in game and dynamically will not work.
m (→Keyvalues: Another template) |
Thunder4ik (talk | contribs) m (clean up) |
||
Line 1: | Line 1: | ||
{{Language subpage}} | {{Language subpage}} | ||
It is also available in all games with {{teamspen|4}} installed. It is an optimized version of [[ | It is also available in all games with {{teamspen|4}} installed. It is an optimized version of [[logic relay]]. The entities numerous inputs and outputs can be used to bundle inputs/outputs together. Some features from <code>logic_relay</code> are missing, most are missing because this entity does not have any of its flags. | ||
{{Note| Inputs and outputs only work if given directly from entities placed in Hammer, messages sent in game and dynamically will not work.}} | {{Note| Inputs and outputs only work if given directly from entities placed in Hammer, messages sent in game and dynamically will not work.}} | ||
Line 22: | Line 22: | ||
{{IO|OnUser1|to=OnUser8|param=string|These outputs each fire in response to the firing of the like-numbered <code>FireUser1</code> to <code>FireUser8</code> Input; see [[User Inputs and Outputs]].}} | {{IO|OnUser1|to=OnUser8|param=string|These outputs each fire in response to the firing of the like-numbered <code>FireUser1</code> to <code>FireUser8</code> Input; see [[User Inputs and Outputs]].}} | ||
==See also == | ==See also == | ||
* [[ | * [[logic relay]] | ||
* [[TeamSpen's Hammer Addons]] | * [[TeamSpen's Hammer Addons]] |
Revision as of 23:22, 3 January 2024


It is also available in all games with TeamSpen's Hammer Addons installed. It is an optimized version of logic relay. The entities numerous inputs and outputs can be used to bundle inputs/outputs together. Some features from
logic_relay
are missing, most are missing because this entity does not have any of its flags.

Keyvalues
StaticTargetName:
- Name (targetname) <string>
- The name that other entities refer to this entity by. This entity only exists during compilation, so the name is only usable in limited situations.
ControlEnables:
- Control Type (ctrl_type) <choices>
- Controls how the Control Value is interpreted.
- 0 : Is Enabled?
- 1 : Is Disabled?
- Control Value (ctrl_value) <choices>
- Decides whether this entity is enabled. If disabled, the entity has no effect.
- 0 : No
- 1 : Yes
- Extra Delay (delay) <float>
- Add this delay to all outputs. This allows you to control this via $fixup values, for instance.
Inputs
- Trigger <string >
- Trigger the relay and fire the output.
- TurnOn <string >
- Fire the OnTurnedOn output.
- TurnOff <string >
- Fire the OnTurnedOff output.
- FireUser1 to FireUser8 <string >
- Fires the respective
OnUser
outputs; see User Inputs and Outputs.
Outputs
- OnTrigger <string >
- Fired when the relay is triggered.
- OnTurnOn <string >
- Fired when the relay is turned on.
- OnTurnOff <string >
- Fired when the relay is turned off.
- OnUser1 to OnUser8 <string >
- These outputs each fire in response to the firing of the like-numbered
FireUser1
toFireUser8
Input; see User Inputs and Outputs.