diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/hl2/grenade_ar2.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/hl2/grenade_ar2.h')
| -rw-r--r-- | sp/src/game/server/hl2/grenade_ar2.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sp/src/game/server/hl2/grenade_ar2.h b/sp/src/game/server/hl2/grenade_ar2.h new file mode 100644 index 00000000..63e79678 --- /dev/null +++ b/sp/src/game/server/hl2/grenade_ar2.h @@ -0,0 +1,47 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Projectile shot from the AR2
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef GRENADEAR2_H
+#define GRENADEAR2_H
+
+#include "basegrenade_shared.h"
+
+#define MAX_AR2_NO_COLLIDE_TIME 0.2
+
+class SmokeTrail;
+class CWeaponAR2;
+
+class CGrenadeAR2 : public CBaseGrenade
+{
+public:
+ DECLARE_CLASS( CGrenadeAR2, CBaseGrenade );
+
+ CHandle< SmokeTrail > m_hSmokeTrail;
+ float m_fSpawnTime;
+ float m_fDangerRadius;
+
+
+ void Spawn( void );
+ void Precache( void );
+ void GrenadeAR2Touch( CBaseEntity *pOther );
+ void GrenadeAR2Think( void );
+ void Event_Killed( const CTakeDamageInfo &info );
+
+public:
+ void EXPORT Detonate(void);
+ CGrenadeAR2(void);
+
+ DECLARE_DATADESC();
+};
+
+#endif //GRENADEAR2_H
|