Garry's Mod Wiki

Revision Difference

Enums/CHAN#516395

<cat>enum</cat> <enum> <description>Enumerations used by <page>Global.EmitSound</page> and <page>sound.Add</page>.</description> <items> <item key="CHAN_REPLACE" value="-">1|Used when playing sounds through console commands.</item>⤶ <item key="CHAN_AUTO" value="0">Automatic channel</item>⤶ <item key="CHAN_WEAPON" value="1">Channel for weapon sounds</item>⤶ <item key="CHAN_VOICE" value="2">Channel for NPC voices</item>⤶ <item key="CHAN_ITEM" value="3">Channel for items ( Health kits, etc )</item>⤶ <item key="CHAN_BODY" value="4">Clothing, ragdoll impacts, footsteps, knocking/pounding/punching etc.</item>⤶ <item key="CHAN_STREAM" value="5">Stream channel from the static or dynamic area</item>⤶ <item key="CHAN_STATIC" value="6">A constant/background sound that doesn't require any reaction.</item>⤶ <item key="CHAN_VOICE2" value="7">TF2s Announcer dialogue channel</item>⤶ <item key="CHAN_VOICE_BASE" value="8">Channel for network voice data</item>⤶ <item key="CHAN_USER_BASE" value="1">36</item>⤶ <item key="CHAN_REPLACE" value="-1|Used when playing sounds through console commands."></item>⤶ <item key="CHAN_AUTO" value="0|Automatic channel"></item>⤶ <item key="CHAN_WEAPON" value="1|Channel for weapon sounds"></item>⤶ <item key="CHAN_VOICE" value="2|Channel for NPC voices"></item>⤶ <item key="CHAN_ITEM" value="3|Channel for items ( Health kits, etc )"></item>⤶ <item key="CHAN_BODY" value="4|Clothing, ragdoll impacts, footsteps, knocking/pounding/punching etc."></item>⤶ <item key="CHAN_STREAM" value="5|Stream channel from the static or dynamic area"></item>⤶ <item key="CHAN_STATIC" value="6|A constant/background sound that doesn't require any reaction."></item>⤶ <item key="CHAN_VOICE2" value="7|TF2s Announcer dialogue channel"></item>⤶ <item key="CHAN_VOICE_BASE" value="8|Channel for network voice data"></item>⤶ <item key="CHAN_USER_BASE" value="136"></item>⤶ </items> </enum>