summaryrefslogtreecommitdiff
path: root/game/server/hl1/hl1_npc_vortigaunt.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/hl1/hl1_npc_vortigaunt.h')
-rw-r--r--game/server/hl1/hl1_npc_vortigaunt.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/game/server/hl1/hl1_npc_vortigaunt.h b/game/server/hl1/hl1_npc_vortigaunt.h
new file mode 100644
index 0000000..63cdb66
--- /dev/null
+++ b/game/server/hl1/hl1_npc_vortigaunt.h
@@ -0,0 +1,74 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+#ifndef NPC_VORTIGAUNT_H
+#define NPC_VORTIGAUNT_H
+
+#define VORTIGAUNT_MAX_BEAMS 8
+
+#include "hl1_ai_basenpc.h"
+//=========================================================
+//=========================================================
+class CNPC_Vortigaunt : public CHL1BaseNPC
+{
+ DECLARE_CLASS( CNPC_Vortigaunt, CHL1BaseNPC );
+public:
+
+ void Spawn( void );
+ void Precache( void );
+ Class_T Classify ( void );
+
+ void AlertSound( void );
+ void IdleSound( void );
+ void PainSound( const CTakeDamageInfo &info );
+ void DeathSound( const CTakeDamageInfo &info );
+
+ int GetSoundInterests ( void );
+
+ float MaxYawSpeed ( void );
+
+ void Event_Killed( const CTakeDamageInfo &info );
+ void CallForHelp( char *szClassname, float flDist, CBaseEntity * pEnemy, Vector &vecLocation );
+
+ int RangeAttack1Conditions( float flDot, float flDist );
+
+ int OnTakeDamage_Alive( const CTakeDamageInfo &inputInfo );
+ void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr, CDmgAccumulator *pAccumulator );
+
+ void StartTask( const Task_t *pTask );
+
+ int SelectSchedule( void );
+ int TranslateSchedule( int scheduleType );
+
+ void ArmBeam( int side );
+ void BeamGlow( void );
+ void WackBeam( int side, CBaseEntity *pEntity );
+ void ZapBeam( int side );
+ void ClearBeams( void );
+
+ void HandleAnimEvent( animevent_t *pEvent );
+
+ virtual Disposition_t IRelationType ( CBaseEntity *pTarget );
+
+ DEFINE_CUSTOM_AI;
+ DECLARE_DATADESC();
+
+private:
+ int m_iVoicePitch;
+ int m_iBeams;
+
+ int m_iBravery;
+
+ CBeam *m_pBeam[VORTIGAUNT_MAX_BEAMS];
+
+ float m_flNextAttack;
+
+ EHANDLE m_hDead;
+};
+
+
+#endif //NPC_VORTIGAUNT_ \ No newline at end of file