CNPC_CScanner
(Redirected from Npc cscanner)
Jump to navigation
Jump to search
Code classes:
CNPC_CScanner
is a code class in the Half-Life 2 series.
Classnames:
npc_cscanner
- Scanners.
Maps with a name starting with the string d3_c17
will automatically use the shield scanner model. Shield scanners were not implemented in a proper way because they came along at a late point in development. See npc_clawscanner
for the alternative Valve used later on in the series.
To do: Scanners are known to take pictures of other dead scanners, but how they recognize them is currently a mystery. It could be based on AI-sounds.
Flags[edit | edit source]
- 65536:
No Dynamic Light- Not used in code.
- 131072: Strider Scout Scanner - Makes scanner move at 150 units/second (as opposed to 250), makes them take pictures faster, emits a danger AI sound when taking pictures and tells
npc_strider
s where the enemy in the picture is.
Keyvalues[edit | edit source]
- Should inspect
(ShouldInspect)
<boolean>
- Allows the scanner to chase and inspect enemies.
- Only Inspect Players
(OnlyInspectPlayers)
<boolean>
- Makes the scanner only inspect players.
- Never Inspect Players
(NeverInspectPlayers)
<boolean>
- Makes the scanner never inspect players.
- Spotlight Length
(spotlightlength)
<float>
- Maximum length of the spotlight.
Spotlight Width(spotlightwidth)
<float>
- No effect.
- Spotlight Disabled
(spotlightdisabled)
<boolean>
- Disables the spotlight.
Inputs[edit | edit source]
- DisableSpotlight
- Sets Spotlight Disabled to true. Cannot be undone.
- InspectTargetPhoto
<target_name_or_class>
- Tells the scanner to photograph an entity of the specified name or class.
!activator
and!player
work here, as they normally do. - InspectTargetSpotlight
<target_name_or_class>
- Tells the scanner to shine its light on the given entity.
- InputShouldInspect
<boolean>
- Sets Should inspect.
- SetFollowTarget
<target_name_or_class>
- Tells the scanner to simply follow the given entity until it physically can't or is told otherwise.
- ClearFollowTarget
- Tells the scanner to stop following whatever it's following (whether it found that entity through SetFollowTarget or otherwise).
- EquipMine
- Gives the scanner a hopper mine. Intended to be used with the shield model only! City scanners lack the desired
claw
attachment point, so the mine simply floats under it oddly. - DeployMine
- Makes the scanner drop a mine parented to it (multiple can be attached at once, only one can drop at a time).
Outputs[edit | edit source]
- OnPhotographPlayer
- Fires when the scanner photographs a player.
!activator
is that player. - OnPhotographNPC
- Fires when the scanner photographs an NPC. Activator is that NPC.