Npc cscanner: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 5: Line 5:
[[Image:Combine scanner.jpg|frame|right|Combine Scanner]]
[[Image:Combine scanner.jpg|frame|right|Combine Scanner]]


Co-Op modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility.
NPC modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility.
 
{{npcnote}}


==Keyvalues==
==Keyvalues==

Revision as of 12:13, 3 August 2005

Template:Wrongtitle

Entity Description

Combine Scanner

NPC modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility.

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

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

Flags

Inputs

  • DisableSpotlight
  • InspectTargetPhoto <string>
Tells the scanner to photograph the given entity, named by classname or by target name. !activator or !player works here also.
  • InspectTargetSpotlight <string>
Tells the scanner to spotlight the given entity, named by classname or by target name. !activator or !player works here also.
  • InputSetFlightSpeed <integer>
Sets the flight speed of the scanner
  • InputShouldInspect <integer>
Set whether should inspect or not
  • SetFollowTarget <string>
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

  • OnPhotographPlayer
Fired any time the scanner takes a picture of the player.
  • OnPhotographNPC
Fired any time the scanner takes a picture of an NPC.