Npc turret floor

From Valve Developer Community

Table of contents

Entity Description

Floor Turret
Floor Turret

A three-legged turret, equipped with a weaker variant of an AR2.

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

If placed in a squad, it might share enemies with its squad.

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

Keyvalues

  • SkinNumber <integer> 
    Which skin to use for this turret. Set to 0 to select randomly.
  • 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).

Flags

  • 32 : Autostart
  • 64 : Start Inactive
  • 128 : Fast Retire
  • 256 : Out of Ammo [Episode One Update]
  • 512 : Citizen modified (Friendly) [Episode One Update]

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.
  • Toggle 
    Toggle - If open, close. If closed, open.
  • Enable 
    Enable the turret.
  • Disable 
    Disable the turret.
  • DepleteAmmo 
    Depletes all the ammo from a turret, causing it to dry-fire.
  • RestoreAmmo 
    Restores ammo to a turret, allowing it to fire live rounds again.
  • SelfDestruct 
    Causes the turret to warn and then explode.

Outputs

Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
!activator = activator
  • OnDeploy 
    Turret is becoming active and dangerous.
  • OnRetire 
    Turret is becoming inactive and harmless.
  • OnTipped 
    Turret has been tipped over and is inactive.
  • OnPhysGunPickup 
    Picked up with physgun.
  • OnPhysGunDrop 
    Released by physgun.




This page is also available in: Russian (Русский)