CObjectSentrygun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 45: | Line 45: | ||
|'''m_bPlayerControlled''' | |'''m_bPlayerControlled''' | ||
|Boolean | |Boolean | ||
| | |Whether or not this sentry is being controlled by a player with the Wrangler | ||
|- | |- | ||
|'''m_nShieldLevel''' | |'''m_nShieldLevel''' | ||
|Integer | |Integer | ||
|The shielding level for this sentry | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
* 0 - SHIELD_NONE | |||
* 1 - SHIELD_NORMAL | |||
* 2 - SHIELD_MAX | |||
|} | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Usage | |||
|- | |||
| | | | ||
* SHIELD_NONE (0) is the normal non shielded state for a sentry | |||
* SHIELD_NORMAL (1) is applied when the Wrangler is actively controlling the sentry, reducing damage by 66% | |||
* SHIELD_MAX (2) is applied when the and übercharge canteen is used by the engineer, reducing damage by 90% and applying a temporarily shield to the sentrygun. This will NOT happen however if the engineer is actively using the Wrangler when the canteen is used. | |||
|} | |||
|- | |- | ||
|'''m_hEnemy''' | |'''m_hEnemy''' |
Revision as of 14:43, 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 | ||||||||||
m_hAutoAimTarget | Integer | ||||||||||
|