Garry's Mod Wiki

Revision Difference

Enums/CHAN#516173

<cat>enum</cat> <enumeration> <description>Enumerations used by <page>Global.EmitSound</page> and <page>sound.Add</page>.</description> <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 ⤶ <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> }}