Npc metropolice: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 81: Line 81:
: Fires when the player is hit by a stunstick by this NPC.
: Fires when the player is hit by a stunstick by this NPC.


[[Category:Entities]]
[[Category:Entities]][[Category:NPCs]]

Revision as of 06:24, 15 July 2005

Template:Wrongtitle

Entity Description

Metro Police

With the Efficient flag (16) set, the policeman's model is set to Police_Cheaple.mdl

Keyvalues

  • waitingtorappel
<boolean> If set, this NPC spawns suspended in air and awaits a BeginRappel input. It will then spawn a zipline and slide down. When it hits the ground, NPC will cut away the line and try to move forward a few feet to make room for the next NPC. The NPC will not attempt to clear its landing space if it cannot do so by taking a few steps forward
  • additionalequipment
<choices>
Literal Value Description
weapon_pistol Pistol
weapon_smg1 SMG1
weapon_stunstick Stun Stick
weapon_shotgun Shotgun
0 Nothing
  • manhacks
<integer> Number of Manhacks
  • weapondrawn
<boolean> Pistol starts active

Flags

  • 131072 : Simple cops
  • 524288 : Always stitch
  • 1048576 : No chatter
  • 2097152 : Arrest enemies
  • 4194304 : No far stitching
  • 8388608 : Prevent manhack toss
  • 16777216: Allowed to respond to thrown objects
  • 33554432: Mid-range attacks (halfway between normal + long-range)

Inputs

  • BeginRappel
  • EnableManhackToss
Enables manhack toss (which had been disabled by the spawnflag)
  • SetPoliceGoal <string>
Causes the NPC to police the area defined by an ai_goal_police
  • ActivateBaton
Set the baton to active

Outputs

  • OnRappelTouchdown
Fires when done rappeling
  • OnStunnedPlayer
Fires when the player is hit by a stunstick by this NPC.