npc_securitybot

From Valve Developer Community
Jump to navigation Jump to search
List of SE1 entities
Npc Securitybot.png

npc_securitybot is a model entity available in SiN Episodes SiN Episodes. It is a hostile flying robot NPC shooting pulse projectiles at the enemies. Similar to the cut npc_mortarsynth from Half-Life 2.

Note.pngNote: Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Entity description

This NPC uses air nodes to navigate. If alerted with no enemies, it starts patrolling the area. Before shooting at the enemy it flies closer and moves away if this enemy tries to get closer. Has its own projectile entity (name). The implementation of the enemy is similar to the cut npc_mortarsynth entity and shares some functionality of the npc_cscanner, both from Half-Life 2. This entity has no unique Outputs and is used in the official campaign.

Security Bot shooting at the Dock Worker.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
voice group name (voicegroupname) <choices>
Which voice the NPC should use to speak his sentences. (Does not work):
  • : None
  • _A: A
  • _B: B
  • _C: C
  • _D: D
  • _ELITE: Elite
Invulnerable (invulnerable) <integer>
Invulnerable or not.
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.

Inputs

DeployMine
Drop landmine. (if carrying one)
EquipMine
Equip with landmine
InspectTargetPhoto
Tells the scanner to photograph the given entity, named by classname or by target name. !activator or !player works here also.
InputSetFlightSpeed
Sets the flight speed of the scanner.
InputShouldInspect
Set whether should inspect or not.
SetFollowTarget
Set target to follow until told otherwise.
ClearFollowTarget
Stop following our target.
SetDistanceOverride
Override the distance the scanner will attempt to keep between inspection targets and itself.
Note.pngNote: These inputs do work for this NPC, but some things like DeployMine may cause some errors because of the missing combine_mine model in game.