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

Function NPC_BehaviorSet_Sentry

codeJK2/game/NPC.cpp:1368–1383  ·  view source on GitHub ↗

------------------------- NPC_BehaviorSet_Sentry ------------------------- */

Source from the content-addressed store, hash-verified

1366-------------------------
1367*/
1368void NPC_BehaviorSet_Sentry( int bState )
1369{
1370 switch( bState )
1371 {
1372 case BS_STAND_GUARD:
1373 case BS_PATROL:
1374 case BS_STAND_AND_SHOOT:
1375 case BS_HUNT_AND_KILL:
1376 case BS_DEFAULT:
1377 NPC_BSSentry_Default();
1378 break;
1379 default:
1380 NPC_BehaviorSet_Default( bState );
1381 break;
1382 }
1383}
1384
1385/*
1386-------------------------

Callers 1

NPC_RunBehaviorFunction · 0.70

Calls 2

NPC_BSSentry_DefaultFunction · 0.70
NPC_BehaviorSet_DefaultFunction · 0.70

Tested by

no test coverage detected