Player info t: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Fixed `customFiles` definition)
 
Line 18: Line 18:
: True is player is a [[HLTV]] proxy
: True is player is a [[HLTV]] proxy
; [[CRC32_t]] customFiles
; [[CRC32_t]] customFiles
: {{todo|Probably related to [[sv_pure]]. Available from server?}}
: CRC32 hash of the player's custom files. Custom file 0 refers to the player's spray decal, 1 the player's jingle sound, and the rest are unused.
; [[unsigned]] char filesDownloaded
; [[unsigned]] char filesDownloaded
: The number of files this client has downloaded {{todo|Available from server?}}
: The number of files this client has downloaded {{todo|Available from server?}}

Latest revision as of 07:24, 8 July 2016

player_info_t is an engine interface struct that is filled out by calling engine->GetPlayerInfo(). It seems to become active shortly, but not immediately, after a player connects.

It is designed for access by the client, but can be used serverside too once you copy its definition from public/cdll_int.h.

Members

char name
Game-chosen name as it appears on the scoreboard. Since the Orange Box, always the user's Friends name.
int userID
Player's server-specific Userid
char guid
Player's SteamID
char friendsName
Friends name. Now enforced as game name.
bool fakeplayer
True is player is a bot
bool ishltv
True is player is a HLTV proxy
CRC32_t customFiles
CRC32 hash of the player's custom files. Custom file 0 refers to the player's spray decal, 1 the player's jingle sound, and the rest are unused.
unsigned char filesDownloaded
The number of files this client has downloaded
Todo: Available from server?

See also