Npc turret floor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


If placed in a squad, it might share enemies with its squad.
If placed in a squad, it might share enemies with its squad.
* See also : [[npc_turret_ceiling]], [[npc_turret_ground]], [[npc_combine_camera]]


{{npcnote}}
{{npcnote}}


==Keyvalues==
==Keyvalues==
*{{kv basenpc}}
*; SkinNumber <integer> : Which skin to use for this turret. Set to 0 to select randomly.
*{{kv targetname}}
*{{kv angles}}


==Flags==
==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
* 32 : Autostart
* 64 : Start Inactive
* 64 : Start Inactive
* 128 : Fast Retire
* 128 : Fast Retire
* {{ep1 add|256 : Out of Ammo}}
* {{ep1 add|256 : Out of Ammo}}
* 512 : Fade Corpse
* {{ep1 add|512 : Citizen modified (Friendly)}}
* 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
* {{ep1 add|16384 : Ignore player push}}
: Don't give way to player


==Inputs==
==Inputs==
*{{i basenpc}}
*{{i targetname}}
*{{i enabledisable}}
*; Toggle : Toggle - If open, close. If closed, open.
*'''Toggle'''
 
: Toggle this entity.
*; 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==
==Outputs==
*{{o basenpc}}
*{{o targetname}}
* '''OnDeploy'''
*; OnDeploy : Turret is becoming active and dangerous.
: Turret is becoming active and dangerous.
 
* '''OnRetire'''
*; OnRetire : Turret is becoming inactive and harmless.
: Turret is becoming inactive and harmless.
 
* '''OnTipped'''
*; OnTipped : Turret has been tipped over and is inactive.
: Turret has been tipped over and is inactive.
 
* '''OnPhysGunPickup'''
*; OnPhysGunPickup : Picked up with physgun.
: Picked up with physgun
 
* '''OnPhysGunDrop'''
*; OnPhysGunDrop : Released by physgun.
: Released by physgun
 
==See Also==
* [[npc_turret_ceiling]]
* [[npc_turret_ground]]


{{otherlang:en}}
{{otherlang:en}}

Revision as of 03:09, 9 March 2008

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.

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

Flags

Inputs

  • 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

  • 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