summaryrefslogtreecommitdiff
path: root/game/shared/tf2/grenade_rocket.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/shared/tf2/grenade_rocket.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tf2/grenade_rocket.h')
-rw-r--r--game/shared/tf2/grenade_rocket.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/game/shared/tf2/grenade_rocket.h b/game/shared/tf2/grenade_rocket.h
new file mode 100644
index 0000000..e3f7d56
--- /dev/null
+++ b/game/shared/tf2/grenade_rocket.h
@@ -0,0 +1,60 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef GRENADE_ROCKET_H
+#define GRENADE_ROCKET_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#define ROCKET_VELOCITY 1000
+
+//====================================================================================
+// Purpose: ROCKET LAUNCHER SENTRYGUN'S ROCKETS
+//====================================================================================
+class CGrenadeRocket : public CBaseAnimating
+{
+ DECLARE_CLASS( CGrenadeRocket, CBaseAnimating );
+public:
+
+ DECLARE_DATADESC();
+ DECLARE_SERVERCLASS();
+
+ CGrenadeRocket();
+
+ void Spawn( void );
+ void Precache( void );
+ void MissileTouch( CBaseEntity *pOther );
+ void LockOnto( CBaseEntity *pTarget );
+ void FollowThink( void );
+
+ // Damage accessors.
+ virtual float GetDamage(void)
+ {
+ return m_flDamage;
+ }
+
+ virtual void SetDamage(float flDamage)
+ {
+ m_flDamage = flDamage;
+ }
+
+ virtual int GetDamageType() const
+ {
+ return DMG_BLAST;
+ }
+
+ static CGrenadeRocket *CGrenadeRocket::Create( const Vector &vecOrigin, const Vector &vecAngles, edict_t *pentOwner, CBaseEntity *pRealOwner );
+
+public:
+ EHANDLE m_hLockTarget;
+ EHANDLE m_hOwner;
+ EHANDLE m_pRealOwner;
+ float m_flDamage;
+};
+
+#endif // GRENADE_ROCKET_H