Npc turret ceiling
From Valve Developer Community
| Table of contents |
[edit]
Entity Description
A Combine turret attached to the ceiling.
Rarely used in Half-Life 2 (if at all), in favor of its cousin npc_combine_camera. See also its siblings: npc_turret_ground and npc_turret_floor.
Warning: This turret is really strong, and when it dies, the sound stays.
Note: Some keyvalues, flags, inputs, or outputs might not affect an NPC based on the functionality and coding of the NPC.[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- Pitch Yaw Roll (Y Z X)
- This entity's angular orientation in the world (also used for angular effect entities).
- model
- <studio> World Model (Maximum string length: 128)
- skin
- <integer> Some models have multiple versions of their textures called skins. Set this to a number other than 0 to use that skin instead of the default.
- disableshadows
- <boolean> Used to disable dynamic shadow casting from this entity.
[edit]
Flags
- 1 : Wait Till Seen
- 2 : Gag
- No IDLE sounds until angry
- 4 : Fall to ground
- Unchecked means *teleport* to ground
- 8 : Drop Healthkit
- 16 : Efficient - Don't acquire enemies or avoid obstacles
- 32 : Autostart
- 64 : Start Inactive
- 128 : Fast Retire
- 256 : Out of Ammo [Episode One Update]
- 512 : Fade Corpse
- 1024 : Think outside PVS
- 2048 : Template NPC
- Will not spawn, used by npc_template_maker but not point_template
- 4096 : Do Alternate collision for this NPC (player avoidance)
- 8192 : Don't drop weapons
- 16384 : Ignore player push [Episode One Update]
- Don't give way to player
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- Skin <integer>
- Changes the model skin to the specified number.
- SetBodyGroup <integer>
- Set this prop's body group (from 0 - n). Changes the model body to the specified number.
- DisableShadow
- Turn shadow off.
- EnableShadow
- Turn shadow on.
- AlternativeSorting <bool> [Episode One Update]
- Used to attempt to fix sorting problems when rendering. True activates, false deactivates
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator
- OnIgnite
- Fired when this object catches fire.
- OnDeploy
- Turret is becoming active and dangerous.
- OnRetire
- Turret is becoming inactive and harmless.
This page is also available in: Russian (Русский)

