Npc clawscanner: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Robot: fixing template case.)
Line 29: Line 29:


== Flags ==
== Flags ==
* {{fl basenpc}}
* {{Fl BaseNPC}}
* 65536 : No Dynamic Light
* 65536 : No Dynamic Light
* 131072 : Strider Scout Scanner
* 131072 : Strider Scout Scanner

Revision as of 19:21, 19 January 2009

Template:Wrongtitle

Entity description

Claw Scanner

A Claw/Shield scanner.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Dedicated CVars

  • sk_scanner_health
<integer> A scanner's spawn health
  • sk_scanner_dmg_dive
<integer>

Keyvalues

<integer>
  • spotlightwidth
<integer>
  • spotlightdisabled
<boolean>
  • ShouldInspect
<boolean>
  • OnlyInspectPlayers
<boolean>
  • NeverInspectPlayers
<boolean>

Flags

BaseNPC flags 
Wait Till Seen : [1]
Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.
Gag : [2]
Won't make IDLE sounds until it's angry.
Fall to ground (unchecked means teleport to ground) : [4]
Drop Healthkit : [8]
Causes this NPC to drop an item_healthvial upon dying.
Efficient : [16]
Don't acquire enemies or avoid obstacles
Wait For Script : [128]
Forces this NPC to "wait" in an idle state until it finishes playing a scripted_sequence.
Long Visibility/Shoot : [256]
By default, increases a NPC's sight range to 6,000 units and allows it to attack from anywhere within that distance.
Fade Corpse : [512]
Think outside PVS : [1024]
Allows this NPC to run its regular AI outside of any player's PVS.
Template NPC : [2048]
Marks this NPC as a template for entities like npc_template_maker. The NPC will not spawn on its own. This is not needed for point_template.
Do Alternate collision for this NPC (player avoidance) : [4096]
Note.pngNote:This flag is disabled in Half-Life 2: Episode One Half-Life 2: Episode Two episodic for player companions, because the StartScripting input does this.
Don't drop weapons : [8192]
Ignore player push : [16384] (in all games since Source 2006)
Entity won't give way to player.
  • 65536 : No Dynamic Light
  • 131072 : Strider Scout Scanner
This scanner moves faster and follows an npc_strider

Inputs

Tells the scanner to photograph the given entity, named by classname or by target name. !activator or !player works here also.
  • InspectTargetSpotlight <target_name_or_class>
Tells the scanner to spotlight the given entity, named by classname or by target name. !activator or !player works here also.
  • SetFlightSpeed <integer>
Sets the flight speed of the scanner
Set whether should inspect or not
  • SetFollowTarget <target_name_or_class>
Set target to follow until told otherwise
  • ClearFollowTarget
Stop following our target
  • SetDistanceOverride <float>
Override the distance the scanner will attempt to keep between inspection targets and itself
  • DeployMine
Drop landmine (if carrying one)
  • EquipMine
Equip with landmine

Outputs

Fired any time the scanner takes a picture of the player. Template:Plact
  • OnPhotographNPC
Fired any time the scanner takes a picture of an NPC. (!activator is the NPC)