CCaptureFlag: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
A flag (by default the intelligence briefcase) which can be carried by players in various gamemodes such as Capture the Flag or Mann vs. Machine (with a bomb model).


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


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


==[[Classes|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CBaseAnimating]]'''
***'''[[CBaseAnimatingOverlay]]'''
***'''[[CBaseProp]]'''
****'''[[CBaseFlex]]'''
****'''[[CBreakableProp]]'''
*****'''[[CBaseCombatCharacter]]'''
*****'''[[CDynamicProp]]'''
******'''[[CBasePlayer]]'''
******'''[[CTFItem]]'''
*******'''CTFPlayer'''
*******'''CCaptureFlag'''


== SendProps ==
== SendProps ==
Line 36: Line 36:
| style="width: 50%;" |'''m_nFlagStatus'''
| style="width: 50%;" |'''m_nFlagStatus'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |<code>0</code> when the flag is reset to its default state, <code>1</code> when the flag is picked up by a player, and <code>2</code> when the flag is dropped on the ground
|-
|-
| style="width: 50%;" |'''m_flResetTime'''
| style="width: 50%;" |'''m_flResetTime'''

Latest revision as of 16:56, 24 April 2025

Overview

A flag (by default the intelligence briefcase) which can be carried by players in various gamemodes such as Capture the Flag or Mann vs. Machine (with a bomb model).

Source location : /game/shared/tf/entity_capture_flag.h

Linked Entity : item_teamflag

Class Structure

SendProps

CCaptureFlag
Name Type Description
m_bDisabled Boolean
m_bVisibleWhenDisabled Boolean
m_nType Integer
m_nFlagStatus Integer 0 when the flag is reset to its default state, 1 when the flag is picked up by a player, and 2 when the flag is dropped on the ground
m_flResetTime Float
m_flNeutralTime Float
m_flMaxResetTime Float
m_hPrevOwner Integer
m_szModel String
m_szHudIcon String
m_szPaperEffect String
m_szTrailEffect String
m_nUseTrailEffect Integer
m_nPointValue Integer
m_flAutoCapTime Float
m_bGlowEnabled Boolean
m_flTimeToSetPoisonous Float

Entity DataMaps

CCaptureFlag
Name Type Description
InputDisable
InputEnable
InputForceDrop
InputForceGlowDisabled
InputForceReset
InputForceResetAndDisableSilent
InputForceResetSilent
InputRoundActivate
InputSetReturnTime
InputShowTimer
m_OnCapTeam1
m_OnCapTeam2
m_OnTouchSameTeam
m_bReturnBetweenWaves
m_bUseShotClockMode
m_bVisibleWhenDisabled
m_iszHudIcon
m_iszModel
m_iszPaperEffect
m_iszTags
m_iszTrailEffect
m_nNeutralType
m_nPointValue
m_nReturnTime
m_nScoringType
m_nType
m_nUseTrailEffect
m_outputOnCapture
m_outputOnCapture1
m_outputOnDrop
m_outputOnDrop1
m_outputOnPickUp
m_outputOnPickUp1
m_outputOnPickUpTeam1
m_outputOnPickUpTeam2
m_outputOnReturn