summaryrefslogtreecommitdiff
path: root/game/server/hl2/grenade_pathfollower.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/hl2/grenade_pathfollower.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/hl2/grenade_pathfollower.h')
-rw-r--r--game/server/hl2/grenade_pathfollower.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/game/server/hl2/grenade_pathfollower.h b/game/server/hl2/grenade_pathfollower.h
new file mode 100644
index 0000000..5b2247b
--- /dev/null
+++ b/game/server/hl2/grenade_pathfollower.h
@@ -0,0 +1,52 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Projectile shot by wasteland scanner
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef GRENADEPATHFOLLOWER_H
+#define GRENADEPATHFOLLOWER_H
+
+#include "basegrenade_shared.h"
+
+class RocketTrail;
+
+class CGrenadePathfollower : public CBaseGrenade
+{
+public:
+ DECLARE_CLASS( CGrenadePathfollower, CBaseGrenade );
+
+ static CGrenadePathfollower* CreateGrenadePathfollower( string_t sModelName, string_t sFlySound, const Vector &vecOrigin, const QAngle &vecAngles, edict_t *pentOwner );
+
+ CHandle<RocketTrail> m_hRocketTrail;
+ CBaseEntity* m_pPathTarget; // path corner we are heading towards
+ float m_flFlySpeed;
+ string_t m_sFlySound;
+ float m_flNextFlySoundTime;
+
+ Class_T Classify( void);
+ void Spawn( void );
+ void AimThink( void );
+ void GrenadeTouch( CBaseEntity *pOther );
+ void Event_Killed( const CTakeDamageInfo &info );
+ void Launch( float flLaunchSpeed, string_t sPathCornerName);
+ void PlayFlySound(void);
+
+ void EXPORT Detonate(void);
+
+ CGrenadePathfollower(void);
+ ~CGrenadePathfollower(void);
+
+ virtual void Precache();
+
+ DECLARE_DATADESC();
+};
+
+#endif //GRENADEPATHFOLLOWER_H