summaryrefslogtreecommitdiff
path: root/game/server/waterbullet.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/waterbullet.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/waterbullet.h')
-rw-r--r--game/server/waterbullet.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/game/server/waterbullet.h b/game/server/waterbullet.h
new file mode 100644
index 0000000..5fc8f9e
--- /dev/null
+++ b/game/server/waterbullet.h
@@ -0,0 +1,31 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Entity that simulates bullets that are underwater.
+//
+//=============================================================================//
+
+#ifndef WEAPON_WATERBULLET_H
+#define WEAPON_WATERBULLET_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#define WATER_BULLET_BUBBLES_PER_INCH 0.05f
+
+//=========================================================
+//=========================================================
+class CWaterBullet : public CBaseAnimating
+{
+ DECLARE_CLASS( CWaterBullet, CBaseAnimating );
+
+public:
+ void Precache();
+ void Spawn( const Vector &vecOrigin, const Vector &vecDir );
+ void Touch( CBaseEntity *pOther );
+ void BulletThink();
+
+ DECLARE_DATADESC();
+ DECLARE_SERVERCLASS();
+};
+
+#endif // WEAPON_WATERBULLET_H