CTFObjectiveResource: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
Manages and networks the state of data pertaining to the Mann vs Machine gamemode.


'''Source location : ...'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/tf/tf_objective_resource.h /game/server/tf/tf_objective_resource.h]'''


'''Linked entity : ...'''
'''Linked entity : [https://developer.valvesoftware.com/wiki/tf_objective_resource tf_objective_resource]'''


==[[SendProps|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CBaseTeamObjectiveResource]]'''
***'''[[CBaseAnimatingOverlay]]'''
***'''CTFObjectiveResource'''
****'''[[CBaseFlex]]'''
*****'''[[CBaseCombatCharacter]]'''
******'''[[CBasePlayer]]'''
*******'''CTFPlayer'''


== SendProps ==
== SendProps ==
{| class="wikitable sortable" style="margin: 0 auto; width: 100%; padding: 0;"
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+CTFObjectiveResource  
|+CTFObjectiveResource  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 24: Line 20:
| style="width: 50%;" |'''m_nMannVsMachineMaxWaveCount'''
| style="width: 50%;" |'''m_nMannVsMachineMaxWaveCount'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |The max wave count on the wavebar.
|-
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveCount'''
| style="width: 50%;" |'''m_nMannVsMachineWaveCount'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |The current wave count on the wavebar.
|-
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveEnemyCount'''
| style="width: 50%;" |'''m_nMannVsMachineWaveEnemyCount'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Total amount of mainwave enemies. Does not update the wavebar's progress bar during a wave if changed, until an icon is added or removed.
|-
|-
| style="width: 50%;" |'''m_nMvMWorldMoney'''
| style="width: 50%;" |'''m_nMvMWorldMoney'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Total worth of currency packs that currently exist in the world and can be picked up.
|-
|-
| style="width: 50%;" |'''m_flMannVsMachineNextWaveTime'''
| style="width: 50%;" |'''m_flMannVsMachineNextWaveTime'''
Line 60: Line 56:
| style="width: 50%;" |'''m_iszMvMPopfileName'''
| style="width: 50%;" |'''m_iszMvMPopfileName'''
| style="width: 15%;" |String
| style="width: 15%;" |String
| style="width: 35%;" |
| style="width: 35%;" |Name of the popfile. Modifying this with $SetProp causes the server to change to a different map on mission end; use $SetClientProp instead.
|-
|-
| style="width: 50%;" |'''m_iChallengeIndex'''
| style="width: 50%;" |'''m_iChallengeIndex'''
Line 76: Line 72:
| style="width: 50%;" |'''000'''
| style="width: 50%;" |'''000'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Amount of bots with the first WaveSpawn's icon, as displayed on the wavebar.
|-
|-
| style="width: 50%;" |'''001'''
| style="width: 50%;" |'''001'''
Line 125: Line 121:
| style="width: 50%;" |'''m_iszMannVsMachineWaveClassNames'''
| style="width: 50%;" |'''m_iszMannVsMachineWaveClassNames'''
| style="width: 15%;" |String
| style="width: 15%;" |String
| style="width: 35%;" |
| style="width: 35%;" |The first wavespawn's bot's ClassIcon name.
|-
|-
| style="width: 50%;" |'''m_iszMannVsMachineWaveClassNames'''
| style="width: 50%;" |'''m_iszMannVsMachineWaveClassNames'''
| style="width: 15%;" |Array
| style="width: 15%;" |Array
| style="width: 35%;" |
| style="width: 35%;" |The selected wavespawn's bot's ClassIcon name.
|-
|-
| colspan="3" style="padding: 0; margin: 0;" |
| colspan="3" style="padding: 0; margin: 0;" |
Line 135: Line 131:
! colspan="3" |m_nMannVsMachineWaveClassFlags
! colspan="3" |m_nMannVsMachineWaveClassFlags
|-
|-
| style="width: 50%;" |'''000'''
| style="width: 50%;" |'''0'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Flags for the icons on the wavebar. Icon order is based on the order in which they are listed in the popfile.
 
 
Removes it from the wavebar.
|-
|-
| style="width: 50%;" |'''001'''
| style="width: 50%;" |'''1'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Moves the icon to be part of the main wave.
|-
|-
| style="width: 50%;" |'''002'''
| style="width: 50%;" |'''2'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Moves the icon to be part of support.
|-
|-
| style="width: 50%;" |'''003'''
| style="width: 50%;" |'''4'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Moves the icon to be part of Mission support, coming after "regular" support.
|-
|-
| style="width: 50%;" |'''004'''
| style="width: 50%;" |'''8'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Adds a red background to the icon; only works if it is part of the main wave. Used to indicate giants and tanks.
|-
|-
| style="width: 50%;" |'''005'''
| style="width: 50%;" |'''16'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |Adds a crit outline to the icon.
|-
|'''000'''
|Integer
|
|-
|'''001'''
|Integer
|
|-
|'''002'''
|Integer
|
|-
|'''003'''
|Integer
|
|-
|'''004'''
|Integer
|
|-
|'''005'''
|Integer
|
|-
|-
| style="width: 50%;" |'''006'''
|'''006'''
| style="width: 15%;" |Integer
|Integer
| style="width: 35%;" |
|
|-
|-
| style="width: 50%;" |'''007'''
|'''007'''
| style="width: 15%;" |Integer
|Integer
| style="width: 35%;" |
|
|-
|-
| style="width: 50%;" |'''008'''
|'''008'''
| style="width: 15%;" |Integer
|Integer
| style="width: 35%;" |
|
|-
|-
| style="width: 50%;" |'''009'''
|'''009'''
| style="width: 15%;" |Integer
|Integer
| style="width: 35%;" |
|
|-
|-
| style="width: 50%;" |'''010'''
|'''010'''
| style="width: 15%;" |Integer
|Integer
| style="width: 35%;" |
|
|-
|-
| style="width: 50%;" |'''011'''
|'''011'''
| style="width: 15%;" |Integer
|Integer
| style="width: 35%;" |
|
|}
|}
|-
|-
Line 401: Line 424:
| style="width: 50%;" |'''011'''
| style="width: 50%;" |'''011'''
| style="width: 15%;" |Boolean
| style="width: 15%;" |Boolean
| style="width: 35%;" |
|}
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CTFObjectiveResource
! 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_bMannVsMachineBetweenWaves'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bMannVsMachineWaveClassActive'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bMannVsMachineWaveClassActive2'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flMannVsMachineNextWaveTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszMannVsMachineWaveClassNames'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszMannVsMachineWaveClassNames2'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineMaxWaveCount'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveClassCounts'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveClassCounts2'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveClassFlags'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveClassFlags2'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveCount'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMannVsMachineWaveEnemyCount'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMvMWorldMoney'''
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
|}
|}

Latest revision as of 23:29, 10 August 2022

Overview[edit | edit source]

Manages and networks the state of data pertaining to the Mann vs Machine gamemode.

Source location : /game/server/tf/tf_objective_resource.h

Linked entity : tf_objective_resource

Class Structure[edit | edit source]

SendProps[edit | edit source]

CTFObjectiveResource
Name Type Description
m_nMannVsMachineMaxWaveCount Integer The max wave count on the wavebar.
m_nMannVsMachineWaveCount Integer The current wave count on the wavebar.
m_nMannVsMachineWaveEnemyCount Integer Total amount of mainwave enemies. Does not update the wavebar's progress bar during a wave if changed, until an icon is added or removed.
m_nMvMWorldMoney Integer Total worth of currency packs that currently exist in the world and can be picked up.
m_flMannVsMachineNextWaveTime Float
m_bMannVsMachineBetweenWaves Boolean
m_nFlagCarrierUpgradeLevel Integer
m_flMvMBaseBombUpgradeTime Float
m_flMvMNextBombUpgradeTime Float
m_iszMvMPopfileName String Name of the popfile. Modifying this with $SetProp causes the server to change to a different map on mission end; use $SetClientProp instead.
m_iChallengeIndex Integer
m_nMvMEventPopfileType Integer
m_nMannVsMachineWaveClassCounts
000 Integer Amount of bots with the first WaveSpawn's icon, as displayed on the wavebar.
001 Integer
002 Integer
003 Integer
004 Integer
005 Integer
006 Integer
007 Integer
008 Integer
009 Integer
010 Integer
011 Integer
m_iszMannVsMachineWaveClassNames String The first wavespawn's bot's ClassIcon name.
m_iszMannVsMachineWaveClassNames Array The selected wavespawn's bot's ClassIcon name.
m_nMannVsMachineWaveClassFlags
0 Integer Flags for the icons on the wavebar. Icon order is based on the order in which they are listed in the popfile.


Removes it from the wavebar.

1 Integer Moves the icon to be part of the main wave.
2 Integer Moves the icon to be part of support.
4 Integer Moves the icon to be part of Mission support, coming after "regular" support.
8 Integer Adds a red background to the icon; only works if it is part of the main wave. Used to indicate giants and tanks.
16 Integer Adds a crit outline to the icon.
000 Integer
001 Integer
002 Integer
003 Integer
004 Integer
005 Integer
006 Integer
007 Integer
008 Integer
009 Integer
010 Integer
011 Integer
m_nMannVsMachineWaveClassCounts2
000 Integer
001 Integer
002 Integer
003 Integer
004 Integer
005 Integer
006 Integer
007 Integer
008 Integer
009 Integer
010 Integer
011 Integer
m_iszMannVsMachineWaveClassNames2 String
m_iszMannVsMachineWaveClassNames2 Array
m_nMannVsMachineWaveClassFlags2
000 Integer
001 Integer
002 Integer
003 Integer
004 Integer
005 Integer
006 Integer
007 Integer
008 Integer
009 Integer
010 Integer
011 Integer
m_bMannVsMachineWaveClassActive
000 Boolean
001 Boolean
002 Boolean
003 Boolean
004 Boolean
005 Boolean
006 Boolean
007 Boolean
008 Boolean
009 Boolean
010 Boolean
011 Boolean
m_bMannVsMachineWaveClassActive2
000 Boolean
001 Boolean
002 Boolean
003 Boolean
004 Boolean
005 Boolean
006 Boolean
007 Boolean
008 Boolean
009 Boolean
010 Boolean
011 Boolean

Entity DataMaps[edit | edit source]

CTFObjectiveResource
Name Type Description
m_bMannVsMachineBetweenWaves
m_bMannVsMachineWaveClassActive
m_bMannVsMachineWaveClassActive2
m_flMannVsMachineNextWaveTime
m_iszMannVsMachineWaveClassNames
m_iszMannVsMachineWaveClassNames2
m_nMannVsMachineMaxWaveCount
m_nMannVsMachineWaveClassCounts
m_nMannVsMachineWaveClassCounts2
m_nMannVsMachineWaveClassFlags
m_nMannVsMachineWaveClassFlags2
m_nMannVsMachineWaveCount
m_nMannVsMachineWaveEnemyCount
m_nMvMWorldMoney