Npc portal turret floor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
Line 1: Line 1:
==Entity Description==
[[Image:AP Turret.jpg|right|150px|Aperture Science floor turret]]
[[Image:AP Turret.jpg|frame|right|Aperture Science Floor Turret]]
 
Aperture Science Floor Turret
{{portal point|npc_portal_turret_floor}} It is a freestanding Aperture Science turret. {{wrongtitle|title=npc_portal_turret_floor}} __NOTOC__


==Availability==
This point entity is exclusive to [[Portal]].
==Keyvalues==
==Keyvalues==
*{{KV BaseNPC}}
 
* '''DamageForce'''
; DamageForce <code><[[bool]]></code>
:{{boolean}} Being hit by this turret will push the player back.
: Being hit by this turret will push the player back.
{{KV npc_turret_floor}}
 
==Flags==
==Flags==
* 1 : Wait Till Seen
 
* 2 : Gag
{{Fl npc turret floor}}
: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
* 64 : Start Inactive
* 128 : Fast Retire
* {{EP1 add|256 : Out of Ammo}}
* 512 : Fade Corpse
* 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 EnableDisable}}
*'''Toggle'''
: Toggle this entity.
* '''FireBullet'''
:<string> Causes the turret to instantly fire at the specified entity.


; <code>FireBullet <[[targetname]]></code>
: Causes the turret to instantly fire at the specified entity.
{{I npc_turret_floor}}


==Outputs==
==Outputs==
*{{O BaseNPC}}
 
* '''OnDeploy'''
{{O npc_turret_floor}}
: 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
==See Also==
==See Also==
* [[npc_turret_floor]]
 
[[Category:Portal Entities]]
* [[npc_rocket_turret]]
* [[npc_turret_floor]] (HL2 equivalent)

Revision as of 09:58, 21 July 2009

Aperture Science floor turret

Template:Portal point It is a freestanding Aperture Science turret. Template:Wrongtitle

Keyvalues

DamageForce <bool>
Being hit by this turret will push the player back.
Skin Number (SkinNumber) <integer>
Which skin to use for this turret. Set to 0 to select randomly.
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

Autostart : [32]
Unknown. Possibly deprecated.
Start Inactive : [64]
Causes this turret to start deactivated
Fast Retire : [128]
Makes this turret return to its dormant state faster after losing a target
Out of Ammo : [256]
Makes this turret unable to shoot at acquired targets
Citizen modified (Friendly) : [512] (in all games since Source 2007)
This turret will be allied with the player and use a special skin


Inputs

FireBullet <targetname>
Causes the turret to instantly fire at the specified entity.
Enable
Disable
Toggle
Active/deactivate the turret's mechanisms.
Icon-Bug.pngBug:The Enable/Disable inputs have no effect while the turret is knocked over.  [todo tested in ?]
DepleteAmmo
RestoreAmmo
Depletes ammo from a turret, causing it to dry-fire, or restores ammo. Turrets never run out on their own.
Icon-Bug.pngBug:The DepleteAmmo/RestoreAmmo inputs have no effect on Portal turrets.  [todo tested in ?]
SelfDestruct  (in all games since Half-Life 2: Episode Two)
Emit a warning then self-destruct in a small explosion.


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 or +use.


See Also