summaryrefslogtreecommitdiff
path: root/game/server/hl1/hl1_npc_snark.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_snark.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_snark.h')
-rw-r--r--game/server/hl1/hl1_npc_snark.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/game/server/hl1/hl1_npc_snark.h b/game/server/hl1/hl1_npc_snark.h
new file mode 100644
index 0000000..d28b489
--- /dev/null
+++ b/game/server/hl1/hl1_npc_snark.h
@@ -0,0 +1,57 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Projectile shot from the MP5
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+
+#ifndef NPC_SNARK_H
+#define NPC_SNARK_H
+
+
+#include "hl1_ai_basenpc.h"
+
+
+class CSnark : public CHL1BaseNPC
+{
+ DECLARE_CLASS( CSnark, CHL1BaseNPC );
+public:
+
+ DECLARE_DATADESC();
+
+ void Precache( void );
+ void Spawn( void );
+ Class_T Classify( void );
+ void Event_Killed( const CTakeDamageInfo &info );
+ bool Event_Gibbed( const CTakeDamageInfo &info );
+ void HuntThink( void );
+ void SuperBounceTouch( CBaseEntity *pOther );
+
+ virtual void ResolveFlyCollisionCustom( trace_t &trace, Vector &vecVelocity );
+
+ virtual unsigned int PhysicsSolidMaskForEntity( void ) const;
+
+ virtual bool ShouldGib( const CTakeDamageInfo &info ) { return false; }
+ static float m_flNextBounceSoundTime;
+
+ virtual bool IsValidEnemy( CBaseEntity *pEnemy );
+
+private:
+ Class_T m_iMyClass;
+ float m_flDie;
+ Vector m_vecTarget;
+ float m_flNextHunt;
+ float m_flNextHit;
+ Vector m_posPrev;
+ EHANDLE m_hOwner;
+};
+
+
+#endif // NPC_SNARK_H