Garry's Mod Wiki


GM:OnDamagedByExplosion( Player ply, CTakeDamageInfo dmginfo )


Called when a player has been hurt by an explosion. Override to disable default sound effect.


1 Player ply
Player who has been hurt
2 CTakeDamageInfo dmginfo
Damage info from explsion


Disables the high pitched ringing sound effect.

Note that this hook does not have a return value, and instead by default it calls Player:SetDSP( 35, false ) in the base gamemode.

hook.Add( "OnDamagedByExplosion", "DisableSound", function() return true end )

Page Links

Special Pages



Render Time: 40ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 11
Render Body 0
Render Sidebar 17