Made it possible to hit the Uranus boss via its wings.

The idea is clearly supposed to be breaking the boss in two and then
destroying the halves, so it makes no sense for the wings you break
off to also act as shields, which they did. Pretty much all this did
was cause a lot of shots to be wasted.
This commit is contained in:
onpon4 2015-06-02 12:43:06 -04:00
parent 51ae0dc659
commit 9be21cbd3a
3 changed files with 16 additions and 8 deletions

View File

@ -662,7 +662,7 @@ void alien_defs_init()
alien_defs[CD_URANUSBOSSWING1].collectChance = 100; alien_defs[CD_URANUSBOSSWING1].collectChance = 100;
alien_defs[CD_URANUSBOSSWING1].collectType = P_ANYTHING; alien_defs[CD_URANUSBOSSWING1].collectType = P_ANYTHING;
alien_defs[CD_URANUSBOSSWING1].collectValue = 250; alien_defs[CD_URANUSBOSSWING1].collectValue = 250;
alien_defs[CD_URANUSBOSSWING1].flags = FL_WEAPCO | FL_IMMORTAL; alien_defs[CD_URANUSBOSSWING1].flags = FL_WEAPCO | FL_IMMORTAL | FL_DAMAGEOWNER;
// Uranus Boss Wing 2 // Uranus Boss Wing 2
alien_defs[CD_URANUSBOSSWING2].classDef = CD_URANUSBOSSWING2; alien_defs[CD_URANUSBOSSWING2].classDef = CD_URANUSBOSSWING2;
@ -679,7 +679,7 @@ void alien_defs_init()
alien_defs[CD_URANUSBOSSWING2].collectChance = 100; alien_defs[CD_URANUSBOSSWING2].collectChance = 100;
alien_defs[CD_URANUSBOSSWING2].collectType = P_ANYTHING; alien_defs[CD_URANUSBOSSWING2].collectType = P_ANYTHING;
alien_defs[CD_URANUSBOSSWING2].collectValue = 250; alien_defs[CD_URANUSBOSSWING2].collectValue = 250;
alien_defs[CD_URANUSBOSSWING2].flags = FL_WEAPCO | FL_IMMORTAL; alien_defs[CD_URANUSBOSSWING2].flags = FL_WEAPCO | FL_IMMORTAL | FL_DAMAGEOWNER;
} }
void aliens_init() void aliens_init()
@ -1635,7 +1635,7 @@ void alien_hurt(object *alien, object *attacker, int damage, bool ion)
alien->shield -= damage; alien->shield -= damage;
// Chain reaction damage if needed // Chain reaction damage if needed
if (alien->flags & FL_DAMAGEOWNER) if ((alien->owner != alien) && (alien->flags & FL_DAMAGEOWNER))
{ {
alien_hurt(alien->owner, attacker, damage, ion); alien_hurt(alien->owner, attacker, damage, ion);
} }

View File

@ -554,6 +554,13 @@ static void game_doBullets()
aliens[i].hit = 5; aliens[i].hit = 5;
} }
else if (aliens[i].flags & FL_DAMAGEOWNER)
{
alien_hurt(aliens[i].owner, bullet->owner,
bullet->damage, (bullet->flags & WF_DISABLE));
aliens[i].owner->hit = 5;
}
if (bullet->id == WT_CHARGER) if (bullet->id == WT_CHARGER)
{ {

View File

@ -944,7 +944,8 @@ int intermission()
} }
} }
engine.keyState[KEY_FIRE] = engine.keyState[KEY_ALTFIRE] = 0; engine.keyState[KEY_FIRE] = 0;
engine.keyState[KEY_ALTFIRE] = 0;
intermission_doCursor(); intermission_doCursor();
delayFrame(); delayFrame();