CObjectSentrygun: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:
|'''m_iState'''
|'''m_iState'''
|Integer
|Integer
|What this sentrygun is currently doing
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="1" |Values
|-
|
|
* 0 - SENTRY_STATE_INACTIVE
* 1 - SENTRY_STATE_SEARCHING
* 2 - SENTRY_STATE_ATTACKING
* 3 - SENTRY_STATE_UPGRADING
|}
|-
|-
|'''m_bPlayerControlled'''
|'''m_bPlayerControlled'''

Revision as of 14:08, 13 November 2022

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