|
|
|
@ -150,21 +150,9 @@ void SV_WaterMove( edict_t *ent )
@@ -150,21 +150,9 @@ void SV_WaterMove( edict_t *ent )
|
|
|
|
|
if( flags & FL_INWATER ) |
|
|
|
|
{ |
|
|
|
|
// leave the water.
|
|
|
|
|
switch( COM_RandomLong( 0, 3 )) |
|
|
|
|
{ |
|
|
|
|
case 0: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade1.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade2.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade3.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
case 3: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade4.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
const char *snd = SoundList_GetRandom( EntityWaterExit ); |
|
|
|
|
if( snd ) |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, snd, 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
|
|
|
|
|
ent->v.flags = flags & ~FL_INWATER; |
|
|
|
|
} |
|
|
|
@ -197,21 +185,9 @@ void SV_WaterMove( edict_t *ent )
@@ -197,21 +185,9 @@ void SV_WaterMove( edict_t *ent )
|
|
|
|
|
if( watertype == CONTENTS_WATER ) |
|
|
|
|
{ |
|
|
|
|
// entering the water
|
|
|
|
|
switch( COM_RandomLong( 0, 3 )) |
|
|
|
|
{ |
|
|
|
|
case 0: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade1.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade2.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade3.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
case 3: |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, "player/pl_wade4.wav", 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
const char *snd = SoundList_GetRandom( EntityWaterEnter ); |
|
|
|
|
if( snd ) |
|
|
|
|
SV_StartSound( ent, CHAN_BODY, snd, 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ent->v.flags = flags | FL_INWATER; |
|
|
|
|