Scriptable Parser for Portal 2 Demos
    Preparing search index...

    Class PlayerInfo

    One entry per player. Contains information about the user from outside the game world, that is, their Steam account and client details.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    tableName: string

    Name of the string table that this entry belongs to.

    entryName: string

    Name of this entry.

    steamID: BigInt

    SteamID64 - a unique Steam account identifier.

    name: string

    Player's Steam username.

    userID: number

    Server user ID, unique to the server.

    GUID: string

    Also a SteamID, just in a different format.

    friendsID: number

    Last half (32 bits) of the SteamID64 in big endian.

    friendsName: string

    Name shown to other players (?)

    fakePlayer: boolean

    Whether this is a bot player. Supposed to be true for splitscreen co-op players, but doesn't seem to ever actually change. Instead, split-screen players can be identified by checking if name is "split", GUID is "BOT", and steamID is 0.

    isHLTV: boolean

    Whether this is an HLTV spectator. Irrelevant for Portal 2.

    customFilesCRC: number[]

    Checksums for custom logo, sound, model, and text files, respectively.

    filesDownloaded: number

    Number of custom files downloaded by the server.

    Methods

    • Parses a string table property from the given demo.

      Parameters

      • tableName: string

        Name of the string table that this entry belongs to.

      • entryName: string

        Name of this entry.

      • demo: Demo

        Demo from which to parse.

      • Optionalcompression: number | null

        Compression details, currently unused.

      Returns StringTableEntry

      A string table entry variant as derived from the table's name.