CLogicAuto: Difference between revisions

From SigMod
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/logicauto.cpp /game/server/logicauto.cpp]''' '''Linked E...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
Fires outputs on map load, along with being able to check the [https://developer.valvesoftware.com/wiki/Env_global global state] to determine if it should fire those outputs or not.


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicauto.cpp /game/server/logicauto.cpp]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicauto.cpp /game/server/logicauto.cpp]'''
Line 9: Line 9:
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''CLogicAuto'''
**'''CLogicAuto'''
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CLogicAuto
! 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%;" |'''m_OnBackgroundMap'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnLoadGame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnMapSpawn'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnMapTransition'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnMultiNewMap'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnMultiNewRound'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnNewGame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_globalstate'''
| style="width: 15%;" |
| style="width: 35%;" |
|}

Latest revision as of 18:41, 1 May 2022

Overview[edit | edit source]

Fires outputs on map load, along with being able to check the global state to determine if it should fire those outputs or not.

Source location : /game/server/logicauto.cpp

Linked Entity : logic_auto

Class Structure[edit | edit source]

Entity DataMaps[edit | edit source]

CLogicAuto
Name Type Description
m_OnBackgroundMap
m_OnLoadGame
m_OnMapSpawn
m_OnMapTransition
m_OnMultiNewMap
m_OnMultiNewRound
m_OnNewGame
m_globalstate