self.trail_oldorigin = to;
self.trail_oldtime = time;
}
+
void Projectile_DrawTrail(vector to)
{
vector from;
float t0;
+
from = self.trail_oldorigin;
t0 = self.trail_oldtime;
self.trail_oldorigin = to;
case PROJECTILE_TAG: setmodel(self, "models/laser.mdl"); self.traileffect = particleeffectnum("TR_ROCKET"); break;
case PROJECTILE_FLAC: setmodel(self, "models/hagarmissile.mdl"); self.scale = 0.4; self.traileffect = particleeffectnum("TR_SEEKER"); break;
case PROJECTILE_SEEKER: setmodel(self, "models/tagrocket.md3"); self.traileffect = particleeffectnum("TR_SEEKER"); break;
- case PROJECTILE_RAPTORBOMB: setmodel(self, "models/vehicles/raptor_bomb.dpm"); self.gravity = 1; self.avelocity = '0 0 180'; self.traileffect = particleeffectnum(""); break;
+
+ case PROJECTILE_RAPTORBOMB: setmodel(self, "models/vehicles/clusterbomb.md3"); self.gravity = 1; self.avelocity = '0 0 180'; self.traileffect = particleeffectnum(""); break;
+ case PROJECTILE_RAPTORBOMBLET: setmodel(self, "models/vehicles/bomblet.md3"); self.gravity = 1; self.avelocity = '0 0 180'; self.traileffect = particleeffectnum(""); break;
+ case PROJECTILE_RAPTORCANNON: setmodel(self, "models/plasmatrail.mdl"); self.traileffect = particleeffectnum("TR_CRYLINKPLASMA"); break;
+
+ case PROJECTILE_SPIDERROCKET: setmodel(self, "models/vehicles/rocket02.md3"); self.traileffect = particleeffectnum("TR_ROCKET"); break;
+ case PROJECTILE_WAKIROCKET: setmodel(self, "models/vehicles/rocket01.md3"); self.traileffect = particleeffectnum("TR_ROCKET"); break;
+ case PROJECTILE_WAKICANNON: setmodel(self, "models/laser.mdl"); self.traileffect = particleeffectnum(""); break;
default:
error("Received invalid CSQC projectile, can't work with this!");
break;
self.mins = '-3 -3 -3';
self.maxs = '3 3 3';
break;
+ case PROJECTILE_RAPTORBOMBLET:
+ break;
+ case PROJECTILE_RAPTORCANNON:
+ break;
+ case PROJECTILE_SPIDERROCKET:
+ loopsound(self, CHAN_PROJECTILE, "weapons/tag_rocket_fly.wav", VOL_BASE, ATTN_NORM);
+ break;
+ case PROJECTILE_WAKIROCKET:
+ loopsound(self, CHAN_PROJECTILE, "weapons/tag_rocket_fly.wav", VOL_BASE, ATTN_NORM);
+ break;
+ case PROJECTILE_WAKICANNON:
+ break;
default:
break;
}
precache_model("models/rocket.md3");
precache_model("models/tagrocket.md3");
precache_model("models/tracer.mdl");
- precache_model("models/vehicles/raptor_bomb.dpm");
+
+ precache_model("models/vehicles/bomblet.md3");
+ precache_model("models/vehicles/clusterbomb.md3");
+ precache_model("models/vehicles/clusterbomb_fragment.md3");
+ precache_model("models/vehicles/rocket01.md3");
+ precache_model("models/vehicles/rocket02.md3");
precache_sound("weapons/electro_fly.wav");
precache_sound("weapons/rocket_fly.wav");
{
dropmark = spawn();
dropmark.owner = self;
+ dropmark.gravity = 1;
}
if(reload == 1)
float PROJECTILE_FIREBALL = 21;
float PROJECTILE_FIREMINE = 22;
float PROJECTILE_BULLET_GLOWING_TRACER = 23;
-float PROJECTILE_RAPTORBOMB = 24;
+
+float PROJECTILE_RAPTORCANNON = 24;
+float PROJECTILE_RAPTORBOMB = 25;
+float PROJECTILE_RAPTORBOMBLET = 26;
+float PROJECTILE_SPIDERROCKET = 27;
+float PROJECTILE_WAKIROCKET = 28;
+float PROJECTILE_WAKICANNON = 29;
float SPECIES_HUMAN = 0;
float SPECIES_ROBOT_SOLID = 1;
pointparticles(particleeffectnum("wakizashi_gun_muzzleflash"), bolt.origin, bolt.velocity, 1);
- CSQCProjectile(bolt, TRUE, PROJECTILE_LASER, TRUE);
+ CSQCProjectile(bolt, TRUE, PROJECTILE_WAKICANNON, TRUE);
}
void racer_rocket_groundhugger()
rocket.nextthink = time;
rocket.enemy = trg;
- CSQCProjectile(rocket, TRUE, PROJECTILE_ROCKET, TRUE);
+ CSQCProjectile(rocket, TRUE, PROJECTILE_WAKIROCKET, TRUE);
}
.float fire1_waspressed;
bomblet = spawn();
setorigin(bomblet, self.origin);
- bomblet.scale = 0.5;
- bomblet.solid = SOLID_TRIGGER;
+ //bomblet.solid = SOLID_TRIGGER;
bomblet.movetype = MOVETYPE_TOSS;
bomblet.touch = raptor_bomblet_touch;
bomblet.think = raptor_bomblet_boom;
bomblet.nextthink = time + 5;
- bomblet.owner = self.owner;
+ bomblet.owner = self.owner;
bomblet.realowner = self.realowner;
bomblet.velocity = normalize(normalize(self.velocity) + (randomvec() * autocvar_g_vehicle_raptor_bomblet_spread)) * vlen(self.velocity);
PROJECTILE_MAKETRIGGER(bomblet);
- CSQCProjectile(bomblet, TRUE, PROJECTILE_RAPTORBOMB, TRUE);
+ CSQCProjectile(bomblet, TRUE, PROJECTILE_RAPTORBOMBLET, TRUE);
}
remove(self);
bomb_1.owner = bomb_2.owner = self;
bomb_1.realowner = bomb_2.realowner = self.owner;
bomb_1.solid = bomb_2.solid = SOLID_BBOX;
+ bomb_1.gravity = bomb_2.gravity = 1;
PROJECTILE_MAKETRIGGER(bomb_1);
PROJECTILE_MAKETRIGGER(bomb_2);
pointparticles(particleeffectnum("raptor_cannon_muzzleflash"), bolt.origin, bolt.velocity, 1);
//pointparticles(particleeffectnum("spiderbot_minigun_muzzleflash"), bolt.origin, bolt.velocity, 1);
- CSQCProjectile(bolt, TRUE, PROJECTILE_CRYLINK, TRUE);
+ CSQCProjectile(bolt, TRUE, PROJECTILE_RAPTORCANNON, TRUE);
}
void raptor_think()
setattachment(self.vehicle_viewport, world, "");
#endif
- setmodel(self.bomb1,"models/vehicles/raptor_bomb.dpm");
- setmodel(self.bomb2,"models/vehicles/raptor_bomb.dpm");
+ setmodel(self.bomb1,"models/vehicles/clusterbomb.md3");
+ setmodel(self.bomb2,"models/vehicles/clusterbomb.md3");
setmodel(self.gun1, "models/vehicles/raptor_gun.dpm");
setmodel(self.gun2, "models/vehicles/raptor_gun.dpm");
precache_model ("models/vehicles/raptor_gun.dpm");
precache_model ("models/vehicles/spinner.dpm");
precache_model ("models/vehicles/raptor_cockpit.dpm");
- precache_model ("models/vehicles/raptor_bomb.dpm");
+ precache_model ("models/vehicles/clusterbomb.md3");
self.think = raptor_dinit;
self.nextthink = time + 1;
rocket.solid = SOLID_TRIGGER;
rocket.pos1 = trace_endpos;
- CSQCProjectile(rocket, FALSE, PROJECTILE_ROCKET, FALSE); // no culling, has fly sound
+ CSQCProjectile(rocket, FALSE, PROJECTILE_SPIDERROCKET, FALSE); // no culling, has fly sound
self.tur_head.frame += 1;
if (self.tur_head.frame == 9)
addstat(STAT_VEHICLESTAT_AMMO2, AS_INT, vehicle_ammo2);
addstat(STAT_VEHICLESTAT_RELOAD2, AS_FLOAT, vehicle_reload2);
-
if(bodymodel == "")
error("vehicles: missing bodymodel!");
--- /dev/null
+models/vehicles/rockets
+{
+ dpreflectcube textures/cubemap/sky
+ {
+ models/vehicles/rockets.tga
+ rgbgen vertex
+ }
+}
\ No newline at end of file