CObjectSentrygun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 24: | Line 24: | ||
|'''m_iAmmoShells''' | |'''m_iAmmoShells''' | ||
|Integer | |Integer | ||
| | |The amount of bullet ammo this sentry currently has | ||
|- | |- | ||
|'''m_iAmmoRockets''' | |'''m_iAmmoRockets''' | ||
|Integer | |Integer | ||
| | |The amount of rocket ammo this sentry currently has | ||
|- | |- | ||
|'''m_iState''' | |'''m_iState''' | ||
Line 86: | Line 86: | ||
|Integer | |Integer | ||
|The number of kill assists this sentry has accumulated in it's life | |The number of kill assists this sentry has accumulated in it's life | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|} | |} |
Latest revision as of 01:13, 17 September 2023
Overview[edit | edit source]
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[edit | edit source]
- CBaseEntity
- CBaseAnimating
- CBaseAnimatingOverlay
- CBaseFlex
- CBaseCombatCharacter
- CBaseObject
- CObjectSentrygun
- CBaseObject
- CBaseCombatCharacter
- CBaseFlex
- CBaseAnimatingOverlay
- CBaseAnimating
SendProps[edit | edit source]
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
m_iAmmoShells | Integer | The amount of bullet ammo this sentry currently has | |||||||||||||||
m_iAmmoRockets | Integer | The amount of rocket ammo this sentry currently has | |||||||||||||||
m_iState | Integer | What this sentrygun is currently doing
| |||||||||||||||
m_bPlayerControlled | Boolean | Whether or not this sentry is being controlled by a player with the Wrangler | |||||||||||||||
m_nShieldLevel | Integer | The shielding level for this sentry
| |||||||||||||||
m_hEnemy | Integer | The target of this sentry's fire. When the sentry is uncontrolled this will be the player it is attempting to fire at. When the sentry is controlled by a Wrangler it will be the env_laser used by the weapon | |||||||||||||||
m_hAutoAimTarget | Integer | The aim assisted player target used by the Wrangler. When aiming near an enemy and a positive vector trace is established the env_laser will lock on to the target player, and this value (m_hAutoAimTarget) will be set to that enemy | |||||||||||||||
|