mirror of https://github.com/FWGS/hlsdk-xash3d
61 lines
1.6 KiB
C++
Executable File
61 lines
1.6 KiB
C++
Executable File
|
|
class CRanulf : public CTalkMonster
|
|
{
|
|
public:
|
|
void Spawn( void );
|
|
void Precache( void );
|
|
void SetYawSpeed( void );
|
|
int ISoundMask( void );
|
|
void RanulfFirePistol( void );
|
|
void AlertSound( void );
|
|
int Classify ( void );
|
|
void HandleAnimEvent( MonsterEvent_t *pEvent );
|
|
|
|
void RunTask( Task_t *pTask );
|
|
void StartTask( Task_t *pTask );
|
|
virtual int ObjectCaps( void ) { return CTalkMonster :: ObjectCaps() | FCAP_IMPULSE_USE; }
|
|
int TakeDamage( entvars_t* pevInflictor, entvars_t* pevAttacker, float flDamage, int bitsDamageType);
|
|
BOOL CheckRangeAttack1 ( float flDot, float flDist );
|
|
|
|
void DeclineFollowing( void );
|
|
|
|
// Override these to set behavior
|
|
Schedule_t *GetScheduleOfType ( int Type );
|
|
Schedule_t *GetSchedule ( void );
|
|
MONSTERSTATE GetIdealState ( void );
|
|
|
|
void DeathSound( void );
|
|
void PainSound( void );
|
|
|
|
void TalkInit( void );
|
|
|
|
void TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir, TraceResult *ptr, int bitsDamageType);
|
|
void Killed( entvars_t *pevAttacker, int iGib );
|
|
|
|
virtual int Save( CSave &save );
|
|
virtual int Restore( CRestore &restore );
|
|
static TYPEDESCRIPTION m_SaveData[];
|
|
|
|
// BOOL m_fGunDrawn;
|
|
float m_painTime;
|
|
float m_checkAttackTime;
|
|
BOOL m_lastAttackCheck;
|
|
|
|
CUSTOM_SCHEDULES;
|
|
};
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
class CDeadRanulf : public CBaseMonster
|
|
{
|
|
public:
|
|
void Spawn( void );
|
|
int Classify ( void ) { return CLASS_PLAYER_ALLY; }
|
|
|
|
void KeyValue( KeyValueData *pkvd );
|
|
|
|
int m_iPose;// which sequence to display -- temporary, don't need to save
|
|
static char *m_szPoses[3];
|
|
};
|
|
|