bstate.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #ifndef __BSTATE_H__
  2. #define __BSTATE_H__
  3. //bstate.h
  4. typedef enum //# bState_e
  5. {//These take over only if script allows them to be autonomous
  6. BS_DEFAULT = 0,//# default behavior for that NPC
  7. BS_ADVANCE_FIGHT,//# Advance to captureGoal and shoot enemies if you can
  8. BS_SLEEP,//# Play awake script when startled by sound
  9. BS_FOLLOW_LEADER,//# Follow your leader and shoot any enemies you come across
  10. BS_JUMP,//# Face navgoal and jump to it.
  11. BS_SEARCH,//# Using current waypoint as a base, search the immediate branches of waypoints for enemies
  12. BS_WANDER,//# Wander down random waypoint paths
  13. BS_NOCLIP,//# Moves through walls, etc.
  14. BS_REMOVE,//# Waits for player to leave PVS then removes itself
  15. BS_CINEMATIC,//# Does nothing but face it's angles and move to a goal if it has one
  16. BS_FLEE,//# Run away!
  17. //# #eol
  18. //internal bStates only
  19. BS_WAIT,//# Does nothing but face it's angles
  20. BS_STAND_GUARD,
  21. BS_PATROL,
  22. BS_INVESTIGATE,//# head towards temp goal and look for enemies and listen for sounds
  23. BS_STAND_AND_SHOOT,
  24. BS_HUNT_AND_KILL,
  25. NUM_BSTATES
  26. } bState_t;
  27. #endif //#ifndef __BSTATE_H__