if(self.sound_nexttime < time || self.sounds != 1)
{
self.sounds = 1;
- self.sound_nexttime = time + soundlength("vehicles/racer_move.wav");
+ self.sound_nexttime = time + 10.922667; //soundlength("vehicles/racer_move.wav");
sound (self, CHAN_VOICE, "vehicles/racer_move.wav", VOL_BASE, ATTN_NORM);
}
}
if(self.sound_nexttime < time || self.sounds != 0)
{
self.sounds = 0;
- self.sound_nexttime = time + soundlength("vehicles/racer_idle.wav");
+ self.sound_nexttime = time + 11.888604; //soundlength("vehicles/racer_idle.wav");
sound (self, CHAN_VOICE, "vehicles/racer_idle.wav", VOL_BASE, ATTN_NORM);
}
}
if(self.strength_finished < time)
{
//self.sounds = 2;
- self.strength_finished = time + soundlength("vehicles/racer_boost.wav");
+ self.strength_finished = time + 10.922667; //soundlength("vehicles/racer_boost.wav");
sound (self, CHAN_PLAYER, "vehicles/racer_boost.wav", VOL_BASE, ATTN_NORM);
}
}
if(self.sound_nexttime < time)
{
- self.sound_nexttime = time + soundlength("vehicles/raptor_fly.wav");
+ self.sound_nexttime = time + 7.955812; //soundlength("vehicles/raptor_fly.wav");
sound (self, CHAN_VOICE, "vehicles/raptor_fly.wav", VOL_BASE, ATTN_NORM);
}
if(fabs(ftmp - self.wait) > 0.2 || self.sound_nexttime < time)
{
- self.sound_nexttime = time + soundlength("vehicles/raptor_fly.wav");
+ self.sound_nexttime = time + 7.955812; //soundlength("vehicles/raptor_fly.wav");
sound (self, CHAN_VOICE, "vehicles/raptor_fly.wav", 1 - ftmp, ATTN_NORM );
sound (self, CHAN_PLAYER, "vehicles/raptor_speed.wav", ftmp, ATTN_NORM);
self.wait = ftmp;
if(player.BUTTON_JUMP && self.tur_head.wait < time)
{
sound (self, CHAN_VOICE, "vehicles/spiderbot_jump.wav", VOL_BASE, ATTN_NORM);
+ //dprint("spiderbot_jump:", ftos(soundlength("vehicles/spiderbot_jump.wav")), "\n");
self.delay = 0;
self.tur_head.wait = time + 2;
if(self.sound_nexttime < time || self.delay != 3)
{
self.delay = 3;
- self.sound_nexttime = time + soundlength("vehicles/spiderbot_idle.wav");
+ self.sound_nexttime = time + 6.486500; //soundlength("vehicles/spiderbot_idle.wav");
+ //dprint("spiderbot_idle:", ftos(soundlength("vehicles/spiderbot_idle.wav")), "\n");
sound (self, CHAN_VOICE, "vehicles/spiderbot_idle.wav", VOL_BASE, ATTN_NORM);
}
movelib_beak_simple(autocvar_g_vehicle_spiderbot_speed_stop);
if(self.sound_nexttime < time || self.delay != 1)
{
self.delay = 1;
- self.sound_nexttime = time + soundlength("vehicles/spiderbot_walk.wav");
+ self.sound_nexttime = time + 6.486500; //soundlength("vehicles/spiderbot_walk.wav");
sound (self, CHAN_VOICE, "vehicles/spiderbot_walk.wav", VOL_BASE, ATTN_NORM);
+ //dprint("spiderbot_walk:", ftos(soundlength("vehicles/spiderbot_walk.wav")), "\n");
}
}
if(self.sound_nexttime < time || self.delay != 2)
{
self.delay = 2;
- self.sound_nexttime = time + soundlength("vehicles/spiderbot_strafe.wav");
+ self.sound_nexttime = time + 6.486500; //soundlength("vehicles/spiderbot_strafe.wav");
sound (self, CHAN_VOICE, "vehicles/spiderbot_strafe.wav", VOL_BASE, ATTN_NORM);
+ //dprint("spiderbot_strafe:", ftos(soundlength("vehicles/spiderbot_strafe.wav")), "\n");
}
}
}