diff options
Diffstat (limited to 'src/game/g_trigger.c')
-rw-r--r-- | src/game/g_trigger.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/game/g_trigger.c b/src/game/g_trigger.c index f9472e0e..2b5b25af 100644 --- a/src/game/g_trigger.c +++ b/src/game/g_trigger.c @@ -217,9 +217,6 @@ void SP_trigger_push( gentity_t *self ) // unlike other triggers, we need to send this one to the client self->r.svFlags &= ~SVF_NOCLIENT; - // make sure the client precaches this sound - G_SoundIndex( "sound/world/jumppad.wav" ); - self->s.eType = ET_PUSH_TRIGGER; self->touch = trigger_push_touch; self->think = AimAtTarget; @@ -238,21 +235,11 @@ void Use_target_push( gentity_t *self, gentity_t *other, gentity_t *activator ) VectorCopy( self->s.origin2, activator->client->ps.velocity ); - if( !( self->spawnflags & 2 ) ) - { - // play fly sound every 1.5 seconds - if( activator->fly_sound_debounce_time < level.time ) - { - activator->fly_sound_debounce_time = level.time + 1500; - G_Sound( activator, CHAN_AUTO, self->noise_index ); - } - } } -/*QUAKED target_push (.5 .5 .5) (-8 -8 -8) (8 8 8) bouncepad +/*QUAKED target_push (.5 .5 .5) (-8 -8 -8) (8 8 8) Pushes the activator in the direction.of angle, or towards a target apex. "speed" defaults to 1000 -if "bouncepad", play bounce noise instead of windfly */ void SP_target_push( gentity_t *self ) { @@ -262,11 +249,6 @@ void SP_target_push( gentity_t *self ) G_SetMovedir( self->s.angles, self->s.origin2 ); VectorScale( self->s.origin2, self->speed, self->s.origin2 ); - if( self->spawnflags & 1 ) - self->noise_index = G_SoundIndex( "sound/world/jumppad.wav" ); - else - self->noise_index = G_SoundIndex( "sound/misc/windfly.wav" ); - if( self->target ) { VectorCopy( self->s.origin, self->r.absmin ); |