|
|
|
@ -768,9 +768,11 @@ void CFuncTrain::Next( void )
@@ -768,9 +768,11 @@ void CFuncTrain::Next( void )
|
|
|
|
|
// use CHAN_STATIC for their movement sounds to prevent sound field problems.
|
|
|
|
|
// this is not a hack or temporary fix, this is how things should be. (sjb).
|
|
|
|
|
if( pev->noiseMovement ) |
|
|
|
|
{ |
|
|
|
|
STOP_SOUND( edict(), CHAN_STATIC, (char*)STRING( pev->noiseMovement ) ); |
|
|
|
|
if ( pev->noiseMovement ) |
|
|
|
|
EMIT_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseMovement ), m_volume, ATTN_NORM ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ClearBits( pev->effects, EF_NOINTERP ); |
|
|
|
|
SetMoveDone( &CFuncTrain::Wait ); |
|
|
|
|
LinearMove( pTarg->pev->origin - ( pev->mins + pev->maxs )* 0.5, pev->speed ); |
|
|
|
|