mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add bot support to new Shrink
They move towards lasers that belong to them, and steer away from ones that don't.
This commit is contained in:
parent
e1cf42dcbd
commit
892863db05
1 changed files with 10 additions and 0 deletions
|
|
@ -425,6 +425,16 @@ static BlockItReturn_t K_FindObjectsForNudging(mobj_t *thing)
|
|||
case MT_BUBBLESHIELDTRAP:
|
||||
K_AddDodgeObject(thing, side, 20);
|
||||
break;
|
||||
case MT_SHRINK_GUN:
|
||||
if (thing->target == globalsmuggle.botmo)
|
||||
{
|
||||
K_AddAttackObject(thing, side, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
K_AddDodgeObject(thing, side, 20);
|
||||
}
|
||||
break;
|
||||
case MT_RANDOMITEM:
|
||||
if (anglediff >= 45)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue