aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/hl2mp/grenade_tripmine.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/hl2mp/grenade_tripmine.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/hl2mp/grenade_tripmine.h')
-rw-r--r--sp/src/game/server/hl2mp/grenade_tripmine.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/sp/src/game/server/hl2mp/grenade_tripmine.h b/sp/src/game/server/hl2mp/grenade_tripmine.h
new file mode 100644
index 00000000..bfebcc35
--- /dev/null
+++ b/sp/src/game/server/hl2mp/grenade_tripmine.h
@@ -0,0 +1,56 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef GRENADE_TRIPMINE_H
+#define GRENADE_TRIPMINE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "basegrenade_shared.h"
+
+class CBeam;
+
+
+class CTripmineGrenade : public CBaseGrenade
+{
+public:
+ DECLARE_CLASS( CTripmineGrenade, CBaseGrenade );
+
+ CTripmineGrenade();
+ void Spawn( void );
+ void Precache( void );
+
+#if 0 // FIXME: OnTakeDamage_Alive() is no longer called now that base grenade derives from CBaseAnimating
+ int OnTakeDamage_Alive( const CTakeDamageInfo &info );
+#endif
+ void WarningThink( void );
+ void PowerupThink( void );
+ void BeamBreakThink( void );
+ void DelayDeathThink( void );
+ void Event_Killed( const CTakeDamageInfo &info );
+
+ void MakeBeam( void );
+ void KillBeam( void );
+
+public:
+ EHANDLE m_hOwner;
+
+private:
+ float m_flPowerUp;
+ Vector m_vecDir;
+ Vector m_vecEnd;
+ float m_flBeamLength;
+
+ CBeam *m_pBeam;
+ Vector m_posOwner;
+ Vector m_angleOwner;
+
+ DECLARE_DATADESC();
+};
+
+#endif // GRENADE_TRIPMINE_H