|
|
@ -1198,23 +1198,26 @@ void CBasePlayer::WaterMove() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// make bubbles
|
|
|
|
// make bubbles
|
|
|
|
air = (int)( pev->air_finished - gpGlobals->time ); |
|
|
|
if( pev->waterlevel == 3 ) |
|
|
|
if( !RANDOM_LONG( 0, 0x1f ) && RANDOM_LONG( 0, AIRTIME - 1 ) >= air ) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
switch( RANDOM_LONG( 0, 3 ) ) |
|
|
|
air = (int)( pev->air_finished - gpGlobals->time ); |
|
|
|
|
|
|
|
if( !RANDOM_LONG( 0, 0x1f ) && RANDOM_LONG( 0, AIRTIME - 1 ) >= air ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case 0: |
|
|
|
switch( RANDOM_LONG( 0, 3 ) ) |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim1.wav", 0.8, ATTN_NORM ); |
|
|
|
{ |
|
|
|
break; |
|
|
|
case 0: |
|
|
|
case 1: |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim1.wav", 0.8, ATTN_NORM ); |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim2.wav", 0.8, ATTN_NORM ); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
case 2: |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim2.wav", 0.8, ATTN_NORM ); |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim3.wav", 0.8, ATTN_NORM ); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
case 3: |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim3.wav", 0.8, ATTN_NORM ); |
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim4.wav", 0.8, ATTN_NORM ); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
|
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim4.wav", 0.8, ATTN_NORM ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|