Class Team

Represents an in-game team.

Hierarchy

Constructors

Properties

_demo: DemoFile
classId: number

Server class ID.

deleting: boolean = false

Entity is scheduled for removal this tick.

index: number

Entity index.

props: CTeam
serialNum: number

Serial number.

Accessors

  • get handle(): number
  • Returns

    Number uniquely identifying this entity. Should be unique throughout the entire demo.

    Returns number

  • get isDormant(): boolean
  • True if this entity is out of the PVS. Always false on GOTV demos as all entities are always in the PVS.

    Returns boolean

Methods

  • Interpret an array-like data table (e.g., m_iAmmo) as an array

    Type Parameters

    • TableName extends "DT_Team"

    • TableKeys extends string | number | symbol

    • ArrayType extends undefined | readonly CTeam[TableName][TableKeys][]

    Parameters

    • tableName: TableName

      Name of the data table

    Returns ArrayType

  • Retrieves the value of a networked property

    Returns

    Property value, undefined if non-existent

    Type Parameters

    • Table extends "DT_Team"

    • VarName extends string | number | symbol

    Parameters

    • tableName: Table

      Table name (e.g., DT_BaseEntity)

    • varName: VarName

      Network variable name (e.g., m_vecOrigin)

    Returns CTeam[Table][VarName]

  • Update the value of a prop

    Type Parameters

    • Table extends "DT_Team"

    • VarName extends string | number | symbol

    • PropType

    Parameters

    • tableName: Table

      Name of the data table

    • varName: VarName

      Name of the prop to update

    • newValue: PropType

      New prop value

    Returns void

Generated using TypeDoc