Bot fixes.

This commit is contained in:
Justin Marshall
2026-05-20 09:10:15 -07:00
parent ed6b826d23
commit 31a3805769
9 changed files with 571 additions and 421 deletions
+9 -5
View File
@@ -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;