CLogicRelay: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Overview == ... '''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicrelay.h /game/server/logicrelay.h]''' '''Linked Ent...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
. | An entity used to forward or "relay" a number of inputs to other entities. It's usage is similar to that of a function or subroutine in programming, when you have a number of inputs which you would like to send repeatedly across the logic of your map, you can package them into a logic_relay to be fired with a single input, rather than repeating large sections of logic redundantly. | ||
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicrelay.h /game/server/logicrelay.h]''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicrelay.h /game/server/logicrelay.h]''' | ||
Line 11: | Line 11: | ||
***'''[[CLogicalEntity]]''' | ***'''[[CLogicalEntity]]''' | ||
****'''CLogicRelay''' | ****'''CLogicRelay''' | ||
== Entity DataMaps == | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0; | |||
|+CLogicRelay | |||
! style="width: 50%; background-color: #303030; color: white" |Name | |||
! style="width: 15%; background-color: #303030; color: white" |Type | |||
! style="width: 35%; background-color: #303030; color: white" |Description | |||
|- | |||
| style="width: 50%;" |'''InputCancelPending''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputDisable''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputEnable''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputEnableRefire''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputToggle''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputTrigger''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_OnSpawn''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_OnTrigger''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bDisabled''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bWaitForRefire''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|} |
Latest revision as of 17:44, 10 July 2022
Overview[edit | edit source]
An entity used to forward or "relay" a number of inputs to other entities. It's usage is similar to that of a function or subroutine in programming, when you have a number of inputs which you would like to send repeatedly across the logic of your map, you can package them into a logic_relay to be fired with a single input, rather than repeating large sections of logic redundantly.
Source location : /game/server/logicrelay.h
Linked Entity : logic_relay
Class Structure[edit | edit source]
- CBaseEntity
- CServerOnlyEntity
- CLogicalEntity
- CLogicRelay
- CLogicalEntity
- CServerOnlyEntity
Entity DataMaps[edit | edit source]
Name | Type | Description |
---|---|---|
InputCancelPending | ||
InputDisable | ||
InputEnable | ||
InputEnableRefire | ||
InputToggle | ||
InputTrigger | ||
m_OnSpawn | ||
m_OnTrigger | ||
m_bDisabled | ||
m_bWaitForRefire |