Ai citizen response system: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(42 intermediate revisions by 24 users not shown)
Line 1: Line 1:
ai_citizen_response_system
{{LanguageBar}}
{{CD|CCitizenResponseSystem|file1=npc_citizen17.cpp}}
{{this is a|logical entity|name=ai_citizen_response_system|game=Half-Life 2 series}}
If placed in the level, it will manage the responses of [[Npc_citizen|citizens]] to player's actions. Only one should be placed in the map ever.


If placed in the level, will manage citizens responses to player's actions.
This entity is in the [[FGD]] for Alien Swarm, but is removed from games code.


KEYS
{{stray ent|{{portal|4|}}}}


Name targetname <target_source> The name that other entities refer to this entity by.
==Keyvalues==
{{KV Targetname}}


==Inputs==
{{I|ResponseVitalNPC|Fire the <code>CR_VITALNPC_DIED</code> response.}}


INPUTS
[[Category:AI]]
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
FireUser1 Causes this entity's OnUser1 output to be fired.
 
FireUser2 Causes this entity's OnUser2 output to be fired.
 
FireUser3 Causes this entity's OnUser3 output to be fired.
 
FireUser4 Causes this entity's OnUser4 output to be fired.
 
ResponseVitalNPC Fire the VitalNPC Died response.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Latest revision as of 15:13, 7 June 2025

English (en)Translate (Translate)
C++ Class hierarchy
CCitizenResponseSystem
CBaseEntity
C++ npc_citizen17.cpp

ai_citizen_response_system is a logical entity available in Half-Life 2 series Half-Life 2 series. If placed in the level, it will manage the responses of citizens to player's actions. Only one should be placed in the map ever.

This entity is in the FGD for Alien Swarm, but is removed from games code.

Note.pngNote:This entity is also in the code for Portal Portal. Its functionality is not guaranteed.


Keyvalues

Name (targetname) <string>[ Edit ]
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

Inputs

ResponseVitalNPC
Fire the CR_VITALNPC_DIED response.