[Add] Missiles blow up when jammer destroys them.
This commit is contained in:
parent
a597110019
commit
cf4a4926d7
@ -31,14 +31,11 @@
|
||||
</characteristics>
|
||||
<outfits>
|
||||
<outfit quantity="1">Lancelot Fighter Bay</outfit>
|
||||
<outfit quantity="100">Lancelot Fighter</outfit>
|
||||
<outfit quantity="2">Lancelot Fighter</outfit>
|
||||
<outfit quantity="1">Banshee Launcher</outfit>
|
||||
<outfit quantity="100">Banshee Rocket</outfit>
|
||||
<outfit quantity="2">Ripper MK2</outfit>
|
||||
<outfit quantity="2">Ragnarok Beam</outfit>
|
||||
<outfit quantity="2">Orion Beam</outfit>
|
||||
<outfit quantity="50">Banshee Rocket</outfit>
|
||||
<outfit quantity="1">Headhunter Launcher</outfit>
|
||||
<outfit quantity="100">Headhunter</outfit>
|
||||
<outfit quantity="50">Headhunter</outfit>
|
||||
</outfits>
|
||||
</ship>
|
||||
<ship name="Llama">
|
||||
|
@ -160,6 +160,7 @@ static void think_seeker(Weapon* w, const double dt) {
|
||||
double vel;
|
||||
Pilot* p;
|
||||
int effect;
|
||||
int spfx;
|
||||
|
||||
if(w->target == w->parent) return; /* HEY! Self harm is not allowed. */
|
||||
|
||||
@ -185,6 +186,10 @@ static void think_seeker(Weapon* w, const double dt) {
|
||||
switch(effect) {
|
||||
case 0: /* Blow up. */
|
||||
w->timer = -1.;
|
||||
spfx = outfit_spfxArmour(w->outfit);
|
||||
spfx_add(spfx, w->solid->pos.x, w->solid->pos.y,
|
||||
w->solid->vel.x, w->solid->vel.y,
|
||||
SPFX_LAYER_BACK); /* Presume back. */
|
||||
break;
|
||||
case 1: /* Stuck in left loop. */
|
||||
w->solid->dir_vel = w->outfit->u.amm.turn;
|
||||
|
Loading…
Reference in New Issue
Block a user