mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-27 07:51:36 +00:00
Disable bot ballhog
This commit is contained in:
parent
96ea65d4e8
commit
719ba464af
4 changed files with 16 additions and 0 deletions
|
|
@ -2160,3 +2160,10 @@ void K_UpdateBotGameplayVars(player_t *player)
|
|||
|
||||
K_UpdateBotGameplayVarsItemUsage(player);
|
||||
}
|
||||
|
||||
boolean K_BotUnderstandsItem(kartitems_t item)
|
||||
{
|
||||
if (item == KITEM_BALLHOG)
|
||||
return false; // Sorry. MRs welcome!
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -401,6 +401,7 @@ void K_BotItemUsage(const player_t *player, ticcmd_t *cmd, INT16 turnamt);
|
|||
|
||||
void K_BotPickItemPriority(player_t *player);
|
||||
|
||||
boolean K_BotUnderstandsItem(kartitems_t item);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
|
|
|||
|
|
@ -9579,6 +9579,11 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
player->pflags2 &= ~PF2_SUPERTRANSFERVFX;
|
||||
}
|
||||
|
||||
if (K_PlayerUsesBotMovement(player) && !K_BotUnderstandsItem(player->itemtype) && player->itemamount)
|
||||
{
|
||||
K_DropItems(player);
|
||||
}
|
||||
|
||||
if (player->transfer)
|
||||
{
|
||||
if (player->fastfall)
|
||||
|
|
|
|||
|
|
@ -924,6 +924,9 @@ static void K_PushToRouletteItemList(itemroulette_t *const roulette, INT32 item)
|
|||
--------------------------------------------------*/
|
||||
static void K_AddItemToReel(const player_t *player, itemroulette_t *const roulette, kartitems_t item)
|
||||
{
|
||||
if (player && K_PlayerUsesBotMovement(player) && !K_BotUnderstandsItem(item))
|
||||
return;
|
||||
|
||||
K_PushToRouletteItemList(roulette, item);
|
||||
|
||||
if (player == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue