npc_heardanger

From Valve Developer Community
Jump to navigation Jump to search

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>
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.