Garry's Mod Wiki

Garry's Mod Wiki

  GM:OnDamagedByExplosion( Player ply, CTakeDamageInfo dmginfo )

Description

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

Arguments

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

Example

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.

This is an example of disabling explosion effects.

function GAMEMODE:OnDamagedByExplosion() end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...