Garry's Mod Wiki

Revision Difference

Enums/CHAN#516119

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