* Special Weapons And Tactics.
*/
+#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
universe[un].flags |= FLG_ANGRY;
return;
}
-
+
+ if (!(universe[un].flags & FLG_TARGET) &&
+ (universe[1].type == SHIP_CORIOLIS ||
+ universe[1].type == SHIP_DODEC))
+ universe[1].flags |= FLG_ANGRY;
+
if (type > SHIP_ROCK)
{
universe[un].rotx = 4;
void check_target (int un, struct univ_object *flip)
{
struct univ_object *univ;
-
+ char buf[80];
+
univ = &universe[un];
if (in_target (univ->type, flip->location.x, flip->location.y, flip->location.z))
if ((missile_target == MISSILE_ARMED) && (univ->type >= 0))
{
missile_target = un;
- info_message ("Target Locked");
+ sprintf(buf, "Target Locked (%s)",
+ ship_list[univ->type]->name);
+ info_message (buf);
snd_play_sample (SND_BEEP);
}
{
if (cmdr.legal_status >= 64)
{
- flags |= FLG_ANGRY;
+ flags |= FLG_ANGRY | FLG_TARGET;
ship->flags = flags;
}
}
if (newship != -1)
{
- universe[newship].flags |= FLG_ANGRY;
+ universe[newship].flags |= FLG_ANGRY | FLG_TARGET;
if (rand255() > 245)
universe[newship].flags |= FLG_HAS_ECM;