CObjectSentrygun

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

Overview

Placed and carried sentry guns are instances of this class.

Source location : /game/server/tf2/tf_obj_sentrygun.h

Linked entity : obj_sentrygun

Class Structure

SendProps

CObjectSentrygun
Name Type Description
m_iAmmoShells Integer
m_iAmmoRockets Integer
m_iState Integer What this sentrygun is currently doing
Values
  • 0 - SENTRY_STATE_INACTIVE // Carried or being constructed
  • 1 - SENTRY_STATE_SEARCHING // Active and sweeping for targets
  • 2 - SENTRY_STATE_ATTACKING // Rotating to fire, or actively firing on an enemy
  • 3 - SENTRY_STATE_UPGRADING
m_bPlayerControlled Boolean
m_nShieldLevel Integer
m_hEnemy Integer
m_hAutoAimTarget Integer
SentrygunLocalData
m_iKills Integer
m_iAssists Integer