mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 19:23:51 +02:00
Added bot code.
This commit is contained in:
@@ -340,7 +340,8 @@ public:
|
||||
virtual void SaveGame( idFile *saveGameFile );
|
||||
virtual void MapShutdown( void );
|
||||
virtual void CacheDictionaryMedia( const idDict *dict );
|
||||
virtual void SpawnPlayer( int clientNum );
|
||||
virtual void SpawnPlayer( int clientNum, bool isBot );
|
||||
virtual bool GetRandomBotName(int clientNum, idStr& botName);
|
||||
virtual gameReturn_t RunFrame( const usercmd_t *clientCmds );
|
||||
virtual bool Draw( int clientNum );
|
||||
virtual escReply_t HandleESC( idUserInterface **gui );
|
||||
@@ -349,7 +350,7 @@ public:
|
||||
virtual void HandleMainMenuCommands( const char *menuCommand, idUserInterface *gui );
|
||||
virtual allowReply_t ServerAllowClient( int numClients, const char *IP, const char *guid, const char *password, char reason[MAX_STRING_CHARS] );
|
||||
virtual void ServerClientConnect( int clientNum, const char *guid );
|
||||
virtual void ServerClientBegin( int clientNum );
|
||||
virtual void ServerClientBegin( int clientNum, bool isBot);
|
||||
virtual void ServerClientDisconnect( int clientNum );
|
||||
virtual void ServerWriteInitialReliableMessages( int clientNum );
|
||||
virtual void ServerWriteSnapshot( int clientNum, int sequence, idBitMsg &msg, byte *clientInPVS, int numPVSClients );
|
||||
@@ -378,6 +379,9 @@ public:
|
||||
|
||||
void DelayRemoveEntity(idEntity* entity, int delay);
|
||||
|
||||
void AddBot(void);
|
||||
idPlayer* GetClient(int i) const { assert(i >= 0 && i < MAX_CLIENTS); return reinterpret_cast<idPlayer*>(entities[i]); }
|
||||
|
||||
void LocalMapRestart( void );
|
||||
void MapRestart( void );
|
||||
static void MapRestart_f( const idCmdArgs &args );
|
||||
@@ -389,6 +393,17 @@ public:
|
||||
{
|
||||
return MS2SEC(time - previousTime);
|
||||
}
|
||||
|
||||
idAAS* GetBotAAS(void)
|
||||
{
|
||||
return bot_aas;
|
||||
}
|
||||
|
||||
int TravelTimeToGoal(const idVec3& origin, const idVec3& goal);
|
||||
int GetBotItemEntry(const char* name);
|
||||
void Trace(trace_t& results, const idVec3& start, const idVec3& end, int contentMask, int passEntity);
|
||||
void AlertBots(idPlayer* player, idVec3 alert_position);
|
||||
|
||||
bool NextMap( void ); // returns wether serverinfo settings have been modified
|
||||
static void NextMap_f( const idCmdArgs &args );
|
||||
|
||||
@@ -457,6 +472,8 @@ public:
|
||||
|
||||
const idVec3 & GetGravity( void ) const;
|
||||
|
||||
void RunBotFrame(void);
|
||||
|
||||
// added the following to assist licensees with merge issues
|
||||
int GetFrameNum() const { return framenum; };
|
||||
int GetTime() const { return time; };
|
||||
@@ -593,6 +610,8 @@ private:
|
||||
void GetMapLoadingGUI( char gui[ MAX_STRING_CHARS ] );
|
||||
|
||||
idList<rvmGameDelayRemoveEntry_t> delayRemoveEntities;
|
||||
const idDeclEntityDef* botItemTable;
|
||||
idAAS* bot_aas;
|
||||
};
|
||||
|
||||
//============================================================================
|
||||
@@ -703,6 +722,7 @@ typedef enum {
|
||||
#define MASK_OPAQUE (CONTENTS_OPAQUE)
|
||||
#define MASK_SHOT_RENDERMODEL (CONTENTS_SOLID|CONTENTS_RENDERMODEL)
|
||||
#define MASK_SHOT_BOUNDINGBOX (CONTENTS_SOLID|CONTENTS_BODY)
|
||||
#define MASK_SHOT (CONTENTS_SOLID|CONTENTS_BODY|CONTENTS_CORPSE)
|
||||
|
||||
const float DEFAULT_GRAVITY = 1066.0f;
|
||||
#define DEFAULT_GRAVITY_STRING "1066"
|
||||
@@ -777,4 +797,6 @@ const int CINEMATIC_SKIP_DELAY = SEC2MS( 2.0f );
|
||||
#include "weapons/Weapon_chainsaw.h"
|
||||
#include "weapons/Weapon_grabber.h"
|
||||
|
||||
#include "bots/Bot.h"
|
||||
|
||||
#endif /* !__GAME_LOCAL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user