mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-15 15:42:27 +00:00
Add gasp sfx when exiting water, but not with bubble shield
This commit is contained in:
parent
a149fa9db9
commit
a617563bd8
1 changed files with 10 additions and 1 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
|
@ -3059,7 +3059,16 @@ void P_MobjCheckWater(mobj_t *mobj)
|
|||
return;
|
||||
|
||||
// The rest of this code only executes on a water state change.
|
||||
if (waterwasnotset || !!(mobj->eflags & MFE_UNDERWATER) == wasinwater)
|
||||
if (!!(mobj->eflags & MFE_UNDERWATER) == wasinwater)
|
||||
return;
|
||||
|
||||
if (p && !p->waterskip &&
|
||||
p->curshield != KSHIELD_BUBBLE && wasinwater)
|
||||
{
|
||||
S_StartSound(mobj, sfx_gasp);
|
||||
}
|
||||
|
||||
if (waterwasnotset)
|
||||
return;
|
||||
|
||||
if ((p) // Players
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue