Npc turret ceiling: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 13: Line 13:
==Keyvalues==
==Keyvalues==
*{{kv targetname}}
*{{kv targetname}}
*{{kv angles}}
*{{KV Angles}}
*{{kv studiomodel}}
*{{kv studiomodel}}



Revision as of 19:41, 19 January 2009

Template:Wrongtitle

Entity Description

Ceiling Turret

A Combine turret attached to the ceiling.

Rarely used in Half-Life 2 (if at all), in favor of its cousin npc_combine_camera. See also its siblings: npc_turret_ground and npc_turret_floor.

Warning.pngWarning:This turret is really strong, and when it dies, the sound stays.
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

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

  • 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
  • 64 : Start Inactive
  • 128 : Fast Retire
  • 256 : Out of Ammo (in all games since Half-Life 2: Episode One)
  • 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
  • 16384 : Ignore player push (in all games since Half-Life 2: Episode One)
Don't give way to player

Inputs

  • Studiomodel:
Skin <integerRedirectInput/integer>
Changes the model's skin to the specified number.
SetBodyGroup <integerRedirectInput/integer>
Set the model's body group.
AlternativeSorting <booleanRedirectInput/boolean>
Uses an alternative method for telling which objects are in front of others. Use if this object draws incorrectly when seen through transparent things.
SetModelScale <stringRedirectInput/string> (in all games since Alien Swarm) (also in Source 2013)
Sets the model scale. Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over. If there is no second value, the model will scale instantly.
Warning.pngWarning:Negative or extremely high values can cause crashes!

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.

Reflection:

DisableDrawInFastReflection  (in all games since Portal 2)
Turns off rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
EnableDrawInFastReflection  (in all games since Portal 2)
Turn on rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
ToggleDraw:
DisableDraw  (in all games since Portal 2)
Add the EF_NODRAW flag to this entity. Some entities manage this on their own so be aware you can override that value.
EnableDraw  (in all games since Portal 2)
Remove the EF_NODRAW flag from this entity. Some entities manage this on their own so be aware you can override that value.

Outputs

OnIgnite
Fired when this object catches fire.
  • OnDeploy
Turret is becoming active and dangerous.
  • OnRetire
Turret is becoming inactive and harmless.



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