Npc turret floor

From Valve Developer Community
Revision as of 15:26, 30 June 2009 by Reaper47 (talk | contribs) (the "Citizen modified (Friendly)" flag doesn't seem to work in plain HL2 (ep1 only?) added reference to ai_relationship)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

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.

Use ai_relationship to make turrets friendly to players.

Note.pngNote:Some keyvalues, spawnflags, effect 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.
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.

Flags

  • 32 : Autostart
  • 64 : Start Inactive
  • 128 : Fast Retire
  • 256 : Out of Ammo (in all games since Half-Life 2: Episode One)
  • 512 : Citizen modified (Friendly) (in all games since Half-Life 2: Episode One)

Inputs

  • 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

  • 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.


Template:Otherlang:en Template:Otherlang:en:ru