mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-29 09:33:00 +00:00
43 lines
928 B
C++
43 lines
928 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose: Projectile shot from the MP5
|
|
//
|
|
// $Workfile: $
|
|
// $Date: $
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
// $Log: $
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef GRENADEMP5_H
|
|
#define GRENADEMP5_H
|
|
|
|
#include "hl1_basegrenade.h"
|
|
|
|
#define MAX_MP5_NO_COLLIDE_TIME 0.2
|
|
|
|
class SmokeTrail;
|
|
class CWeaponMP5;
|
|
|
|
class CGrenadeMP5 : public CHL1BaseGrenade
|
|
{
|
|
DECLARE_CLASS( CGrenadeMP5, CHL1BaseGrenade );
|
|
public:
|
|
|
|
float m_fSpawnTime;
|
|
|
|
void Spawn( void );
|
|
void Precache( void );
|
|
void GrenadeMP5Touch( CBaseEntity *pOther );
|
|
void Event_Killed( CBaseEntity *pInflictor, CBaseEntity *pAttacker, float flDamage, int bitsDamageType );
|
|
|
|
public:
|
|
void EXPORT Detonate(void);
|
|
|
|
DECLARE_DATADESC();
|
|
};
|
|
|
|
#endif //GRENADEMP5_H
|