Npc cscanner: Difference between revisions
Jump to navigation
Jump to search
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
mNo edit summary |
m (→Inputs: Fixed inputs) |
||
Line 45: | Line 45: | ||
* '''DisableSpotlight''' | * '''DisableSpotlight''' | ||
* '''InspectTargetPhoto < | * '''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. | : Tells the scanner to photograph the given entity, named by classname or by target name. !activator or !player works here also. | ||
* '''InspectTargetSpotlight < | * '''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. | : 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 | : Sets the flight speed of the scanner | ||
* '''InputShouldInspect < | * '''InputShouldInspect <[[boolean]]>''' | ||
: Set whether should inspect or not | : Set whether should inspect or not | ||
* '''SetFollowTarget < | * '''SetFollowTarget <target_name_or_class>''' | ||
: Set target to follow until told otherwise | : Set target to follow until told otherwise | ||
Revision as of 17:35, 6 April 2006
Entity Description
NPC modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility.

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 <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
- OnPhotographPlayer
- Fired any time the scanner takes a picture of the player.
- OnPhotographNPC
- Fired any time the scanner takes a picture of an NPC.