quadrilateralcowboy/d3xp/camturret.h
2020-06-12 14:06:25 -07:00

26 lines
518 B
C++

class idCamturret : public idAnimatedEntity
{
public:
CLASS_PROTOTYPE( idCamturret );
void Spawn( void );
virtual void Think( void );
void GotoAlert( void );
private:
enum { OFF, OPENING, SEARCHING, SUSPICIOUS, ALERTED };
int state;
int nextStateTime;
int nextSearchTime;
bool HasLOS();
void PointCamera(const char* jointName, idVec3 aimPos);
void Event_camturretactivate( int value );
int Event_PlayAnim( const char* animname, bool loop = false);
};