Soundent: Difference between revisions
Jump to navigation
Jump to search
Warning: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.
(-codeonly) |
(Added that if the entity gets created after its removal quickly enough then it wouldn't crash) |
||
Line 3: | Line 3: | ||
{{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|point entity|name=soundent}} It's created automatically and manages sounds that AI hears | ||
{{warning|Killing this entity | {{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}} |
Revision as of 13:52, 4 September 2024

![]() |
---|
CSoundEnt |
![]() |
soundent
is a point entity available in all Source games. It's created automatically and manages sounds that AI hears

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