player = self;
raptor = self.vehicle;
self = raptor;
-
+
/*
ftmp = vlen(self.velocity);
if(ftmp > autocvar_g_vehicle_raptor_speed_forward)
ftmp = 1;
else
ftmp = ftmp / autocvar_g_vehicle_raptor_speed_forward;
- */
+ */
+
if(self.sound_nexttime < time)
{
self.sound_nexttime = time + 7.955812;
- //dprint("LEN:", ftos(soundlength("vehicles/raptor_fly.wav")), "\n");
- //sound (self, CHAN_VOICE, "vehicles/raptor_fly.wav", 1 - ftmp, ATTN_NORM );
- sound (self, CHAN_TRIGGER, "vehicles/raptor_speed.wav", VOL_VEHICLEENGINE, ATTN_NORM);
- //self.wait = ftmp;
- }
+ //sound (self.tur_head, CHAN_TRIGGER, "vehicles/raptor_fly.wav", 1 - ftmp, ATTN_NORM );
+ sound (self, CHAN_TRIGGER, "vehicles/raptor_speed.wav", 1, ATTN_NORM);
+ self.wait = ftmp;
+ }
/*
else if(fabs(ftmp - self.wait) > 0.2)
{
- sound (self, CHAN_VOICE, "", 1 - ftmp, ATTN_NORM );
- sound (self, CHAN_PLAYER, "", ftmp, ATTN_NORM);
+ sound (self.tur_head, CHAN_TRIGGER, "", 1 - ftmp, ATTN_NORM );
+ sound (self, CHAN_TRIGGER, "", ftmp, ATTN_NORM);
self.wait = ftmp;
- }*/
+ }
+ */
if(player.BUTTON_USE && raptor.deadflag == DEAD_NO)
{
{
vehicles_configcheck("vehicle_raptor.cfg", autocvar_g_vehicle_raptor_health);
-
-
if(autocvar_g_vehicle_raptor_shield)
self.vehicle_flags |= VHF_HASSHIELD;
precache_model ("models/vehicles/clusterbomb.md3");
precache_model ("models/vehicles/clusterbomb_folded.md3");
precache_model ("models/vehicles/raptor_body.dpm");
+
precache_sound ("vehicles/raptor_fly.wav");
precache_sound ("vehicles/raptor_speed.wav");
+ precache_sound ("");
self.think = raptor_dinit;
self.nextthink = time + (autocvar_g_vehicles_delayspawn ? autocvar_g_vehicle_raptor_respawntime + (random() * autocvar_g_vehicles_delayspawn_jitter) : 0.5);
sound (self, CHAN_TRIGGER, "vehicles/spiderbot_die.wav", VOL_BASE, ATTN_NORM);
pointparticles(particleeffectnum("explosion_medium"), self.origin + '0 0 100', '0 0 0', 1);
- self.health = 0;
- self.event_damage = SUB_Null;
- self.takedamage = DAMAGE_NO;
- self.touch = SUB_Null;
- self.cnt = 3.4 + time + random() * 2;
- self.think = spiderbot_blowup;
- self.nextthink = time;
- self.deadflag = DEAD_DYING;
- self.frame = 5;
- self.tur_head.effects |= EF_FLAME;
- self.colormod = self.tur_head.colormod = '-1 -1 -1';
- self.frame = 10;
- self.movetype = MOVETYPE_TOSS;
-
+ self.health = 0;
+ self.event_damage = SUB_Null;
+ self.takedamage = DAMAGE_NO;
+ self.touch = SUB_Null;
+ self.cnt = 3.4 + time + random() * 2;
+ self.think = spiderbot_blowup;
+ self.nextthink = time;
+ self.deadflag = DEAD_DYING;
+ self.frame = 5;
+ self.tur_head.effects |= EF_FLAME;
+ self.colormod = self.tur_head.colormod = '-1 -1 -1';
+ self.frame = 10;
+ self.movetype = MOVETYPE_TOSS;
}
void vewhicle_spiderbot_dinit()