still doesn't work

but use K_BotDefaultSpectator more
This commit is contained in:
minenice55 2026-02-11 01:42:46 -05:00
parent 5fd1955845
commit c70c22efe6
3 changed files with 9 additions and 3 deletions

View file

@ -54,6 +54,7 @@
#include "k_objects.h"
#include "k_items.h"
#include "k_waypoint.h"
#include "k_grandprix.h"
// BlanKart
#include "blan/b_soc.h"
@ -12416,10 +12417,11 @@ void P_SpawnPlayer(INT32 playernum)
}
else if (p->bot)
{
if (itembreaker)
if (K_BotDefaultSpectator())
{
// Bots should avoid
P_SetPlayerSpectator(playernum);
p->spectator = true;
p->pflags &= ~PF_WANTSTOJOIN;
}
else if (p->spectator)
{

View file

@ -9231,7 +9231,7 @@ void P_PostLoadLevel(void)
K_InitGrandPrixBots();
grandprixinfo.initalize = false;
}
else if (grandprixinfo.wonround == true)
else// if (grandprixinfo.wonround == true)
{
K_UpdateGrandPrixBots();
grandprixinfo.wonround = false;

View file

@ -2681,6 +2681,10 @@ static void P_DeathThink(player_t *player)
playerGone = true;
}
}
else if (player->bot && K_BotDefaultSpectator())
{
playerGone = true;
}
if (playerGone == false)
{