CObjectSentrygun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
|- | |- | ||
| | | | ||
* 0 - SENTRY_STATE_INACTIVE | * 0 - SENTRY_STATE_INACTIVE // Carried or being constructed | ||
* 1 - SENTRY_STATE_SEARCHING | * 1 - SENTRY_STATE_SEARCHING // Active and sweeping for targets | ||
* 2 - SENTRY_STATE_ATTACKING | * 2 - SENTRY_STATE_ATTACKING // Rotating to fire, or actively firing on an enemy | ||
* 3 - SENTRY_STATE_UPGRADING | * 3 - SENTRY_STATE_UPGRADING | ||
|} | |} |
Revision as of 14:16, 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
- CBaseEntity
- CBaseAnimating
- CBaseAnimatingOverlay
- CBaseFlex
- CBaseCombatCharacter
- CBaseObject
- CObjectSentrygun
- CBaseObject
- CBaseCombatCharacter
- CBaseFlex
- CBaseAnimatingOverlay
- CBaseAnimating
SendProps
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
m_iAmmoShells | Integer | ||||||||||
m_iAmmoRockets | Integer | ||||||||||
m_iState | Integer | What this sentrygun is currently doing
| |||||||||
m_bPlayerControlled | Boolean | ||||||||||
m_nShieldLevel | Integer | ||||||||||
m_hEnemy | Integer | ||||||||||
m_hAutoAimTarget | Integer | ||||||||||
|