Files
2026-05-19 08:28:43 -07:00

33 lines
573 B
C++

// BotAI_respawn.cpp
//
#pragma hdrstop
#include "precompiled.h"
#include "../Game_local.h"
/*
=====================
rvmBot::state_Respawn
=====================
*/
stateResult_t rvmBot::state_Respawn(stateParms_t* parms)
{
if (parms->stage == 0)
{
bs.botinput.respawn = true;
parms->stage = 1;
return SRESULT_WAIT;
}
if (parms->stage == 1)
{
if (spectating)
{
return SRESULT_WAIT; // Wait until we have moved from spectator back into the game.
}
}
bs.botinput.respawn = false;
stateThread.SetState("state_SeekLTG");
return SRESULT_DONE_FRAME;
}