mirror of
https://github.com/blendogames/quadrilateralcowboy.git
synced 2024-11-21 19:51:04 +00:00
26 lines
518 B
C++
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);
|
|
};
|