mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 02:58:46 +02:00
Bot fixes.
This commit is contained in:
@@ -132,7 +132,7 @@ class rvmBotAIBotActionBase;
|
||||
#define ENEMY_HEIGHT 201
|
||||
|
||||
#define MAX_AVOIDGOALS 256
|
||||
#define MAX_GOALSTACK 8
|
||||
#define MAX_GOALSTACK 16
|
||||
|
||||
#define GFL_NONE 0
|
||||
#define GFL_ITEM 1
|
||||
@@ -347,7 +347,7 @@ struct weightconfig_t
|
||||
#define DEFAULT_CHARACTER "bots/default_c.c"
|
||||
|
||||
#define MAX_AVOIDGOALS 256
|
||||
#define MAX_GOALSTACK 8
|
||||
#define MAX_GOALSTACK 16
|
||||
|
||||
#define GFL_NONE 0
|
||||
#define GFL_ITEM 1
|
||||
@@ -747,11 +747,11 @@ struct bot_state_t
|
||||
entitynum = 0;
|
||||
setupcount = 0;
|
||||
entergame_time = 0;
|
||||
weaponnum = 0;
|
||||
weaponnum = -1;
|
||||
lasthealth = 0;
|
||||
ltg_time = 0;
|
||||
weaponchange_time = 0;
|
||||
enemy = 0;
|
||||
enemy = -1;
|
||||
enemyvisible_time = 0;
|
||||
enemysuicide = 0;
|
||||
enemysight_time = 0;
|
||||
@@ -872,6 +872,10 @@ private:
|
||||
|
||||
bool HasWeapon( int index )
|
||||
{
|
||||
if( index < 0 || index >= MAX_WEAPONS )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return inventory.weapons & ( 1 << index );
|
||||
}
|
||||
private:
|
||||
@@ -923,4 +927,4 @@ private:
|
||||
idAAS* aas;
|
||||
};
|
||||
|
||||
extern idCVar bot_skill;
|
||||
extern idCVar bot_skill;
|
||||
|
||||
Reference in New Issue
Block a user