CObjectTeleporter

From SigMod
Revision as of 16:06, 13 November 2022 by Mince (talk | contribs)
Jump to navigation Jump to search

Overview

Placed and carried teleporters are instances of this class.

Source location : /game/server/tf/tf_obj_teleporter.h

Linked entity : obj_teleporter

Class Structure

SendProps

CObjectTeleporter
Name Type Description
m_iState Integer What this teleporter is currently doing
Values
  • 0 - TELEPORTER_STATE_BUILDING // Building, not active yet
  • 1 - TELEPORTER_STATE_IDLE // Does not have a matching teleporter yet
  • 2 - TELEPORTER_STATE_READY // Found match, charged and ready
  • 3 - TELEPORTER_STATE_SENDING // Teleporter entrance teleporting a player away
  • 4 - TELEPORTER_STATE_RECEIVING // Teleporter exit receiving a teleported player, before any game events are handled
  • 5 - TELEPORTER_STATE_RECEIVING_RELEASE // Fired immediately after TELEPORTER_STATE_RECEIVING, this handles game events and resets some teleporter variables
  • 6 - TELEPORTER_STATE_RECHARGING // Waiting for recharge
  • 7 - TELEPORTER_STATE_UPGRADING
m_flRechargeTime Float
m_flCurrentRechargeDuration Float
m_iTimesUsed Integer
m_flYawToExit Float
m_bMatchBuilding Boolean

Entity DataMaps

CObjectTeleporter
Name Type Description
CObjectTeleporterTeleporterThink
CObjectTeleporterTeleporterTouch
m_iTeleportType
m_iszMatchingMapPlacedTeleporter