summaryrefslogtreecommitdiff
path: root/game/shared/tfc/nailgun_nail.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/tfc/nailgun_nail.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tfc/nailgun_nail.h')
-rw-r--r--game/shared/tfc/nailgun_nail.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/game/shared/tfc/nailgun_nail.h b/game/shared/tfc/nailgun_nail.h
new file mode 100644
index 0000000..29dde18
--- /dev/null
+++ b/game/shared/tfc/nailgun_nail.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef NAILGUN_NAIL_H
+#define NAILGUN_NAIL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+class CTFNailgunNail : public CBaseAnimating
+{
+public:
+ DECLARE_CLASS( CTFNailgunNail, CBaseAnimating );
+ DECLARE_DATADESC();
+
+ void Spawn();
+ void Precache();
+
+ // Functions to create all the various types of nails.
+ static CTFNailgunNail *CreateNail( bool fSendClientNail, Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, CBaseEntity *pLauncher, bool fCreateClientNail );
+ static CTFNailgunNail *CreateSuperNail( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, CBaseEntity *pLauncher );
+ static CTFNailgunNail *CreateTranqNail( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, CBaseEntity *pLauncher );
+ static CTFNailgunNail *CreateRailgunNail( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, CBaseEntity *pLauncher );
+ static CTFNailgunNail *CreateNailGrenNail( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, CBaseEntity *pNailGren );
+
+
+private:
+
+ void RailgunNail_Think();
+ void NailTouch( CBaseEntity *pOther );
+ void TranqTouch( CBaseEntity *pOther );
+ void RailgunNailTouch( CBaseEntity *pOther );
+
+
+private:
+ Vector m_vecPreviousVelocity;
+ int m_iDamage; // How much damage this nail does when it hits an enemy.
+};
+
+
+#endif // NAILGUN_NAIL_H