Npc combine camera: 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 (→Outputs)  | 
				||
| Line 47: | Line 47: | ||
: Fired when the player is spotted within the inner radius  | : Fired when the player is spotted within the inner radius  | ||
* '''OnFoundEnemy'''  | * '''OnFoundEnemy'''  | ||
:   | : Fired when a non-player enemy is spotted within the inner radius.  | ||
[[Category:Entities]] [[Category:NPCs]]  | [[Category:Entities]] [[Category:NPCs]]  | ||
Revision as of 17:54, 17 August 2005
Entity Description
Keyvalues
- Template:Kv basenpc
 - innerradius
 
- <integer> The camera will only lock onto enemies that are within the inner radius.
 
- outerradius
 
- <integer> The camera will flash amber when enemies are within the outer radius, but outside the inner radius.
 
- minhealthdmg
 
- <integer> Min req'd damage for hurting camera
 
- defaulttarget
 
- <target_destination> The default target is the entity that the camera follows when it has no other target to track.
 
Flags
- 1 : Wait Till Seen
 - 2 : Gag (No IDLE sounds until angry)
 - 4 : Fall to ground (unchecked means *teleport* to ground)
 - 8 : Drop Healthkit
 - 16 : Efficient - Don't acquire enemies or avoid obstacles
 - 32 : Always Become Angry On New Enemy
 - 64 : Ignore Enemies (Scripted Targets Only)
 - 128 : Start Inactive
 - 256 : Long Visibility/Shoot
 - 512 : Fade Corpse
 - 1024 : Think outside PVS
 - 2048 : Template NPC (will not spawn, used by npc_template_maker but not point_template)
 - 4096 : Do Alternate collision for this NPC (player avoidance)
 - 8192 : Don't drop weapons
 
Inputs
- Disable
 
- Disables the camera. If open, the camera closes.
 
- Enable
 
- Enables the camera. If closed, the camera opens.
 
- Toggle
 
- Toggle - If open, close. If closed, open.
 
- SetDefaultTargetEntity <target_destination>
 
- Sets the entity for the camera to track when it has nothing better to track, by name.
 
- SetTargetEntity <target_destination>
 
- Sets the entity for the camera to track now, by name.
 
- SetAngry
 
- Causes the camera to become angry as if it has seen something to get angry about.
 
- SetIdle
 
- Causes the camera to calm down if it is angry.
 
Outputs
- OnFoundPlayer
 
- Fired when the player is spotted within the inner radius
 
- OnFoundEnemy
 
- Fired when a non-player enemy is spotted within the inner radius.
 
