Npc cscanner: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 3: Line 3:
==Entity Description==
==Entity Description==


[[Image:Cscanner.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.
Co-Op modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility.

Revision as of 18:08, 12 July 2005

Template:Wrongtitle

Entity Description

Combine Scanner

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

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.