#define RACER_MIN '-120 -120 -40'
#define RACER_MAX '120 120 40'
-#define RACER_ENGINE "sound/vehicles/racer.wav"
#ifdef SVQC
void racer_exit(float eject);
void racer_blowup()
{
- sound (self, CHAN_PROJECTILE, "weapons/rocket_impact.wav", VOL_BASE, ATTN_NORM);
- pointparticles(particleeffectnum("explosion_big"), self.origin, '0 0 0', 1);
-
self.deadflag = DEAD_DEAD;
self.vehicle_exit(VHEF_NORMAL);
autocvar_g_vehicle_racer_blowup_forceintensity,
DEATH_WAKIBLOWUP, world);
- self.alpha = -1;
self.nextthink = time + autocvar_g_vehicle_racer_respawntime;
self.think = racer_spawn;
self.movetype = MOVETYPE_NONE;
void racer_deadtouch()
{
- dprint("Boink!\n");
self.avelocity_x *= 0.7;
self.cnt -= 1;
if(self.cnt <= 0)
self.vehicle_flags |= VHF_DMGSHAKE;
self.vehicle_flags |= VHF_DMGROLL;
- precache_sound ("weapons/laserimpact.wav");
precache_sound ("weapons/lasergun_fire.wav");
precache_sound ("weapons/rocket_fire.wav");
- precache_sound ("weapons/rocket_impact.wav");
precache_sound ("vehicles/racer_idle.wav");
precache_sound ("vehicles/racer_move.wav");
#ifdef SVQC
#define RAPTOR_MIN '-80 -80 0'
#define RAPTOR_MAX '80 80 70'
-//#define RAPTOR_ENGINE "sound/vehicles/raptor.wav"
+
float autocvar_g_vehicle_raptor_respawntime;
float autocvar_g_vehicle_raptor_movestyle;
remove(self);
}
-void raptor_bomb_touch()
-{
- raptor_bomb_burst();
-}
-
void raptor_bombdrop()
{
entity bomb_1, bomb_2;
bomb_1.movetype = bomb_2.movetype = MOVETYPE_BOUNCE;
bomb_1.velocity = bomb_2.velocity = self.velocity;
- bomb_1.touch = bomb_2.touch = raptor_bomb_touch;
+ bomb_1.touch = bomb_2.touch = raptor_bomb_burst;
bomb_1.think = bomb_2.think = raptor_bomb_burst;
bomb_1.cnt = bomb_2.cnt = time + 10;
CSQCProjectile(bomb_1, TRUE, PROJECTILE_RAPTORBOMB, TRUE);
CSQCProjectile(bomb_2, TRUE, PROJECTILE_RAPTORBOMB, TRUE);
-
}
void raptor_fire_cannon(entity gun, string tagname)
{
- entity bolt;
- vector b_org;
- b_org = gettaginfo(gun, gettagindex(gun, tagname));
- bolt = vehicles_projectile("raptor_cannon_muzzleflash", "weapons/lasergun_fire.wav",
- b_org, normalize(v_forward + randomvec() * autocvar_g_vehicle_raptor_cannon_spread) * autocvar_g_vehicle_raptor_cannon_speed,
+ vehicles_projectile("raptor_cannon_muzzleflash", "weapons/lasergun_fire.wav",
+ gettaginfo(gun, gettagindex(gun, tagname)), normalize(v_forward + randomvec() * autocvar_g_vehicle_raptor_cannon_spread) * autocvar_g_vehicle_raptor_cannon_speed,
autocvar_g_vehicle_raptor_cannon_damage, autocvar_g_vehicle_raptor_cannon_radius, autocvar_g_vehicle_raptor_cannon_force, 0,
DEATH_RAPTOR_CANNON, PROJECTILE_RAPTORCANNON, 0, TRUE, TRUE);
}
player = self;
raptor = self.vehicle;
self = raptor;
-
if(self.sound_nexttime < time)
{
self.sound_nexttime = time + 7.955812; //soundlength("vehicles/raptor_fly.wav");
player = self;
raptor = self.vehicle;
self = raptor;
-
vehicles_painframe();
/*
ftmp = vlen(self.velocity);
void raptor_blowup()
{
- sound (self, CHAN_PROJECTILE, "weapons/rocket_impact.wav", VOL_BASE, ATTN_NORM);
- pointparticles(particleeffectnum("explosion_big"), self.origin, '0 0 0', 1);
-
self.deadflag = DEAD_DEAD;
self.vehicle_exit(VHEF_NORMAL);
RadiusDamage (self, self, 250, 15, 250, world, 250, DEATH_WAKIBLOWUP, world);
void raptor_diethink()
{
- //self.avelocity += '0 0.5 1' * (random() * 5);
- //self.avelocity -= '0 0.5 1' * (random() * 5);
-
if(random() < 0.1)
{
sound (self, CHAN_PROJECTILE, "weapons/rocket_impact.wav", VOL_BASE, ATTN_NORM);
precache_model ("models/vehicles/raptor_gun.dpm");
precache_model ("models/vehicles/spinner.dpm");
precache_model ("models/vehicles/raptor_cockpit.dpm");
- precache_model ("models/vehicles/clusterbomb.md3");
+ //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);