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