Fix bot hint weighting

This commit is contained in:
Sally Coolatta 2021-02-26 22:37:46 -05:00
parent b7f8278252
commit 03c13052e8

View file

@ -750,14 +750,23 @@ static boolean K_FindObjectsForNudging(mobj_t *thing)
{
break;
}
if (thing->extravalue1 == 0)
{
K_AddDodgeObject(thing, side, (UINT8)thing->extravalue2);
}
else
{
K_AddAttackObject(thing, side, (UINT8)thing->extravalue2);
UINT8 weight = 20;
if (thing->extravalue2 > 0)
{
weight = thing->extravalue2 * 5;
}
if (thing->extravalue1 == 0)
{
K_AddDodgeObject(thing, side, weight);
}
else
{
K_AddAttackObject(thing, side, weight);
}
}
break;
default: