CObjectSentrygun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 81: | Line 81: | ||
| style="width: 50%;" |'''m_iKills''' | | style="width: 50%;" |'''m_iKills''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The number of kills this sentry has accumulated in it's life | ||
|- | |- | ||
|'''m_iAssists''' | |'''m_iAssists''' | ||
|Integer | |Integer | ||
| | |The number of kill assists this sentry has accumulated in it's life | ||
|} | |} | ||
|} | |} |
Revision as of 15:19, 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 | 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 | |||||||||
|