camturret.h 544 B

123456789101112131415161718192021222324252627
  1. class idCamturret : public idAnimatedEntity
  2. {
  3. public:
  4. CLASS_PROTOTYPE( idCamturret );
  5. void Spawn( void );
  6. virtual void Think( void );
  7. void GotoAlert( void );
  8. private:
  9. enum { OFF, OPENING, SEARCHING, SUSPICIOUS, ALERTED };
  10. int state;
  11. int nextStateTime;
  12. int nextSearchTime;
  13. bool HasLOS();
  14. void PointCamera(const char* jointName, idVec3 aimPos);
  15. void Event_camturretactivate( int value );
  16. int Event_PlayAnim( const char* animname, bool loop = false);
  17. };