Obj sentrygun: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Keyvalues)
No edit summary
Line 1: Line 1:
{{wrongtitle|title=obj_sentrygun}}
{{wrongtitle|title=obj_sentrygun}}
 
{{Tf2 point}}
<!--<br clear=all>
{{stub}}
<div class="boilerplate metadata" id="stub" align=left>&nbsp; &nbsp;''This article is a [[Help:Stubs|stub]]. You can help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} adding to it].'' </div>
 
<br clear=all>-->
<div style="text-align: center; background: #B8C6FF; font-weight: bold; margin: 0.1em 10%; padding: 0.1em 0.1em; border: #E5E5E5 2px solid;">
''This article is a [[Help:Stubs|stub]]. You can help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} adding to it].''
</div>


==Entity Description==
==Entity Description==
Used to place a sentry gun in your map. The sentry gun it creates is the same as a normal one erected by an engineer in-game that can be repaired, damaged, and upgraded depending on it's flag settings.  There are currently no options in the obj_sentygun settings to prevent it from being sapped by spies, or running out of ammunition.
Used to place a sentry gun in your map. The sentry gun it creates is the same as a normal one erected by an engineer in-game that can be repaired, damaged, and upgraded depending on it's flag settings.  There are currently no options in the obj_sentygun settings to prevent it from being sapped by spies, or running out of ammunition.
==Availability==
This point based [[entity]] is exclusive to [[Team Fortress 2]].


== Keyvalues ==
== Keyvalues ==
* '''Name'''
* {{KV Targetname}}
: The name that other entities refer to the sentry by.
* {{KV Angles}}
* '''Parent'''
* {{KV TFTeam}}
: The name of the sentry's parent in the movement hierarchy. Entities with parents move with their parent.
* '''Team'''
: <choices> What team the sentry will belong to.
:{| class=standard-table
| '''Options'''
|-
| Red
|-
| Blue
|}
* '''Pitch Yaw Roll (Y Z X)'''
: This sentry's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
* '''Starting Upgrade Level'''
: <choices> The sentry level to spawn as.
:{| class=standard-table
! Literal Value !! Description
|-
| 0 || Level 1
|-
| 1 || Level 2
|-
| 2 || Level 3
|}


== Flags ==
== Flags ==
Line 51: Line 19:


== Inputs ==
== Inputs ==
As of yet, there are no inputs for the obj_sentrygun.
{{ScrollBox|
* {{I Targetname}}
* {{I Parentname}}
* {{I DamageFilter}}
* {{I ResponseContext}}
* {{I Shadow}}
}}


== Outputs ==
== Outputs ==
* {{O Targetname}}


[[Category:Stubs]]
[[Category:Team Fortress 2 Entities]]
[[Category:Team Fortress 2 Entities]]

Revision as of 19:12, 19 December 2010

Template:Wrongtitle Team Fortress 2 {{{1}}} is a point entity available in Team Fortress 2 Team Fortress 2.

Stub

This article or section is a stub. You can help by expanding it.

Entity Description

Used to place a sentry gun in your map. The sentry gun it creates is the same as a normal one erected by an engineer in-game that can be repaired, damaged, and upgraded depending on it's flag settings. There are currently no options in the obj_sentygun settings to prevent it from being sapped by spies, or running out of ammunition.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
  • TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Flags

  • Upgradeable
If checked, the sentry can be upgraded by Engineers of the same team.
  • Invulnerable
If checked, prevents the sentry from taking any damage.

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • DamageFilter:
SetDamageFilter <stringRedirectInput/string>
Sets the entity to use as damage filter. Pass in an empty string (no parameter) to clear the damage filter.
  • ResponseContext:
AddContext <stringRedirectInput/string>
Adds to the entity's list of response contexts. Format is <key>:<value>.
RemoveContext <stringRedirectInput/string>
Remove a context from this entity's list. The name should match the key of an existing context.
ClearContext
Removes all contexts from this entity's list.
  • Shadow:
DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.

Outputs