Npc heardanger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(I've checked and the only game this entitiy is included in is Counter-Strike: Global Offensive. Also did some cleanup and added some KV + IO from the FGD.)
Line 1: Line 1:
{{Stub}}
{{Stub}}
{{Cleanup}}
{{this is a|point entity|name=npc_heardanger|game=Counter-Strike: Global Offensive}}
{{this is a|point entity|name=npc_headgear}}{{confirm}}
==FGD Information==
== FGD Information ==
A generic [[NPC]] entity that hears and reports 'danger' and is not preverved or round restart.
A generic [[NPC]] enity that hears and reports 'danger' and is not preverved or round restart.
Danger sounds consist of gunshots, player sounds, bullet impacts, nearby vehicles and andything else that gives of a danger sound.
Danger sounds consist of gunshot, player sounds, bullet impacts, nearby vehicles and andything else that.
 
Gives of a danger sound.
==Keyvalues==
{{KV Targetname}}
{{KV|Model|intn=model|studio|The [[model]] this entity should appear as.}}
==Inputs==
{{IO|Kill|Removes this entity from the world}}
==Outputs==
{{IO|OnHearWorld|Fired when this NPC hears a sound (other than combat or the player).}}
{{IO|OnHearPlayer|Fired when this NPC hears the player.}}
{{IO|OnHearCombat|Fired when this NPC hears combat sounds.}}

Revision as of 09:51, 11 March 2025

Stub

This article or section is a stub. You can help by expanding it.

npc_heardanger is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

FGD Information

A generic NPC entity that hears and reports 'danger' and is not preverved or round restart. Danger sounds consist of gunshots, player sounds, bullet impacts, nearby vehicles and andything else that gives of a danger sound.

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

Model (model) <model path>
The model this entity should appear as.

Inputs

Kill
Removes this entity from the world

Outputs

OnHearWorld
Fired when this NPC hears a sound (other than combat or the player).
OnHearPlayer
Fired when this NPC hears the player.
OnHearCombat
Fired when this NPC hears combat sounds.