From ed8c40349d1f1e3e5aaa3ca0941aa48cadc8f85c Mon Sep 17 00:00:00 2001 From: Jaime Moreira Date: Tue, 25 Oct 2022 22:08:34 -0300 Subject: [PATCH] Underwater impacts of the Phalanx sound muffled --- src/g_weapon.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/g_weapon.c b/src/g_weapon.c index 6be21ea..97f36c9 100644 --- a/src/g_weapon.c +++ b/src/g_weapon.c @@ -1483,7 +1483,16 @@ plasma_touch(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf) ent->dmg_radius, MOD_PHALANX); gi.WriteByte(svc_temp_entity); - gi.WriteByte(TE_PLASMA_EXPLOSION); + + if (ent->waterlevel) + { + gi.WriteByte(TE_ROCKET_EXPLOSION_WATER); + } + else + { + gi.WriteByte(TE_PLASMA_EXPLOSION); + } + gi.WritePosition(origin); gi.multicast(ent->s.origin, MULTICAST_PVS);