CBasePlayer: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
Base player class.
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]'''


==[[SendProps|Class Structure]]==
'''VScript : [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions#CBasePlayer Script_Functions#CBasePlayer]'''
 
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CBaseAnimating]]'''
Line 13: Line 15:


== SendProps ==
== SendProps ==
{| class="wikitable sortable" style="margin: 0 auto; width: 100%; padding: 0;"
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+CBasePlayer
|+CBasePlayer
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 34: Line 36:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 51: Line 58:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 68: Line 80:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 85: Line 102:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 102: Line 124:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 119: Line 146:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 136: Line 168:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 153: Line 190:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 170: Line 212:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 187: Line 234:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 204: Line 256:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 221: Line 278:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 238: Line 300:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 255: Line 322:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 272: Line 344:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 289: Line 366:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 306: Line 388:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 323: Line 410:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 340: Line 432:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 357: Line 454:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 374: Line 476:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|}
|}
Line 385: Line 492:
| style="width: 15%;" |Boolean
| style="width: 15%;" |Boolean
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 457: Line 569:
| style="width: 50%;" |'''m_szLastPlaceName'''
| style="width: 50%;" |'''m_szLastPlaceName'''
| style="width: 15%;" |String
| style="width: 15%;" |String
| style="width: 35%;" |
| style="width: 35%;" |Name of the last nav place the player has occupied.  Changing this to an invalid nav place will crash.
|-
|-
| colspan="3" style="padding: 0; margin: 0;" |
| colspan="3" style="padding: 0; margin: 0;" |
Line 470: Line 582:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 503: Line 620:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 644: Line 766:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 745: Line 872:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 800: Line 932:
|-
|-
| style="width: 50%;" |'''m_bPoisoned'''
| style="width: 50%;" |'''m_bPoisoned'''
| style="width: 15%;" |Boolean
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bForceLocalPlayerDraw'''
| style="width: 15%;" |Boolean
| style="width: 15%;" |Boolean
| style="width: 35%;" |
| style="width: 35%;" |
Line 899: Line 1,035:
| style="width: 35%;" |
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''m_audio.ent'''
| style="width: 50%;" |'''m_audio.entIndex'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_szScriptOverlayMaterial'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 926: Line 1,071:
| style="width: 50%;" |'''000'''
| style="width: 50%;" |'''000'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_DUMMY
|-
|-
| style="width: 50%;" |'''001'''
| style="width: 50%;" |'''001'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_PRIMARY
|-
|-
| style="width: 50%;" |'''002'''
| style="width: 50%;" |'''002'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_SECONDARY
|-
|-
| style="width: 50%;" |'''003'''
| style="width: 50%;" |'''003'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_METAL
|-
|-
| style="width: 50%;" |'''004'''
| style="width: 50%;" |'''004'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_GRENADES1 (Sandman / Wrap Assassin balls)
|-
|-
| style="width: 50%;" |'''005'''
| style="width: 50%;" |'''005'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_GRENADES2 (Cleaver
|-
|-
| style="width: 50%;" |'''006'''
| style="width: 50%;" |'''006'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_GRENADES3
|-
|-
| style="width: 50%;" |'''007'''
| style="width: 50%;" |'''007'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |TF_AMMO_COUNT
|-
|-
| style="width: 50%;" |'''008'''
| style="width: 50%;" |'''008'''
Line 1,051: Line 1,196:
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 1,120: Line 1,270:
| style="width: 15%;" |Float
| style="width: 15%;" |Float
| style="width: 35%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CBasePlayer
! style="width: 50%; background-color: #303030; color: white" |Name
! style="width: 15%; background-color: #303030; color: white" |Type
! style="width: 35%; background-color: #303030; color: white" |Description
|-
| style="width: 50%;" |'''CBasePlayerPlayerDeathThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputHandleMapEvent'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputSetFogController'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputSetHUDVisibility'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputSetHealth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_AirFinished'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_ArmorValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_AttributeList
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| style="width: 50%;" |'''m_DmgOrigin'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_DmgSave'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_DmgTake'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_Local
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_PlayerFog
|-
| style="width: 50%;" |'''m_NewColor'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OldColor'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flNewEnd'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flNewStart'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flOldEnd'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flOldStart'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flTransitionTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hCtrl'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_audio
|-
| style="width: 50%;" |'''ent'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''localBits'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''localSound'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''soundscapeIndex'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| style="width: 50%;" |'''m_bAllowAutoMovement'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bDrawViewmodel'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bDucked'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bDucking'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bInDuckJump'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bPoisoned'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bForceLocalPlayerDraw'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bWearingSuit'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_chAreaBits'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_chAreaPortalBits'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDuckJumpTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDucktime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFOVRate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFallVelocity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flJumpTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flOldForwardMove'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flStepSize'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_fog
|-
| style="width: 50%;" |'''blend'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorPrimary'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorPrimaryLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorSecondary'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorSecondaryLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''dirPrimary'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''duration'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''enable'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''end'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''endLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''farz'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''lerptime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''maxdensity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''start'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''startLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| style="width: 50%;" |'''m_iHideHUD'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nOldButtons'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nStepside'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_skybox3d
|-
| style="width: 50%;" |'''area'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |fog
|-
| style="width: 50%;" |'''blend'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorPrimary'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorPrimaryLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorSecondary'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''colorSecondaryLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''dirPrimary'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''duration'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''enable'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''end'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''endLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''farz'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''lerptime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''maxdensity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''start'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''startLerpTo'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| style="width: 50%;" |'''origin'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''scale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| style="width: 50%;" |'''m_vecOverViewpoint'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecPunchAngle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecPunchAngleVel'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|-
| style="width: 50%;" |'''m_PainFinished'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_StuckLast'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_afButtonDisabled'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_afButtonForced'''
| style="width: 15%;" |
| style="width: 35%;" |Set this netprop to [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions/Constants#FButtons the corresponding bits] to force player inputs.
|-
| style="width: 50%;" |'''m_afButtonLast'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_afButtonPressed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_afButtonReleased'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_afPhysicsFlags'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_autoKickDisabled'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bAllowInstantSpawn'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bDuckToggled'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bForcedObserverMode'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bLagCompensation'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bPauseBonusProgress'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bPlayerUnderwater'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bPredictWeapons'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bSinglePlayerGameEnding'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bitsDamageType'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bitsHUDDamage'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fInitHUD'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fLastPlayerTalkAttemptTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fLastPlayerTalkTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fLerpTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flConstraintRadius'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flConstraintSpeedFactor'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flConstraintWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDeathAnimTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDeathTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDuckJumpTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDuckTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFOVTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFlashTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flForwardMove'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flLaggedMovementValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flMaxspeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flNextDecalTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flOldPlayerViewOffsetZ'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flOldPlayerZ'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flPlayerTalkAvailableMessagesTier1'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flPlayerTalkAvailableMessagesTier2'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSideMove'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flStepSoundTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSuitUpdate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSwimSoundTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSwimTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flVehicleViewFOV'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flWaterJumpTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hConstraintEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hLastWeapon'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hObserverTarget'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hTriggerSoundscapeList'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hUseEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hVehicle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hViewEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hViewModel'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hZoomOwner'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iBonusChallenge'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iBonusProgress'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iDeaths'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iDefaultFOV'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iFOV'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iFOVStart'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iFrags'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iObserverLastMode'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iObserverMode'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iPlayerLocked'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iRespawnFrames'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iSuicideCustomKillFlags'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iSuitPlayNext'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iTargetVolume'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iTrain'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_idrowndmg'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_idrownrestored'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_lastDamageAmount'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nButtons'''
| style="width: 15%;" |
| style="width: 35%;" |Which buttons player is currently pressing.  Refer to [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions/Constants this page] for more information
|-
| style="width: 50%;" |'''m_nDrownDmgRate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nImpulse'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nNumCrateHudHints'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nNumCrouches'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nPoisonDmg'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nPoisonRestored'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nUpdateRate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_oldOrigin'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_rgItems'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_rgSuitPlayList'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_rgbTimeBasedDamage'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_rgflSuitNoRepeatTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_rgiSuitNoRepeat'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_szAnimExtension'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_szLastPlaceName'''
| style="width: 15%;" |
| style="width: 35%;" |Name of the last nav place the player has occupied.  Changing this to an invalid nav place will crash.
|-
| style="width: 50%;" |'''m_szNetname'''
| style="width: 15%;" |String
| 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: 15%;" |String
| style="width: 35%;" |The SteamID3 of the player. (e.g. [U:1:83176584])
|-
| style="width: 50%;" |'''m_tbdPrev'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vNewVPhysicsPosition'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vNewVPhysicsVelocity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecAdditionalPVSOrigin'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecCameraPVSOrigin'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecConstraintCenter'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecLadderNormal'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecPreviouslyPredictedOrigin'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecSmoothedVelocity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecWaterJumpVel'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |pl
|-
| style="width: 50%;" |'''deadflag'''
| style="width: 15%;" |Boolean
| 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: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|}

Latest revision as of 02:19, 11 December 2023

Overview[edit | edit source]

The base class for players

Source location : /game/server/player.h

VScript : Script_Functions#CBasePlayer

Class Structure[edit | edit source]

SendProps[edit | edit source]

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
pl
deadflag Boolean
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 Name of the last nav place the player has occupied. Changing this to an invalid nav place will crash.
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_bForceLocalPlayerDraw 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.entIndex Integer
m_szScriptOverlayMaterial Integer
m_vecViewOffset[0] Float
m_vecViewOffset[1] Float
m_vecViewOffset[2] Float
m_flFriction Float
m_iAmmo
000 Integer TF_AMMO_DUMMY
001 Integer TF_AMMO_PRIMARY
002 Integer TF_AMMO_SECONDARY
003 Integer TF_AMMO_METAL
004 Integer TF_AMMO_GRENADES1 (Sandman / Wrap Assassin balls)
005 Integer TF_AMMO_GRENADES2 (Cleaver
006 Integer TF_AMMO_GRENADES3
007 Integer TF_AMMO_COUNT
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[edit | edit source]

CBasePlayer
Name Type Description
CBasePlayerPlayerDeathThink
InputHandleMapEvent
InputSetFogController
InputSetHUDVisibility
InputSetHealth
m_AirFinished
m_ArmorValue
m_AttributeList
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_bForceLocalPlayerDraw
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 Set this netprop to the corresponding bits to force player inputs.
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 Which buttons player is currently pressing. Refer to this page for more information
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 Name of the last nav place the player has occupied. Changing this to an invalid nav place will crash.
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