Player info t

From Valve Developer Community
Revision as of 06:13, 19 October 2010 by TomEdwards (talk | contribs) (Created page with ''''<code>player_info_t</code>''' is an engine interface struct that is filled out by calling <code>engine->GetPlayerInfo()</code>. It seems to become a…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
Todo: Probably related to sv_pure. Available from server?
unsigned char filesDownloaded
The number of files this client has downloaded
Todo: Available from server?

See also