Underwater impacts of the Phalanx sound muffled

This commit is contained in:
Jaime Moreira 2022-10-25 22:08:34 -03:00
parent c151fffd3a
commit ed8c40349d
1 changed files with 10 additions and 1 deletions

View File

@ -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);