|
|
Line 1,835: |
Line 1,835: |
| |- | | |- |
| | style="width: 50%;" |'''m_szNetname''' | | | style="width: 50%;" |'''m_szNetname''' |
| | style="width: 15%;" | | | | style="width: 15%;" |String |
| | style="width: 35%;" | | | | style="width: 35%;" |The display name of the player. (Typically this is their Steam name, but it can be changed for example through SourceMod's sm_rename.) |
| |- | | |- |
| | style="width: 50%;" |'''m_szNetworkIDString''' | | | style="width: 50%;" |'''m_szNetworkIDString''' |
| | style="width: 15%;" | | | | style="width: 15%;" |String |
| | style="width: 35%;" | | | | style="width: 35%;" |The SteamID3 of the player. (e.g. [U:1:83176584]) |
| |- | | |- |
| | style="width: 50%;" |'''m_tbdPrev''' | | | style="width: 50%;" |'''m_tbdPrev''' |
Line 1,887: |
Line 1,887: |
| |- | | |- |
| | style="width: 50%;" |'''deadflag''' | | | style="width: 50%;" |'''deadflag''' |
| | style="width: 15%;" | | | | style="width: 15%;" |Boolean |
| | style="width: 35%;" | | | | style="width: 35%;" |The death state of this player. The player is dead if this is 1, otherwise 0. |
| |- | | |- |
| | style="width: 50%;" |'''v_angle''' | | | style="width: 50%;" |'''v_angle''' |
Revision as of 22:21, 14 March 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
|
|
|
Entity DataMaps
CBasePlayer
Name
|
Type
|
Description
|
CBasePlayerPlayerDeathThink
|
|
|
InputHandleMapEvent
|
|
|
InputSetFogController
|
|
|
InputSetHUDVisibility
|
|
|
InputSetHealth
|
|
|
m_AirFinished
|
|
|
m_ArmorValue
|
|
|
|
m_DmgOrigin
|
|
|
m_DmgSave
|
|
|
m_DmgTake
|
|
|
m_Local
|
m_PlayerFog
|
m_NewColor
|
|
|
m_OldColor
|
|
|
m_flNewEnd
|
|
|
m_flNewStart
|
|
|
m_flOldEnd
|
|
|
m_flOldStart
|
|
|
m_flTransitionTime
|
|
|
m_hCtrl
|
|
|
|
m_audio
|
ent
|
|
|
localBits
|
|
|
localSound
|
|
|
soundscapeIndex
|
|
|
|
m_bAllowAutoMovement
|
|
|
m_bDrawViewmodel
|
|
|
m_bDucked
|
|
|
m_bDucking
|
|
|
m_bInDuckJump
|
|
|
m_bPoisoned
|
|
|
m_bWearingSuit
|
|
|
m_chAreaBits
|
|
|
m_chAreaPortalBits
|
|
|
m_flDuckJumpTime
|
|
|
m_flDucktime
|
|
|
m_flFOVRate
|
|
|
m_flFallVelocity
|
|
|
m_flJumpTime
|
|
|
m_flOldForwardMove
|
|
|
m_flStepSize
|
|
|
m_fog
|
blend
|
|
|
colorPrimary
|
|
|
colorPrimaryLerpTo
|
|
|
colorSecondary
|
|
|
colorSecondaryLerpTo
|
|
|
dirPrimary
|
|
|
duration
|
|
|
enable
|
|
|
end
|
|
|
endLerpTo
|
|
|
farz
|
|
|
lerptime
|
|
|
maxdensity
|
|
|
start
|
|
|
startLerpTo
|
|
|
|
m_iHideHUD
|
|
|
m_nOldButtons
|
|
|
m_nStepside
|
|
|
m_skybox3d
|
area
|
|
|
fog
|
blend
|
|
|
colorPrimary
|
|
|
colorPrimaryLerpTo
|
|
|
colorSecondary
|
|
|
colorSecondaryLerpTo
|
|
|
dirPrimary
|
|
|
duration
|
|
|
enable
|
|
|
end
|
|
|
endLerpTo
|
|
|
farz
|
|
|
lerptime
|
|
|
maxdensity
|
|
|
start
|
|
|
startLerpTo
|
|
|
|
origin
|
|
|
scale
|
|
|
|
m_vecOverViewpoint
|
|
|
m_vecPunchAngle
|
|
|
m_vecPunchAngleVel
|
|
|
|
m_PainFinished
|
|
|
m_StuckLast
|
|
|
m_afButtonDisabled
|
|
|
m_afButtonForced
|
|
|
m_afButtonLast
|
|
|
m_afButtonPressed
|
|
|
m_afButtonReleased
|
|
|
m_afPhysicsFlags
|
|
|
m_autoKickDisabled
|
|
|
m_bAllowInstantSpawn
|
|
|
m_bDuckToggled
|
|
|
m_bForcedObserverMode
|
|
|
m_bLagCompensation
|
|
|
m_bPauseBonusProgress
|
|
|
m_bPlayerUnderwater
|
|
|
m_bPredictWeapons
|
|
|
m_bSinglePlayerGameEnding
|
|
|
m_bitsDamageType
|
|
|
m_bitsHUDDamage
|
|
|
m_fInitHUD
|
|
|
m_fLastPlayerTalkAttemptTime
|
|
|
m_fLastPlayerTalkTime
|
|
|
m_fLerpTime
|
|
|
m_flConstraintRadius
|
|
|
m_flConstraintSpeedFactor
|
|
|
m_flConstraintWidth
|
|
|
m_flDeathAnimTime
|
|
|
m_flDeathTime
|
|
|
m_flDuckJumpTime
|
|
|
m_flDuckTime
|
|
|
m_flFOVTime
|
|
|
m_flFlashTime
|
|
|
m_flForwardMove
|
|
|
m_flLaggedMovementValue
|
|
|
m_flMaxspeed
|
|
|
m_flNextDecalTime
|
|
|
m_flOldPlayerViewOffsetZ
|
|
|
m_flOldPlayerZ
|
|
|
m_flPlayerTalkAvailableMessagesTier1
|
|
|
m_flPlayerTalkAvailableMessagesTier2
|
|
|
m_flSideMove
|
|
|
m_flStepSoundTime
|
|
|
m_flSuitUpdate
|
|
|
m_flSwimSoundTime
|
|
|
m_flSwimTime
|
|
|
m_flVehicleViewFOV
|
|
|
m_flWaterJumpTime
|
|
|
m_hConstraintEntity
|
|
|
m_hLastWeapon
|
|
|
m_hObserverTarget
|
|
|
m_hTriggerSoundscapeList
|
|
|
m_hUseEntity
|
|
|
m_hVehicle
|
|
|
m_hViewEntity
|
|
|
m_hViewModel
|
|
|
m_hZoomOwner
|
|
|
m_iBonusChallenge
|
|
|
m_iBonusProgress
|
|
|
m_iDeaths
|
|
|
m_iDefaultFOV
|
|
|
m_iFOV
|
|
|
m_iFOVStart
|
|
|
m_iFrags
|
|
|
m_iObserverLastMode
|
|
|
m_iObserverMode
|
|
|
m_iPlayerLocked
|
|
|
m_iRespawnFrames
|
|
|
m_iSuicideCustomKillFlags
|
|
|
m_iSuitPlayNext
|
|
|
m_iTargetVolume
|
|
|
m_iTrain
|
|
|
m_idrowndmg
|
|
|
m_idrownrestored
|
|
|
m_lastDamageAmount
|
|
|
m_nButtons
|
|
|
m_nDrownDmgRate
|
|
|
m_nImpulse
|
|
|
m_nNumCrateHudHints
|
|
|
m_nNumCrouches
|
|
|
m_nPoisonDmg
|
|
|
m_nPoisonRestored
|
|
|
m_nUpdateRate
|
|
|
m_oldOrigin
|
|
|
m_rgItems
|
|
|
m_rgSuitPlayList
|
|
|
m_rgbTimeBasedDamage
|
|
|
m_rgflSuitNoRepeatTime
|
|
|
m_rgiSuitNoRepeat
|
|
|
m_szAnimExtension
|
|
|
m_szLastPlaceName
|
|
|
m_szNetname
|
String
|
The display name of the player. (Typically this is their Steam name, but it can be changed for example through SourceMod's sm_rename.)
|
m_szNetworkIDString
|
String
|
The SteamID3 of the player. (e.g. [U:1:83176584])
|
m_tbdPrev
|
|
|
m_vNewVPhysicsPosition
|
|
|
m_vNewVPhysicsVelocity
|
|
|
m_vecAdditionalPVSOrigin
|
|
|
m_vecCameraPVSOrigin
|
|
|
m_vecConstraintCenter
|
|
|
m_vecLadderNormal
|
|
|
m_vecPreviouslyPredictedOrigin
|
|
|
m_vecSmoothedVelocity
|
|
|
m_vecWaterJumpVel
|
|
|
pl
|
deadflag
|
Boolean
|
The death state of this player. The player is dead if this is 1, otherwise 0.
|
v_angle
|
|
|
|