|
|
Line 80: |
Line 80: |
| | style="width: 50%;" |'''m_bSaveMeParity''' | | | style="width: 50%;" |'''m_bSaveMeParity''' |
| | style="width: 15%;" |Boolean | | | style="width: 15%;" |Boolean |
| | style="width: 35%;" |Calling for medic toggles this | | | style="width: 35%;" |Calling for medic toggles this on/off |
| |- | | |- |
| | style="width: 50%;" |'''m_bIsMiniBoss''' | | | style="width: 50%;" |'''m_bIsMiniBoss''' |
Revision as of 15:38, 17 September 2023
Overview
Client players are instances of this class.
Source location : /game/server/tf/tf_player.h
VScript : Script_Functions#CTFPlayer
Lua : scripts/library.lua#L447
Linked entity : player
SendProps
CTFPlayer
Name
|
Type
|
Description
|
m_flPoseParameter
|
Integer
|
|
m_flPlaybackRate
|
Integer
|
|
m_nSequence
|
Integer
|
The animation sequence the player's model is playing (use viewmodel for weapon animation sequences)
|
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
|
Calling for medic toggles this on/off
|
m_bIsMiniBoss
|
Boolean
|
Is this player a giant in MvM? (Has Attributes MiniBoss kv)
|
m_bIsABot
|
Boolean
|
Is this player a bot?
|
m_nBotSkill
|
Integer
|
This bot's skill level
Values
|
- 0 - Easy
- 1 - Normal
- 2 - Hard
- 3 - Expert
|
|
m_nWaterLevel
|
Integer
|
How far this entity is submerged in water. For players, the values are like so:
Values
|
- 0 - Not touching water.
- 1 - Touching water, but our movement is unaffected. (Water at our feet)
- 2 - Swimming, but our head isn't below the surface. (We can still breath)
- 3 - Completely submerged in water.
|
|
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
|
The custom model being used overriding the one this player spawned with (Don't set this directly, use the inputs)
|
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
|
Is the player midair after jumping?
|
m_nNumHealers
|
Integer
|
The number of medics healing this player
|
m_iCritMult
|
Integer
|
|
m_iAirDash
|
Integer
|
How many airdashes has this player done midair (resets when we hit the ground)
|
m_nAirDucked
|
Integer
|
|
m_flDuckTimer
|
Float
|
|
m_nPlayerState
|
Integer
|
Seems to have similar values to m_lifeState?
|
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
|
Should we use a different skin? Must use m_nForcedSkin if true
|
m_nForcedSkin
|
Integer
|
New skin to use
|
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
|
|
|