| 1604 | } |
| 1605 | |
| 1606 | qboolean 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 | ------------------------- |
no test coverage detected