Make enemies less aggressive, except in Outposts.
This commit is contained in:
parent
1b8e5ef641
commit
bf1e8f64f6
|
@ -237,18 +237,24 @@ static void lookForPlayer(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
r = randF();
|
r = randF();
|
||||||
|
|
||||||
|
if (world.missionType == MT_OUTPOST)
|
||||||
|
{
|
||||||
|
r = randF() * 0.65;
|
||||||
|
}
|
||||||
|
|
||||||
if (u->isMissionTarget)
|
if (u->isMissionTarget)
|
||||||
{
|
{
|
||||||
r = randF() * 0.3;
|
r = randF() * 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r < 0.125)
|
if (r < 0.065)
|
||||||
{
|
{
|
||||||
moveTowardsPlayer();
|
moveTowardsPlayer();
|
||||||
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
||||||
u->action = u->preFire;
|
u->action = u->preFire;
|
||||||
}
|
}
|
||||||
else if (r < 0.25)
|
else if (r < 0.12)
|
||||||
{
|
{
|
||||||
u->dx = 0;
|
u->dx = 0;
|
||||||
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
||||||
|
|
|
@ -222,18 +222,24 @@ static void lookForPlayer(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
r = randF();
|
r = randF();
|
||||||
|
|
||||||
|
if (world.missionType == MT_OUTPOST)
|
||||||
|
{
|
||||||
|
r = randF() * 0.65;
|
||||||
|
}
|
||||||
|
|
||||||
if (u->isMissionTarget)
|
if (u->isMissionTarget)
|
||||||
{
|
{
|
||||||
r = randF() * 0.3;
|
r = randF() * 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r < 0.125)
|
if (r < 0.065)
|
||||||
{
|
{
|
||||||
chase();
|
chase();
|
||||||
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
||||||
u->action = u->preFire;
|
u->action = u->preFire;
|
||||||
}
|
}
|
||||||
else if (r < 0.25)
|
else if (r < 0.12)
|
||||||
{
|
{
|
||||||
u->dx = 0;
|
u->dx = 0;
|
||||||
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
u->shotsToFire = rrnd(1, u->maxShotsToFire);
|
||||||
|
|
Loading…
Reference in New Issue