This article's documentation is for anything that uses the Source engine. Click here for more information.

Soundent: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added that if the entity gets created after its removal quickly enough then it wouldn't crash)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
{{stub}}
{{LanguageBar}}
{{TabsBar|main=gs|base=soundent}}
{{Ent not in fgd|codeonly=1}}
{{Ent not in fgd|codeonly=1}}
{{Preserved entity}}
{{CD|CSoundEnt|file1=soundent.cpp}}
{{CD|CSoundEnt|file1=soundent.cpp}}
{{this is a|point entity|name=soundent}} It's created automatically and manages sounds that AI hears
{{This is a|logical entity|name=soundent}} It's created automatically and manages sounds that AI hears
{{warning|Killing this entity will crash the game unless the entity gets created again through the {{code|ent_create}} command or a save gets made then loaded quickly before a crash occurs.}}
{{warning|Killing this entity will crash the game unless the entity gets created again through the {{code|ent_create}} command or a save gets made then loaded quickly before a crash occurs.}}
==ConVars==
 
== ConVars ==
{{varcom|start}}
{{varcom|start}}
{{varcom|displaysoundlist|0||Prints and visualizes sounds added/removed info. 1 {{=}} all sound, 2 {{=}} danger sounds}}
{{varcom|displaysoundlist|0||Prints and visualizes sounds added/removed info. 1 {{=}} all sound, 2 {{=}} danger sounds}}

Latest revision as of 08:21, 12 May 2025

Stub

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

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Recycle-warning.png
This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Alien SwarmAlien Swarm: Reactive DropPortal 2Counter-Strike: Global Offensive
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CSoundEnt
CPointEntity
CBaseEntity
C++ soundent.cpp

soundent is a logical entity available in all Source Source games. It's created automatically and manages sounds that AI hears

Warning.pngWarning:Killing this entity will crash the game unless the entity gets created again through the ent_create command or a save gets made then loaded quickly before a crash occurs.

ConVars

Cvar/Command Parameters or default value Descriptor Effect
displaysoundlist 0 Prints and visualizes sounds added/removed info. 1 = all sound, 2 = danger sounds

See Also