summaryrefslogtreecommitdiff
path: root/game/shared/tf2/weapon_obj_empgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/tf2/weapon_obj_empgenerator.cpp')
-rw-r--r--game/shared/tf2/weapon_obj_empgenerator.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/game/shared/tf2/weapon_obj_empgenerator.cpp b/game/shared/tf2/weapon_obj_empgenerator.cpp
new file mode 100644
index 0000000..e1004da
--- /dev/null
+++ b/game/shared/tf2/weapon_obj_empgenerator.cpp
@@ -0,0 +1,37 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "tf_player.h"
+#include "tf_basecombatweapon.h"
+#include "tf_obj.h"
+#include "tf_obj_empgenerator.h"
+#include "weapon_basecombatobject.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Combat object weapon for the EMP Generator
+//-----------------------------------------------------------------------------
+class CWeaponObjEMPGenerator : public CWeaponBaseCombatObject
+{
+ DECLARE_CLASS( CWeaponObjEMPGenerator, CWeaponBaseCombatObject );
+public:
+ CWeaponObjEMPGenerator( void );
+
+ DECLARE_SERVERCLASS();
+};
+
+IMPLEMENT_SERVERCLASS_ST( CWeaponObjEMPGenerator, DT_WeaponObjEMPGenerator )
+END_SEND_TABLE()
+
+LINK_ENTITY_TO_CLASS( weapon_obj_empgenerator, CWeaponObjEMPGenerator );
+PRECACHE_WEAPON_REGISTER(weapon_obj_empgenerator);
+
+CWeaponObjEMPGenerator::CWeaponObjEMPGenerator( void )
+{
+ m_szObjectName = "obj_empgenerator";
+ m_vecBuildMins = EMPGENERATOR_MINS - Vector( 4,4,4 );
+ m_vecBuildMaxs = EMPGENERATOR_MAXS + Vector( 4,4,4 );
+} \ No newline at end of file