Skip to content

Commit ee03605

Browse files
committed
add nextbot changes to BDSBASE_NPC
1 parent ee328f2 commit ee03605

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/game/server/ai_memory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "ai_memory.h"
1111
#include "ai_basenpc.h"
1212

13-
#ifdef BDSBASE
13+
#ifdef BDSBASE_NPC
1414
#ifdef NEXT_BOT
1515
#include "NextBotManager.h"
1616
#endif
@@ -251,7 +251,7 @@ bool CAI_Enemies::ShouldDiscardMemory( AI_EnemyInfo_t *pMemory )
251251
if ( pEnemy )
252252
{
253253
CAI_BaseNPC *pEnemyNPC = pEnemy->MyNPCPointer();
254-
#ifdef BDSBASE
254+
#ifdef BDSBASE_NPC
255255
if (pEnemyNPC)
256256
{
257257
if (pEnemyNPC->GetState() == NPC_STATE_DEAD)

src/game/server/ai_senses.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "ai_basenpc.h"
1515
#include "saverestore_utlvector.h"
1616

17-
#ifdef BDSBASE
17+
#ifdef BDSBASE_NPC
1818
#ifdef NEXT_BOT
1919
#include "NextBotManager.h"
2020
#endif
@@ -86,7 +86,7 @@ BEGIN_SIMPLE_DATADESC( CAI_Senses )
8686
DEFINE_FIELD( m_TimeLastLookHighPriority, FIELD_TIME ),
8787
DEFINE_FIELD( m_TimeLastLookNPCs, FIELD_TIME ),
8888
DEFINE_FIELD( m_TimeLastLookMisc, FIELD_TIME ),
89-
#ifdef BDSBASE
89+
#ifdef BDSBASE_NPC
9090
#ifdef NEXT_BOT
9191
DEFINE_FIELD(m_TimeLastLookNextBots, FIELD_TIME),
9292
#endif
@@ -367,7 +367,7 @@ void CAI_Senses::Look( int iDistance )
367367
LookForHighPriorityEntities( iDistance );
368368
LookForNPCs( iDistance);
369369
LookForObjects( iDistance );
370-
#ifdef BDSBASE
370+
#ifdef BDSBASE_NPC
371371
#ifdef NEXT_BOT
372372
LookForNextBots(iDistance);
373373
#endif
@@ -527,7 +527,7 @@ int CAI_Senses::LookForNPCs( int iDistance )
527527
return m_SeenNPCs.Count();
528528
}
529529

530-
#ifdef BDSBASE
530+
#ifdef BDSBASE_NPC
531531
#ifdef NEXT_BOT
532532
//-----------------------------------------------------------------------------
533533

@@ -657,7 +657,7 @@ float CAI_Senses::GetTimeLastUpdate( CBaseEntity *pEntity )
657657
return m_TimeLastLookHighPriority;
658658
if ( pEntity->IsNPC() )
659659
return m_TimeLastLookNPCs;
660-
#ifdef BDSBASE
660+
#ifdef BDSBASE_NPC
661661
#ifdef NEXT_BOT
662662
if (pEntity->IsNextBot())
663663
return m_TimeLastLookNextBots;

src/game/server/ai_senses.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum seentype_t
3333
SEEN_ALL = -1, // Default
3434
SEEN_HIGH_PRIORITY = 0,
3535
SEEN_NPCS,
36-
#ifdef BDSBASE
36+
#ifdef BDSBASE_NPC
3737
#ifdef NEXT_BOT
3838
SEEN_MISC,
3939
SEEN_NEXTBOTS
@@ -70,7 +70,7 @@ class CAI_Senses : public CAI_Component
7070
m_SeenArrays[0] = &m_SeenHighPriority;
7171
m_SeenArrays[1] = &m_SeenNPCs;
7272
m_SeenArrays[2] = &m_SeenMisc;
73-
#ifdef BDSBASE
73+
#ifdef BDSBASE_NPC
7474
#ifdef NEXT_BOT
7575
m_SeenArrays[3] = &m_SeenNextBots;
7676
#endif
@@ -132,7 +132,7 @@ class CAI_Senses : public CAI_Component
132132
int LookForHighPriorityEntities( int iDistance );
133133
int LookForNPCs( int iDistance );
134134
int LookForObjects( int iDistance );
135-
#ifdef BDSBASE
135+
#ifdef BDSBASE_NPC
136136
#ifdef NEXT_BOT
137137
int LookForNextBots(int iDistance);
138138
#endif
@@ -149,7 +149,7 @@ class CAI_Senses : public CAI_Component
149149
CUtlVector<EHANDLE> m_SeenHighPriority;
150150
CUtlVector<EHANDLE> m_SeenNPCs;
151151
CUtlVector<EHANDLE> m_SeenMisc;
152-
#ifdef BDSBASE
152+
#ifdef BDSBASE_NPC
153153
#ifdef NEXT_BOT
154154
CUtlVector<EHANDLE> m_SeenNextBots;
155155
#endif
@@ -166,7 +166,7 @@ class CAI_Senses : public CAI_Component
166166
float m_TimeLastLookHighPriority;
167167
float m_TimeLastLookNPCs;
168168
float m_TimeLastLookMisc;
169-
#ifdef BDSBASE
169+
#ifdef BDSBASE_NPC
170170
#ifdef NEXT_BOT
171171
float m_TimeLastLookNextBots;
172172
#endif

0 commit comments

Comments
 (0)