Npc cscanner: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Entity Description: Scanner applications.)
(Added a console variable, and wrote defaults.)
Line 3: Line 3:
==Entity Description==
==Entity Description==
[[Image:Combine scanner.jpg|frame|right|Combine Scanner]]
[[Image:Combine scanner.jpg|frame|right|Combine Scanner]]
A Combine scanner. The default model is used for surveillance and scouting, while the shield scanner model has more military applications, like enemy distraction (through blinding) and bounding mine transport.
A Combine scanner. The default model is used for surveillance and scouting, while the shield scanner model has more military applications, like enemy distraction (through blinding) and bounding mine deployment.


{{note|Maps starting with ''d3_c17'' do not spawn regular scanners, but shield scanners.}}
{{note|Maps starting with ''d3_c17'' do not spawn regular scanners, but shield scanners.}}
Line 12: Line 12:


==Dedicated Console Variables==
==Dedicated Console Variables==
* '''g_debug_cscanner'''
: <?> ??? (Default: ?)
* '''sk_scanner_dmg_dive'''
: <integer> ??? (Default: 25)
* '''sk_scanner_health'''
* '''sk_scanner_health'''
: <integer> A scanner's spawn health
: <integer> A scanner's spawn health. (Default: 30)
* '''sk_scanner_dmg_dive'''
 
: <integer>


==Keyvalues==
==Keyvalues==

Revision as of 02:49, 1 October 2006

Template:Wrongtitle

Entity Description

Combine Scanner

A Combine scanner. The default model is used for surveillance and scouting, while the shield scanner model has more military applications, like enemy distraction (through blinding) and bounding mine deployment.

Note.pngNote:Maps starting with d3_c17 do not spawn regular scanners, but shield scanners.
Note.pngNote:NPC modders should consider condensing the ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers keyvalues 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

  • g_debug_cscanner
<?> ??? (Default: ?)
  • sk_scanner_dmg_dive
<integer> ??? (Default: 25)
  • sk_scanner_health
<integer> A scanner's spawn health. (Default: 30)


Keyvalues

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

Flags

This scanner moves faster and follows an npc_strider

Inputs

  • DisableSpotlight
  • InspectTargetPhoto <target_name_or_class>
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

  • OnPhotographPlayer
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)