Ai citizen response system: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Ai citizen response system/en to Ai citizen response system without leaving a redirect: Move en subpage to basepage)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{this is a|point entity|name=ai_citizen_response_system|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}}{{langsp}}
{{CD|CCitizenResponseSystem|file1=npc_citizen17.cpp}}
<!-- When this page is updated to {{langsp}} or  instead of , please move {{this is a}} to the base page, as it is automatically translated. -->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.
{{this is a|point entity|name=ai_citizen_response_system|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}}
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.


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


{{stray ent|{{portal|4|}}}}
{{stray ent|{{portal|4|}}}}
{{code class|CCitizenResponseSystem|npc_citizen17.cpp}}


==Keyvalues==
==Keyvalues==
{{KV BaseEntity|base=1}}
{{KV Targetname}}


==Inputs==
==Inputs==
{{IO|ResponseVitalNPC|Fire the <code>CR_VITALNPC_DIED</code> response.}}
{{IO|ResponseVitalNPC|Fire the <code>CR_VITALNPC_DIED</code> response.}}
{{I BaseEntity|base=1|prel4d=1}}
==Outputs==
{{O BaseEntity}}


[[Category:AI]]
[[Category:AI]]

Revision as of 05:06, 14 August 2024

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

ai_citizen_response_system is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch. 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.