CObjectSentrygun

From SigMod
Revision as of 14:08, 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
  • 1 - SENTRY_STATE_SEARCHING
  • 2 - SENTRY_STATE_ATTACKING
  • 3 - SENTRY_STATE_UPGRADING
m_bPlayerControlled Boolean
m_nShieldLevel Integer
m_hEnemy Integer
m_hAutoAimTarget Integer
SentrygunLocalData
m_iKills Integer
m_iAssists Integer