npc_turret_floor

From Valve Developer Community

Jump to: navigation, search
  Русский
Floor Turret

<Half-Life 2> npc_turret_floor is a point entity available in Half-Life 2. It is a three-legged Combine turret, equipped with a weak AR2.

It is unstable and falls over easily, but cannot be destroyed. It scans a 90 degree area, and will lock on to and fire at a target until that target goes is out of range or can't be seen.

To do: If placed in a squad, does it share enemies?

Note:Some keyvalues, flags, inputs, or outputs might not affect an NPC based on the functionality and coding of the NPC.

See also

Keyvalues

Skin Number <int>
Which skin to use for this turret. Set to 0 to select randomly.

Angles:

Pitch Yaw Roll (Y Z X) <angle>
This entity's angular orientation in the world.

Targetname:

Name <string>
The targetname other entities refer to this entity by.

Flags

  • Autostart
  • Start Inactive
  • Fast Retire
  • Out of Ammo
  • Citizen modified (Friendly) (New with Orange Box)

Inputs

Enable
Disable
Toggle
Active/deactivate the turret's mechanisms.
DepleteAmmo
RestoreAmmo
Depletes ammo from a turret, causing it to dry-fire, or restores ammo. Turrets never run out on their own.
SelfDestruct (New with Orange Box)
Emit a warning then self-destruct in a small explosion.

Targetname:

Kill
Removes this entity from the world.
KillHierarchy
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 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.

Outputs

OnDeploy
OnRetire
Turret has become active and dangerous or inactive and harmless.
OnTipped
Turret has been tipped over and is inactive.
OnPhysGunPickup
OnPhysGunDrop
Picked up/released by Gravity Gun. To do: And +use?

Targetname:

OnUser1 to OnUser4
Fired in response to the FireUser inputs; see User Inputs and Outputs.
OnKilled (New with Left 4 Dead)
Fired when the entity is killed and removed from the game.
Personal tools