summaryrefslogtreecommitdiff
path: root/game/server/hl1/hl1_npc_hornet.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/hl1/hl1_npc_hornet.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/hl1/hl1_npc_hornet.h')
-rw-r--r--game/server/hl1/hl1_npc_hornet.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/game/server/hl1/hl1_npc_hornet.h b/game/server/hl1/hl1_npc_hornet.h
new file mode 100644
index 0000000..0f8ccc6
--- /dev/null
+++ b/game/server/hl1/hl1_npc_hornet.h
@@ -0,0 +1,76 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+#ifndef NPC_HORNET_H
+#define NPC_HORNET_H
+
+#include "hl1_ai_basenpc.h"
+
+//=========================================================
+// Hornets
+//=========================================================
+
+//=========================================================
+// Hornet Defines
+//=========================================================
+#define HORNET_TYPE_RED 0
+#define HORNET_TYPE_ORANGE 1
+#define HORNET_RED_SPEED (float)600
+#define HORNET_ORANGE_SPEED (float)800
+
+extern int iHornetPuff;
+
+//=========================================================
+// Hornet - this is the projectile that the Alien Grunt fires.
+//=========================================================
+class CNPC_Hornet : public CHL1BaseNPC
+{
+ DECLARE_CLASS( CNPC_Hornet, CHL1BaseNPC );
+public:
+
+ void Spawn( void );
+ void Precache( void );
+ Class_T Classify ( void );
+ Disposition_t IRelationType(CBaseEntity *pTarget);
+
+ void DieTouch ( CBaseEntity *pOther );
+ void DartTouch( CBaseEntity *pOther );
+ void TrackTouch ( CBaseEntity *pOther );
+ void TrackTarget ( void );
+ void StartDart ( void );
+ void IgniteTrail( void );
+ void StartTrack(void);
+
+
+ virtual unsigned int PhysicsSolidMaskForEntity( void ) const;
+ virtual bool ShouldGib( const CTakeDamageInfo &info ) { return false; }
+
+ /* virtual int Save( CSave &save );
+ virtual int Restore( CRestore &restore );
+ static TYPEDESCRIPTION m_SaveData[];
+
+
+ void EXPORT StartTrack ( void );
+
+ void EXPORT TrackTarget ( void );
+ void EXPORT TrackTouch ( CBaseEntity *pOther );
+ void EXPORT DartTouch( CBaseEntity *pOther );
+
+
+ int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );*/
+
+ float m_flStopAttack;
+ int m_iHornetType;
+ float m_flFlySpeed;
+ int m_flDamage;
+
+ DECLARE_DATADESC();
+
+ Vector m_vecEnemyLKP;
+};
+
+#endif //NPC_HORNET_H \ No newline at end of file