MCPcopy Create free account
hub / github.com/JACoders/OpenJK / NPC_CheckEnemyExt

Function NPC_CheckEnemyExt

codeJK2/game/NPC_utils.cpp:1235–1249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233*/
1234
1235qboolean NPC_CheckEnemyExt( qboolean checkAlerts )
1236{
1237 //Make sure we're ready to think again
1238/*
1239 if ( NPCInfo->enemyCheckDebounceTime > level.time )
1240 return qfalse;
1241
1242 //Get our next think time
1243 NPCInfo->enemyCheckDebounceTime = level.time + NPC_GetCheckDelta();
1244
1245 //Attempt to find an enemy
1246 return NPC_FindEnemy();
1247*/
1248 return NPC_FindEnemy( checkAlerts );
1249}
1250
1251/*
1252-------------------------

Callers 13

NPC_BSSniper_AttackFunction · 0.70
Interrogator_AttackFunction · 0.70
Mark1_AttackDecisionFunction · 0.70
NPC_BSGrenadier_AttackFunction · 0.70
MineMonster_PatrolFunction · 0.70
NPC_BSGM_AttackFunction · 0.70
ATST_AttackFunction · 0.70
Remote_AttackFunction · 0.70
Howler_PatrolFunction · 0.70
Sentry_AttackDecisionFunction · 0.70
NPC_BSEmplacedFunction · 0.70

Calls 1

NPC_FindEnemyFunction · 0.70

Tested by

no test coverage detected