summaryrefslogtreecommitdiff
path: root/game/shared/dod/weapon_dodsemiauto.cpp
diff options
context:
space:
mode:
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