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

Function NPC_BSSearchStart

code/game/NPC_behavior.cpp:1203–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201*/
1202
1203void NPC_BSSearchStart( int homeWp, bState_t bState )
1204{
1205 //FIXME: Reimplement
1206 NPCInfo->homeWp = homeWp;
1207 NPCInfo->tempBehavior = bState;
1208 NPCInfo->aiFlags |= NPCAI_ENROUTE_TO_HOMEWP;
1209 NPCInfo->investigateDebounceTime = 0;
1210 NAV::GetNodePosition(homeWp, NPCInfo->tempGoal->currentOrigin);
1211 NPCInfo->tempGoal->waypoint = homeWp;
1212 //gi.Printf("\nHeading for wp %d...\n", NPCInfo->homeWp);
1213}
1214
1215/*
1216-------------------------

Callers 4

Q3_SetBStateFunction · 0.70
NPC_LostEnemyDecideChaseFunction · 0.70
G_ActivateBehaviorFunction · 0.70
ST_CommanderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected