You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
990 B
48 lines
990 B
5 years ago
|
//========= 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
|