|
|
@ -150,21 +150,9 @@ void SV_WaterMove( edict_t *ent ) |
|
|
|
if( flags & FL_INWATER ) |
|
|
|
if( flags & FL_INWATER ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// leave the water.
|
|
|
|
// leave the water.
|
|
|
|
switch( COM_RandomLong( 0, 3 )) |
|
|
|
const char *snd = SoundList_GetRandom( EntityWaterExit ); |
|
|
|
{ |
|
|
|
if( snd ) |
|
|
|
case 0: |
|
|
|
SV_StartSound( ent, CHAN_BODY, snd, 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ent->v.flags = flags & ~FL_INWATER; |
|
|
|
ent->v.flags = flags & ~FL_INWATER; |
|
|
|
} |
|
|
|
} |
|
|
@ -197,21 +185,9 @@ void SV_WaterMove( edict_t *ent ) |
|
|
|
if( watertype == CONTENTS_WATER ) |
|
|
|
if( watertype == CONTENTS_WATER ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// entering the water
|
|
|
|
// entering the water
|
|
|
|
switch( COM_RandomLong( 0, 3 )) |
|
|
|
const char *snd = SoundList_GetRandom( EntityWaterEnter ); |
|
|
|
{ |
|
|
|
if( snd ) |
|
|
|
case 0: |
|
|
|
SV_StartSound( ent, CHAN_BODY, snd, 1.0f, ATTN_NORM, 0, 100 ); |
|
|
|
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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ent->v.flags = flags | FL_INWATER; |
|
|
|
ent->v.flags = flags | FL_INWATER; |
|
|
|