Npc cscanner: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 8: Line 8:


{{npcnote}}
{{npcnote}}
 
==Dedicated Console Variables==
* '''sk_scanner_health'''
: <integer> A scanner's spawn health
* '''sk_scanner_dmg_dive'''
: <integer>
==Keyvalues==
==Keyvalues==



Revision as of 12:44, 12 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.

Dedicated Console Variables

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

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.