CNPC_FloorTurret

From Source Entities
Jump to navigation Jump to search

CNPC_FloorTurret is a code class in Hl2.pngP2.png.

Classnames:

  • npc_turret_floor - Combine turret.

Flags[edit | edit source]

  • 32: Autostart To do: No effect?
  • 64: Start Inactive - Turret doesn't search for enemies or shoot until told to.
  • 128: Fast Retire - Turret gives up on searching faster.
  • 256: Out of Ammo - Turret never fires.
  • 512: Citizen modified (Friendly)

Keyvalues[edit | edit source]

Skin Number (SkinNumber) <integer>
If Citizen modified is checked, which of the 3 skins to use. If 0, the skin is randomly chosen.

Inputs[edit | edit source]

SelfDestruct
Turret catches on fire and explodes.
DepleteAmmo
Destroys the turret's ammo. Does not work in P2.png.
RestoreAmmo
Gives ammo to the turret. Does not work in P2.png.
InteractivePowerDown (Not in FGD)
Does nothing.
Enable
Makes the entity active.
Disable
Makes the entity inactive.
Toggle
If on, turn off. If off, turn on.

Outputs[edit | edit source]

OnDeploy
Fires when the turret is put back to a standing angle or the Enable input is sent while not tipped over.
OnRetire
Fires when the turret gives up on searching.
OnTipped
Fires when the turret powers down after being tipped.
OnPhysGunPickup
Fires when picked up by the player in any way.
OnPhysGunDrop
Fires when dropped by the player in any way.
OnAlyxStartedInteraction (Not in FGD)
Never fires because Alyx does not have any special interactions with turrets.
OnAlyxFinishedInteraction (Not in FGD)
Never fires because Alyx does not have any special interactions with turrets.