Garry's Mod Wiki

SOUND

Description

Enumerations used by sound.EmitHint.

Values

SOUND_NONE0
SOUND_COMBAT1
SOUND_WORLD2
SOUND_PLAYER4
SOUND_DANGER8
SOUND_BULLET_IMPACT16
SOUND_CARCASS32Considered a scent.
SOUND_MEAT64Considered a scent.
SOUND_GARBAGE128Considered a scent.
SOUND_THUMPER256Keeps certain creatures at bay, such as Antlions.
SOUND_BUGBAIT512Gets the antlion's attention.
SOUND_PHYSICS_DANGER1024
SOUND_DANGER_SNIPERONLY2048Only scares the sniper NPC.
SOUND_MOVE_AWAY4096
SOUND_PLAYER_VEHICLE8192
SOUND_READINESS_LOW16384Changes listener's readiness (Player Companion only)
SOUND_READINESS_MEDIUM32768
SOUND_READINESS_HIGH65536
SOUND_CONTEXT_FROM_SNIPER1048576Additional context for SOUND_DANGER
SOUND_CONTEXT_GUNFIRE2097152Added to SOUND_COMBAT
SOUND_CONTEXT_MORTAR4194304Explosion going to happen here.
SOUND_CONTEXT_COMBINE_ONLY8388608Only combine can hear sounds marked this way.
SOUND_CONTEXT_REACT_TO_SOURCE16777216React to sound source's origin, not sound's location
SOUND_CONTEXT_EXPLOSION33554432Context added to SOUND_COMBAT, usually.
SOUND_CONTEXT_EXCLUDE_COMBINE67108864Combine do NOT hear this
SOUND_CONTEXT_DANGER_APPROACH134217728Treat as a normal danger sound if you see the source, otherwise turn to face source.
SOUND_CONTEXT_ALLIES_ONLY268435456Only player allies can hear this sound.
SOUND_CONTEXT_PLAYER_VEHICLE536870912HACK: need this because we're not treating the SOUND_xxx values as true bit values! See switch in OnListened.