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

Function NPC_CheckEnemyExt

code/game/NPC_utils.cpp:1312–1326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310*/
1311
1312qboolean NPC_CheckEnemyExt( qboolean checkAlerts )
1313{
1314 //Make sure we're ready to think again
1315/*
1316 if ( NPCInfo->enemyCheckDebounceTime > level.time )
1317 return qfalse;
1318
1319 //Get our next think time
1320 NPCInfo->enemyCheckDebounceTime = level.time + NPC_GetCheckDelta();
1321
1322 //Attempt to find an enemy
1323 return NPC_FindEnemy();
1324*/
1325 return NPC_FindEnemy( checkAlerts );
1326}
1327
1328/*
1329-------------------------

Callers 15

NPC_BSSniper_AttackFunction · 0.70
Interrogator_AttackFunction · 0.70
Wampa_PatrolFunction · 0.70
NPC_BSWampa_DefaultFunction · 0.70
Mark1_AttackDecisionFunction · 0.70
NPC_BSGrenadier_AttackFunction · 0.70
MineMonster_PatrolFunction · 0.70
NPC_BSSaberDroid_AttackFunction · 0.70
Rancor_PatrolFunction · 0.70
NPC_BSRancor_DefaultFunction · 0.70
ATST_AttackFunction · 0.70

Calls 1

NPC_FindEnemyFunction · 0.70

Tested by

no test coverage detected