Browse Source

engine: client: enable sound for TE_TAREXPLOSION, use same sound parameters as GoldSrc

pull/2/head
Alibek Omarov 2 years ago
parent
commit
0c50e43663
  1. 5
      engine/client/cl_tent.c

5
engine/client/cl_tent.c

@ -1974,6 +1974,9 @@ void CL_ParseTempEntity( sizebuf_t *msg ) @@ -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 ) @@ -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:

Loading…
Cancel
Save