From 0c50e436634c89a2481f5fa079fdef5c623e008e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 8 Sep 2022 04:15:51 +0300 Subject: [PATCH] engine: client: enable sound for TE_TAREXPLOSION, use same sound parameters as GoldSrc --- engine/client/cl_tent.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index 36ea6003..8158ce2c 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -1974,6 +1974,9 @@ void CL_ParseTempEntity( sizebuf_t *msg ) pos[1] = MSG_ReadCoord( &buf ); pos[2] = MSG_ReadCoord( &buf ); R_BlobExplosion( pos ); + + hSound = S_RegisterSound( cl_explode_sounds[0] ); + S_StartSound( pos, -1, CHAN_AUTO, hSound, VOL_NORM, 1.0f, PITCH_NORM, 0 ); break; case TE_SMOKE: pos[0] = MSG_ReadCoord( &buf ); @@ -2027,7 +2030,7 @@ void CL_ParseTempEntity( sizebuf_t *msg ) dl->decay = 300; hSound = S_RegisterSound( cl_explode_sounds[0] ); - S_StartSound( pos, 0, CHAN_STATIC, hSound, VOL_NORM, 0.6f, PITCH_NORM, 0 ); + S_StartSound( pos, -1, CHAN_AUTO, hSound, VOL_NORM, 0.6f, PITCH_NORM, 0 ); break; case TE_BSPDECAL: case TE_DECAL: