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

    Interface DemoStateInterface

    User-friendly interface for the current state of the demo.

    interface DemoStateInterface {
        tick: number;
        players: CmdInfo[];
        entities: Entities | null;
    }
    Index

    Properties

    Properties

    tick: number

    Current server tick. Reports only even numbers on single player games due to sv_alternateticks.

    players: CmdInfo[]

    List of Message.CmdInfo objects, one for each player. "players" might be a bit of a misnomer, as what this really tracks is the camera that the demo follows.

    entities: Entities | null

    The primary entity interface. Holds all entities available on the current tick, as well as methods for querying them. See Entity.Entities for more information.