npc_cscanner
Jump to navigation
Jump to search
Note:Maps starting with d3_c17 do not spawn regular scanners, but shield scanners. See npc_clawscanner for the Episode One alternative.
Note:NPC modders should consider condensing the ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers keyvalues into one keyvalue, but still leave the old ones for backwards compatibility.
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
npc_cscanner
is a point entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch.
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. When the Scanner photographs a character, that character's location is reported to nearby Combine forces.
- This is a flying NPC that uses info_node_air, info_node_air_hint or path_tracks for AI navigation.



Dedicated Console Variables
- g_debug_cscanner <bool>
- (Default: 0).
- sk_scanner_dmg_dive <integer>
- When this scanner hits another entity that isn't a scanner, it will damage the entity by this value (Default: 25).
- sk_scanner_health <integer>
- A scanner's spawn health (Default: 30).
Keyvalues
- Spotlight length (SpotlightLength) <integer>
- Length of the scanner's spotlight.
- Spotlight width (SpotlightWidth) <integer>
- Width of the scanner's spotlight.
- Spotlight disabled (SpotlightDisabled) <boolean>
- Start with the scanner's spotlight turned off.
- Should inspect (ShouldInspect) <boolean>
- Only Inspect Players (OnlyInspectPlayers) <boolean>
- The scanner will inspect the player and ignore other NPCs.
- Never Inspect Players (NeverInspectPlayers) <boolean>
- The scanner will ignore the player.
Flags
- 65536 : No Dynamic Light
- 131072 : Strider Scout Scanner
- This scanner moves slower, can attack faster, scares ally npcs, and updates npc_strider when photographing an enemy.
Inputs
- DisableSpotlight
- Disables the Spotlight on top of the scanner when activated.
- 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.
- InputShouldInspect <boolean>
- 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
- OnFoundPlayer
- Fired any time the scanner finds the player (!activator is the player.).
- OnPhotographPlayer
- Fired any time the scanner takes a picture of the player (!activator is the player.).
- OnPhotographNPC
- Fired any time the scanner takes a picture of an NPC (!activator is the NPC).
Categories:
- TODO rewrite lang to LanguageBar
- Half-Life 2 entities
- Half-Life 2 point entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One point entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two point entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch point entities
- Flying NPCs
- NPC entities
- Half-Life 2 NPCs