source-engine/game/server/hl1/hl1_grenade_mp5.h
2022-04-16 12:05:19 +03:00

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