Editing
CObjectSentrygun
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Overview== Placed and carried sentry guns are instances of this class. '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/tf2/tf_obj_sentrygun.h /game/server/tf2/tf_obj_sentrygun.h]''' '''Linked entity : [https://developer.valvesoftware.com/wiki/Obj_sentrygun obj_sentrygun]''' ==[[Classes|Class Structure]]== *'''[[CBaseEntity]]''' **'''[[CBaseAnimating]]''' ***'''[[CBaseAnimatingOverlay]]''' ****'''[[CBaseFlex]]''' *****'''[[CBaseCombatCharacter]]''' ******'''[[CBaseObject]]''' *******'''CObjectSentrygun''' ==SendProps== {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" |+CObjectSentrygun ! style="width: 50%; background-color: #303030; color: white" |Name ! style="width: 15%; background-color: #303030; color: white" |Type ! style="width: 35%; background-color: #303030; color: white" |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 {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" ! colspan="1" |Values |- | * 0 - SENTRY_STATE_INACTIVE // Carried or being constructed * 1 - SENTRY_STATE_SEARCHING // Active and sweeping for targets * 2 - SENTRY_STATE_ATTACKING // Rotating to fire, or actively firing on an enemy * 3 - SENTRY_STATE_UPGRADING |} |- |'''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 {| 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 an ü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 has the Wrangler out, m_nShieldLevel will remain SHIELD_NORMAL. |} |- |'''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 |- | colspan="3" style="padding: 0; margin: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" ! colspan="3" |SentrygunLocalData |- | style="width: 50%;" |'''m_iKills''' | style="width: 15%;" |Integer | style="width: 35%;" |The number of kills this sentry has accumulated in it's life |- |'''m_iAssists''' |Integer |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)" | |} |} |}
Summary:
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
SigMod:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information