|
|
Line 1: |
Line 1: |
| == Overview == | | == Overview == |
| Clients (including TFBots) are instances of this class.
| | Client players are instances of this class. |
|
| |
|
| '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/tf/tf_player.h /game/server/tf/tf_player.h]''' | | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/tf/tf_player.h /game/server/tf/tf_player.h]''' |
Revision as of 16:55, 21 March 2023
Overview
Client players are instances of this class.
Source location : /game/server/tf/tf_player.h
Linked entity : player
SendProps
CTFPlayer
Name
|
Type
|
Description
|
m_flPoseParameter
|
Integer
|
|
m_flPlaybackRate
|
Integer
|
|
m_nSequence
|
Integer
|
|
m_nBody
|
Integer
|
|
m_angRotation
|
Integer
|
|
overlay_vars
|
Integer
|
|
m_nModelIndex
|
Integer
|
|
m_vecOrigin
|
Integer
|
|
m_flCycle
|
Integer
|
|
m_flAnimTime
|
Integer
|
|
m_flexWeight
|
Integer
|
|
m_blinktoggle
|
Integer
|
|
m_viewtarget
|
Integer
|
|
m_bSaveMeParity
|
Boolean
|
|
m_bIsMiniBoss
|
Boolean
|
|
m_bIsABot
|
Boolean
|
|
m_nBotSkill
|
Integer
|
|
m_nWaterLevel
|
Integer
|
|
m_hRagdoll
|
Integer
|
|
m_PlayerClass
|
m_iClass
|
Integer
|
Current class. If a class switch is forced using this dataprop, the player retains all equipped weapons.
Class Indexes
|
- 1 - Scout
- 2 - Sniper
- 3 - Soldier
- 4 - Demoman
- 5 - Medic
- 6 - Heavy
- 7 - Pyro
- 8 - Spy
- 9 - Engineer
- 10 - Civilian
|
|
m_iszClassIcon
|
String
|
Name of class icon to show on boss health bar if m_bUseBossHealthBar is enabled
|
m_iszCustomModel
|
String
|
|
m_vecCustomModelOffset
|
Vector
|
|
m_angCustomModelRotation
|
Vector
|
|
m_bCustomModelRotates
|
Boolean
|
|
m_bCustomModelRotationSet
|
Boolean
|
|
m_bCustomModelVisibleToSelf
|
Boolean
|
|
m_bUseClassAnimations
|
Boolean
|
|
m_iClassModelParity
|
Integer
|
|
|
m_Shared
|
m_nPlayerCond
|
Integer
|
|
m_bJumping
|
Boolean
|
|
m_nNumHealers
|
Integer
|
|
m_iCritMult
|
Integer
|
|
m_iAirDash
|
Integer
|
|
m_nAirDucked
|
Integer
|
|
m_flDuckTimer
|
Float
|
|
m_nPlayerState
|
Integer
|
|
m_iDesiredPlayerClass
|
Integer
|
|
m_flMovementStunTime
|
Float
|
|
m_iMovementStunAmount
|
Integer
|
|
m_iMovementStunParity
|
Integer
|
|
m_hStunner
|
Integer
|
|
m_iStunFlags
|
Integer
|
|
m_nArenaNumChanges
|
Integer
|
|
m_bArenaFirstBloodBoost
|
Boolean
|
|
m_iWeaponKnockbackID
|
Integer
|
|
m_bLoadoutUnavailable
|
Boolean
|
|
m_iItemFindBonus
|
Integer
|
|
m_bShieldEquipped
|
Boolean
|
|
m_bParachuteEquipped
|
Boolean
|
|
m_iNextMeleeCrit
|
Integer
|
|
m_iDecapitations
|
Integer
|
Vitasaw organs count.
|
m_iRevengeCrits
|
Integer
|
|
m_iDisguiseBody
|
Integer
|
|
m_hCarriedObject
|
Integer
|
|
m_bCarryingObject
|
Boolean
|
|
m_flNextNoiseMakerTime
|
Float
|
|
m_iSpawnRoomTouchCount
|
Integer
|
|
m_iKillCountSinceLastDeploy
|
Integer
|
|
m_flFirstPrimaryAttack
|
Float
|
|
m_flEnergyDrinkMeter
|
Float
|
|
m_flHypeMeter
|
Float
|
Meter for the Soda Popper and Baby Face's Blaster. Range from 0-99
|
m_flChargeMeter
|
Float
|
|
m_flInvisChangeCompleteTime
|
Float
|
|
m_nDisguiseTeam
|
Integer
|
|
m_nDisguiseClass
|
Integer
|
|
m_nDisguiseSkinOverride
|
Boolean
|
|
m_nMaskClass
|
Integer
|
|
m_hDisguiseTarget
|
Integer
|
|
m_iDisguiseHealth
|
Integer
|
|
m_bFeignDeathReady
|
Boolean
|
|
m_hDisguiseWeapon
|
Integer
|
|
m_nTeamTeleporterUsed
|
Integer
|
|
m_flCloakMeter
|
Float
|
|
m_flSpyTranqBuffDuration
|
Float
|
|
tfsharedlocaldata
|
m_nDesiredDisguiseTeam
|
Integer
|
|
m_nDesiredDisguiseClass
|
Integer
|
|
m_bLastDisguisedAsOwnTeam
|
Boolean
|
|
m_flStealthNoAttackExpire
|
Float
|
|
m_flStealthNextChangeTime
|
Float
|
|
m_flRageMeter
|
Float
|
Meter for soldier banners, projectile shield, knockback rage. Range from 0-100.
|
m_bRageDraining
|
Boolean
|
Whether or not rage is currently being used. If true meter will become red and drain overtime based on buff duration attribute(s). Does not activate banner and projectile shield if set manually but will activate knockback rage.
|
m_flNextRageEarnTime
|
Float
|
|
m_bInUpgradeZone
|
Boolean
|
|
m_flItemChargeMeter
|
000
|
Float
|
|
001
|
Float
|
|
002
|
Float
|
|
003
|
Float
|
|
004
|
Float
|
|
005
|
Float
|
|
006
|
Float
|
|
007
|
Float
|
|
008
|
Float
|
|
009
|
Float
|
|
010
|
Float
|
|
|
m_bPlayerDominated
|
000
|
Boolean
|
|
001
|
Boolean
|
|
002
|
Boolean
|
|
003
|
Boolean
|
|
004
|
Boolean
|
|
005
|
Boolean
|
|
006
|
Boolean
|
|
007
|
Boolean
|
|
008
|
Boolean
|
|
009
|
Boolean
|
|
010
|
Boolean
|
|
011
|
Boolean
|
|
012
|
Boolean
|
|
013
|
Boolean
|
|
014
|
Boolean
|
|
015
|
Boolean
|
|
016
|
Boolean
|
|
017
|
Boolean
|
|
018
|
Boolean
|
|
019
|
Boolean
|
|
020
|
Boolean
|
|
021
|
Boolean
|
|
022
|
Boolean
|
|
023
|
Boolean
|
|
024
|
Boolean
|
|
025
|
Boolean
|
|
026
|
Boolean
|
|
027
|
Boolean
|
|
028
|
Boolean
|
|
029
|
Boolean
|
|
030
|
Boolean
|
|
031
|
Boolean
|
|
032
|
Boolean
|
|
033
|
Boolean
|
|
|
m_bPlayerDominatingMe
|
000
|
Boolean
|
|
001
|
Boolean
|
|
002
|
Boolean
|
|
003
|
Boolean
|
|
004
|
Boolean
|
|
005
|
Boolean
|
|
006
|
Boolean
|
|
007
|
Boolean
|
|
008
|
Boolean
|
|
009
|
Boolean
|
|
010
|
Boolean
|
|
011
|
Boolean
|
|
012
|
Boolean
|
|
013
|
Boolean
|
|
014
|
Boolean
|
|
015
|
Boolean
|
|
016
|
Boolean
|
|
017
|
Boolean
|
|
018
|
Boolean
|
|
019
|
Boolean
|
|
020
|
Boolean
|
|
021
|
Boolean
|
|
022
|
Boolean
|
|
023
|
Boolean
|
|
024
|
Boolean
|
|
025
|
Boolean
|
|
026
|
Boolean
|
|
027
|
Boolean
|
|
028
|
Boolean
|
|
029
|
Boolean
|
|
030
|
Boolean
|
|
031
|
Boolean
|
|
032
|
Boolean
|
|
033
|
Boolean
|
|
|
m_ScoreData
|
m_iCaptures
|
Integer
|
|
m_iDefenses
|
Integer
|
|
m_iKills
|
Integer
|
|
m_iDeaths
|
Integer
|
|
m_iSuicides
|
Integer
|
|
m_iDominations
|
Integer
|
|
m_iRevenge
|
Integer
|
|
m_iBuildingsBuilt
|
Integer
|
|
m_iBuildingsDestroyed
|
Integer
|
|
m_iHeadshots
|
Integer
|
|
m_iBackstabs
|
Integer
|
|
m_iHealPoints
|
Integer
|
|
m_iInvulns
|
Integer
|
|
m_iTeleports
|
Integer
|
|
m_iDamageDone
|
Integer
|
|
m_iCrits
|
Integer
|
|
m_iResupplyPoints
|
Integer
|
|
m_iKillAssists
|
Integer
|
|
m_iBonusPoints
|
Integer
|
|
m_iPoints
|
Integer
|
|
|
m_RoundScoreData
|
m_iCaptures
|
Integer
|
|
m_iDefenses
|
Integer
|
|
m_iKills
|
Integer
|
|
m_iDeaths
|
Integer
|
|
m_iSuicides
|
Integer
|
|
m_iDominations
|
Integer
|
|
m_iRevenge
|
Integer
|
|
m_iBuildingsBuilt
|
Integer
|
|
m_iBuildingsDestroyed
|
Integer
|
|
m_iHeadshots
|
Integer
|
|
m_iBackstabs
|
Integer
|
|
m_iHealPoints
|
Integer
|
|
m_iInvulns
|
Integer
|
|
m_iTeleports
|
Integer
|
|
m_iDamageDone
|
Integer
|
|
m_iCrits
|
Integer
|
|
m_iResupplyPoints
|
Integer
|
|
m_iKillAssists
|
Integer
|
|
m_iBonusPoints
|
Integer
|
|
m_iPoints
|
Integer
|
|
|
|
m_ConditionList
|
_condition_bits
|
Integer
|
|
|
m_iTauntIndex
|
Integer
|
|
m_iTauntConcept
|
Integer
|
|
m_nPlayerCondEx
|
Integer
|
|
m_iStunIndex
|
Integer
|
|
m_nHalloweenBombHeadStage
|
Integer
|
|
m_nPlayerCondEx2
|
Integer
|
|
m_nPlayerCondEx3
|
Integer
|
|
m_nStreaks
|
000
|
Integer
|
|
001
|
Integer
|
|
002
|
Integer
|
|
003
|
Integer
|
|
|
m_unTauntSourceItemID_Low
|
Integer
|
|
m_unTauntSourceItemID_High
|
Integer
|
|
m_flRuneCharge
|
Float
|
|
m_bHasPasstimeBall
|
Boolean
|
|
m_bIsTargetedForPasstimePass
|
Boolean
|
|
m_hPasstimePassTarget
|
Integer
|
|
m_askForBallTime
|
Float
|
|
m_bKingRuneBuffActive
|
Boolean
|
|
m_ConditionData
|
lengthproxy
|
lengthprop130
|
Integer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_nPlayerCondEx4
|
Integer
|
|
m_flHolsterAnimTime
|
Float
|
|
m_hSwitchTo
|
Integer
|
|
|
m_hItem
|
Integer
|
|
tflocaldata
|
m_vecOrigin
|
3
|
|
m_vecOrigin[2]
|
Float
|
|
player_object_array_element
|
Integer
|
|
"player_object_array"
|
Array
|
|
m_angEyeAngles[0]
|
Float
|
|
m_angEyeAngles[1]
|
Float
|
|
m_bIsCoaching
|
Boolean
|
|
m_hCoach
|
Integer
|
|
m_hStudent
|
Integer
|
|
m_nCurrency
|
Integer
|
MvM cash.
|
m_nExperienceLevel
|
Integer
|
|
m_nExperienceLevelProgress
|
Integer
|
|
m_bMatchSafeToLeave
|
Boolean
|
|
|
tfnonlocaldata
|
m_vecOrigin
|
3
|
|
m_vecOrigin[2]
|
Float
|
|
m_angEyeAngles[0]
|
Float
|
|
m_angEyeAngles[1]
|
Float
|
|
|
m_bAllowMoveDuringTaunt
|
Boolean
|
|
m_bIsReadyToHighFive
|
Boolean
|
|
m_hHighFivePartner
|
Integer
|
|
m_nForceTauntCam
|
Integer
|
|
m_flTauntYaw
|
Float
|
|
m_nActiveTauntSlot
|
Integer
|
|
m_iTauntItemDefIndex
|
Integer
|
|
m_flCurrentTauntMoveSpeed
|
Float
|
|
m_flVehicleReverseTime
|
Float
|
|
m_flMvMLastDamageTime
|
Float
|
|
m_bInPowerPlay
|
Boolean
|
|
m_iSpawnCounter
|
Integer
|
|
m_bArenaSpectator
|
Boolean
|
|
m_flHeadScale
|
Float
|
|
m_flTorsoScale
|
Float
|
|
m_flHandScale
|
Float
|
|
m_bUseBossHealthBar
|
Boolean
|
Attribute UseBossHealthBar, can be enabled/disabled on the fly and work for player
|
m_bUsingVRHeadset
|
Boolean
|
|
m_bForcedSkin
|
Boolean
|
|
m_nForcedSkin
|
Integer
|
|
m_AttributeManager
|
m_hOuter
|
Integer
|
|
m_ProviderType
|
Integer
|
|
m_iReapplyProvisionParity
|
Integer
|
|
|
TFSendHealersDataTable
|
m_nActiveWpnClip
|
Integer
|
|
|
m_flKartNextAvailableBoost
|
Float
|
|
m_iKartHealth
|
Integer
|
|
m_iKartState
|
Integer
|
|
m_hGrapplingHookTarget
|
Integer
|
|
m_hSecondaryLastWeapon
|
Integer
|
|
m_bUsingActionSlot
|
Boolean
|
Whether or not +action is active.
|
m_flInspectTime
|
Float
|
|
m_flHelpmeButtonPressTime
|
Float
|
|
m_iCampaignMedals
|
Integer
|
|
m_iPlayerSkinOverride
|
Integer
|
|
m_bViewingCYOAPDA
|
Boolean
|
|
m_bRegenerating
|
Boolean
|
|
Entity DataMaps
CTFPlayer
Name
|
Type
|
Description
|
InputBleedPlayer
|
|
|
InputClearCustomModelRotation
|
|
|
InputExtinguishPlayer
|
|
|
InputIgnitePlayer
|
|
|
InputRollRareSpell
|
|
|
InputRoundSpawn
|
|
|
InputSetCustomModel
|
|
|
InputSetCustomModelOffset
|
|
|
InputSetCustomModelRotates
|
|
|
InputSetCustomModelRotation
|
|
|
InputSetCustomModelVisibleToSelf
|
|
|
InputSetCustomModelWithClassAnimations
|
|
|
InputSetForcedTauntCam
|
|
|
InputSetScriptOverlayMaterial
|
|
|
InputSpeakResponseConcept
|
|
|
InputTriggerLootIslandAchievement
|
|
|
InputTriggerLootIslandAchievement2
|
|
|
entIndex
|
|
|