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

Function G_JediInNormalAI

code/game/NPC.cpp:1606–1625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1604}
1605
1606qboolean G_JediInNormalAI( gentity_t *ent )
1607{//NOTE: should match above func's switch!
1608 //check our bState
1609 bState_t bState = G_CurrentBState( ent->NPC );
1610 switch ( bState )
1611 {
1612 case BS_STAND_GUARD:
1613 case BS_PATROL:
1614 case BS_STAND_AND_SHOOT:
1615 case BS_HUNT_AND_KILL:
1616 case BS_INVESTIGATE:
1617 case BS_DEFAULT:
1618 case BS_FOLLOW_LEADER:
1619 return qtrue;
1620 break;
1621 default:
1622 break;
1623 }
1624 return qfalse;
1625}
1626
1627/*
1628-------------------------

Callers 1

ClientThink_realFunction · 0.85

Calls 1

G_CurrentBStateFunction · 0.85

Tested by

no test coverage detected