mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 16:21:04 +02:00
33 lines
573 B
C++
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;
|
|
} |