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

Function NPC_BehaviorSet_Charmed

code/game/NPC.cpp:1283–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281*/
1282
1283void NPC_BehaviorSet_Charmed( int bState )
1284{
1285 switch( bState )
1286 {
1287 case BS_FOLLOW_LEADER://# 40: Follow your leader and shoot any enemies you come across
1288 NPC_BSFollowLeader();
1289 break;
1290 case BS_REMOVE:
1291 NPC_BSRemove();
1292 break;
1293 case BS_SEARCH: //# 43: Using current waypoint as a base, search the immediate branches of waypoints for enemies
1294 NPC_BSSearch();
1295 break;
1296 case BS_WANDER: //# 46: Wander down random waypoint paths
1297 NPC_BSWander();
1298 break;
1299 case BS_FLEE:
1300 NPC_BSFlee();
1301 break;
1302 default:
1303 case BS_DEFAULT://whatever
1304 NPC_BSDefault();
1305 break;
1306 }
1307}
1308/*
1309-------------------------
1310NPC_BehaviorSet_Default

Callers 1

NPC_RunBehaviorFunction · 0.70

Calls 6

NPC_BSFollowLeaderFunction · 0.70
NPC_BSRemoveFunction · 0.70
NPC_BSSearchFunction · 0.70
NPC_BSWanderFunction · 0.70
NPC_BSFleeFunction · 0.70
NPC_BSDefaultFunction · 0.70

Tested by

no test coverage detected