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