mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix bot hint weighting
This commit is contained in:
parent
b7f8278252
commit
03c13052e8
1 changed files with 15 additions and 6 deletions
|
|
@ -750,14 +750,23 @@ static boolean K_FindObjectsForNudging(mobj_t *thing)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thing->extravalue1 == 0)
|
|
||||||
{
|
|
||||||
K_AddDodgeObject(thing, side, (UINT8)thing->extravalue2);
|
|
||||||
}
|
|
||||||
else
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue