Make enemies less aggressive, except in Outposts.

This commit is contained in:
Steve 2018-02-23 19:25:07 +00:00
parent 1b8e5ef641
commit bf1e8f64f6
2 changed files with 16 additions and 4 deletions

View File

@ -237,18 +237,24 @@ static void lookForPlayer(void)
}
r = randF();
if (world.missionType == MT_OUTPOST)
{
r = randF() * 0.65;
}
if (u->isMissionTarget)
{
r = randF() * 0.3;
}
if (r < 0.125)
if (r < 0.065)
{
moveTowardsPlayer();
u->shotsToFire = rrnd(1, u->maxShotsToFire);
u->action = u->preFire;
}
else if (r < 0.25)
else if (r < 0.12)
{
u->dx = 0;
u->shotsToFire = rrnd(1, u->maxShotsToFire);

View File

@ -222,18 +222,24 @@ static void lookForPlayer(void)
}
r = randF();
if (world.missionType == MT_OUTPOST)
{
r = randF() * 0.65;
}
if (u->isMissionTarget)
{
r = randF() * 0.3;
}
if (r < 0.125)
if (r < 0.065)
{
chase();
u->shotsToFire = rrnd(1, u->maxShotsToFire);
u->action = u->preFire;
}
else if (r < 0.25)
else if (r < 0.12)
{
u->dx = 0;
u->shotsToFire = rrnd(1, u->maxShotsToFire);