|
|
Line 2: |
Line 2: |
| The base class for players | | The base class for players |
|
| |
|
| '''Source location : /game/server/player.h''' | | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/player.h /game/server/player.h]''' |
|
| |
|
| ==[[Classes|Class Structure]]== | | ==[[Classes|Class Structure]]== |
Revision as of 04:30, 19 February 2022
Overview
The base class for players
Source location : /game/server/player.h
SendProps
CBasePlayer
Name
|
Type
|
Description
|
m_AttributeList
|
m_Attributes
|
lengthproxy
|
lengthprop20
|
Integer
|
|
|
000
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
001
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
002
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
003
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
004
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
005
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
006
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
007
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
008
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
009
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
010
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
011
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
012
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
013
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
014
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
015
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
016
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
017
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
018
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
019
|
m_iAttributeDefinitionIndex
|
Integer
|
|
m_iRawValue32
|
Integer
|
|
m_nRefundableCurrency
|
Integer
|
|
|
|
|
|
m_hVehicle
|
Integer
|
|
m_hUseEntity
|
Integer
|
|
m_iHealth
|
Integer
|
|
m_lifeState
|
Integer
|
|
m_iBonusProgress
|
Integer
|
|
m_iBonusChallenge
|
Integer
|
|
m_flMaxspeed
|
Float
|
|
m_fFlags
|
Integer
|
|
m_iObserverMode
|
Integer
|
|
m_hObserverTarget
|
Integer
|
|
m_iFOV
|
Integer
|
|
m_iFOVStart
|
Integer
|
|
m_flFOVTime
|
Float
|
|
m_iDefaultFOV
|
Integer
|
|
m_hZoomOwner
|
Integer
|
|
m_hViewModel
|
Integer
|
|
m_hViewModel
|
Array
|
|
m_szLastPlaceName
|
String
|
|
m_hMyWearables
|
lengthproxy
|
lengthprop8
|
Integer
|
|
|
000
|
Integer
|
|
001
|
Integer
|
|
002
|
Integer
|
|
003
|
Integer
|
|
004
|
Integer
|
|
005
|
Integer
|
|
006
|
Integer
|
|
007
|
Integer
|
|
|
localdata
|
m_Local
|
m_chAreaBits
|
000
|
Integer
|
|
001
|
Integer
|
|
002
|
Integer
|
|
003
|
Integer
|
|
004
|
Integer
|
|
005
|
Integer
|
|
006
|
Integer
|
|
007
|
Integer
|
|
008
|
Integer
|
|
009
|
Integer
|
|
010
|
Integer
|
|
011
|
Integer
|
|
012
|
Integer
|
|
013
|
Integer
|
|
014
|
Integer
|
|
015
|
Integer
|
|
016
|
Integer
|
|
017
|
Integer
|
|
018
|
Integer
|
|
019
|
Integer
|
|
020
|
Integer
|
|
021
|
Integer
|
|
022
|
Integer
|
|
023
|
Integer
|
|
024
|
Integer
|
|
025
|
Integer
|
|
026
|
Integer
|
|
027
|
Integer
|
|
028
|
Integer
|
|
029
|
Integer
|
|
030
|
Integer
|
|
031
|
Integer
|
|
|
m_chAreaPortalBits
|
000
|
Integer
|
|
001
|
Integer
|
|
002
|
Integer
|
|
003
|
Integer
|
|
004
|
Integer
|
|
005
|
Integer
|
|
006
|
Integer
|
|
007
|
Integer
|
|
008
|
Integer
|
|
009
|
Integer
|
|
010
|
Integer
|
|
011
|
Integer
|
|
012
|
Integer
|
|
013
|
Integer
|
|
014
|
Integer
|
|
015
|
Integer
|
|
016
|
Integer
|
|
017
|
Integer
|
|
018
|
Integer
|
|
019
|
Integer
|
|
020
|
Integer
|
|
021
|
Integer
|
|
022
|
Integer
|
|
023
|
Integer
|
|
|
m_iHideHUD
|
Integer
|
|
m_flFOVRate
|
Float
|
|
m_bDucked
|
Boolean
|
|
m_bDucking
|
Boolean
|
|
m_bInDuckJump
|
Boolean
|
|
m_flDucktime
|
Float
|
|
m_flDuckJumpTime
|
Float
|
|
m_flJumpTime
|
Float
|
|
m_flFallVelocity
|
Float
|
|
m_vecPunchAngle
|
Vector
|
|
m_vecPunchAngleVel
|
Vector
|
|
m_bDrawViewmodel
|
Boolean
|
|
m_bWearingSuit
|
Boolean
|
|
m_bPoisoned
|
Boolean
|
|
m_flStepSize
|
Float
|
|
m_bAllowAutoMovement
|
Boolean
|
|
m_skybox3d.scale
|
Integer
|
|
m_skybox3d.origin
|
Vector
|
|
m_skybox3d.area
|
Integer
|
|
m_skybox3d.fog.enable
|
Boolean
|
|
m_skybox3d.fog.blend
|
Boolean
|
|
m_skybox3d.fog.dirPrimary
|
Vector
|
|
m_skybox3d.fog.colorPrimary
|
Integer
|
|
m_skybox3d.fog.colorSecondary
|
Integer
|
|
m_skybox3d.fog.start
|
Float
|
|
m_skybox3d.fog.end
|
Float
|
|
m_skybox3d.fog.maxdensity
|
Float
|
|
m_PlayerFog.m_hCtrl
|
Integer
|
|
m_audio.localSound[0]
|
Vector
|
|
m_audio.localSound[1]
|
Vector
|
|
m_audio.localSound[2]
|
Vector
|
|
m_audio.localSound[3]
|
Vector
|
|
m_audio.localSound[4]
|
Vector
|
|
m_audio.localSound[5]
|
Vector
|
|
m_audio.localSound[6]
|
Vector
|
|
m_audio.localSound[7]
|
Vector
|
|
m_audio.soundscapeIndex
|
Integer
|
|
m_audio.localBits
|
Integer
|
|
m_audio.ent
|
Integer
|
|
|
m_vecViewOffset[0]
|
Float
|
|
m_vecViewOffset[1]
|
Float
|
|
m_vecViewOffset[2]
|
Float
|
|
m_flFriction
|
Float
|
|
m_iAmmo
|
000
|
Integer
|
|
001
|
Integer
|
|
002
|
Integer
|
|
003
|
Integer
|
|
004
|
Integer
|
|
005
|
Integer
|
|
006
|
Integer
|
|
007
|
Integer
|
|
008
|
Integer
|
|
009
|
Integer
|
|
010
|
Integer
|
|
011
|
Integer
|
|
012
|
Integer
|
|
013
|
Integer
|
|
014
|
Integer
|
|
015
|
Integer
|
|
016
|
Integer
|
|
017
|
Integer
|
|
018
|
Integer
|
|
019
|
Integer
|
|
020
|
Integer
|
|
021
|
Integer
|
|
022
|
Integer
|
|
023
|
Integer
|
|
024
|
Integer
|
|
025
|
Integer
|
|
026
|
Integer
|
|
027
|
Integer
|
|
028
|
Integer
|
|
029
|
Integer
|
|
030
|
Integer
|
|
031
|
Integer
|
|
|
m_fOnTarget
|
Integer
|
|
m_nTickBase
|
Integer
|
|
m_nNextThinkTick
|
Integer
|
|
m_hLastWeapon
|
Integer
|
|
m_hGroundEntity
|
Integer
|
|
m_vecVelocity[0]
|
Float
|
|
m_vecVelocity[1]
|
Float
|
|
m_vecVelocity[2]
|
Float
|
|
m_vecBaseVelocity
|
Vector
|
|
m_hConstraintEntity
|
Integer
|
|
m_vecConstraintCenter
|
Vector
|
|
m_flConstraintRadius
|
Float
|
|
m_flConstraintWidth
|
Float
|
|
m_flConstraintSpeedFactor
|
Float
|
|
m_flDeathTime
|
Float
|
|
m_nWaterLevel
|
Integer
|
|
m_flLaggedMovementValue
|
Float
|
|
|