summaryrefslogtreecommitdiff
path: root/game/shared/dod/weapon_dodsemiauto.cpp
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/dod/weapon_dodsemiauto.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/dod/weapon_dodsemiauto.cpp')
-rw-r--r--game/shared/dod/weapon_dodsemiauto.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/game/shared/dod/weapon_dodsemiauto.cpp b/game/shared/dod/weapon_dodsemiauto.cpp
new file mode 100644
index 0000000..e0aaeaf
--- /dev/null
+++ b/game/shared/dod/weapon_dodsemiauto.cpp
@@ -0,0 +1,37 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "cbase.h"
+#include "weapon_dodsemiauto.h"
+
+IMPLEMENT_NETWORKCLASS_ALIASED( DODSemiAutoWeapon, DT_SemiAutoWeapon )
+
+BEGIN_NETWORK_TABLE( CDODSemiAutoWeapon, DT_SemiAutoWeapon )
+END_NETWORK_TABLE()
+
+#ifdef CLIENT_DLL
+BEGIN_PREDICTION_DATA( CDODSemiAutoWeapon )
+END_PREDICTION_DATA()
+#endif
+
+CDODSemiAutoWeapon::CDODSemiAutoWeapon()
+{
+}
+
+void CDODSemiAutoWeapon::Spawn()
+{
+ BaseClass::Spawn();
+}
+
+void CDODSemiAutoWeapon::PrimaryAttack( void )
+{
+ //Don't attack more than once on the same button press.
+ //m_bInAttack is set to false when the attack button is released
+
+ m_bInAttack = true;
+
+ BaseClass::PrimaryAttack();
+} \ No newline at end of file