Npc enemyfinder: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Robot: fixing template case.)
Line 55: Line 55:
*{{o basenpc}}
*{{o basenpc}}


* '''{{ep1 add|OnLostEnemies}}'''
* '''{{EP1 add|OnLostEnemies}}'''
: Fires when the enemy finder has no enemies.
: Fires when the enemy finder has no enemies.


* '''{{ep1 add|OnAcquireEnemies}}'''
* '''{{EP1 add|OnAcquireEnemies}}'''
: Fires when the enemy finder acquires enemies.
: Fires when the enemy finder acquires enemies.


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

Revision as of 19:18, 19 January 2009

Template:Wrongtitle

Entity description

This NPC is invisible, immobile, and does not cause collisions. Its sole purpose is to notify the squad mates whenever an enemy comes into the its view.

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

Keyvalues

  • FieldOfView
<string> How far to look (1.0 = straight ahead, 0.0 = +/- 90 degrees, -1.0 = all directions)
  • MinSearchDist
<integer>
  • MaxSearchDist
<integer>
  • freepass_timetotrigger
<float> Amount of time an enemy is hidden after which a 'free pass' on reaquire is granted
  • freepass_duration
<float> After granted 'free pass', the amount of time a target is allowed before reaquire
  • freepass_movetolerance
<float> After granted 'free pass', the distance the target is allowed to move before reaquire
  • freepass_refillrate
<float> After free pass begins expiring, how much the time the target gets back for every second they hide again
  • freepass_peektime
<float> How long targets in cover are allowed to peek without penalty
  • StartOn
<boolean>

Flags

Inputs

  • TurnOn
Turn on: Look for enemies
  • TurnOff
Turn off: Stop looking for enemies

Outputs

  • OnLostEnemies (in all games since Half-Life 2: Episode One)
Fires when the enemy finder has no enemies.
  • OnAcquireEnemies (in all games since Half-Life 2: Episode One)
Fires when the enemy finder acquires enemies.