mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-23 06:36:54 +00:00
43 lines
1003 B
C
43 lines
1003 B
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose: Projectile shot by mortar synth
|
||
|
//
|
||
|
// $Workfile: $
|
||
|
// $Date: $
|
||
|
//
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// $Log: $
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
|
||
|
#ifndef GRENADEENERGY_H
|
||
|
#define GRENADEENERGY_H
|
||
|
|
||
|
#include "basegrenade_shared.h"
|
||
|
|
||
|
class CGrenadeEnergy : public CBaseGrenade
|
||
|
{
|
||
|
public:
|
||
|
DECLARE_CLASS( CGrenadeEnergy, CBaseGrenade );
|
||
|
|
||
|
static void Shoot( CBaseEntity* pOwner, const Vector &vStart, Vector vVelocity );
|
||
|
|
||
|
public:
|
||
|
void Spawn( void );
|
||
|
void Precache( void );
|
||
|
void Animate( void );
|
||
|
void GrenadeEnergyTouch( CBaseEntity *pOther );
|
||
|
void Event_Killed( const CTakeDamageInfo &info );
|
||
|
|
||
|
int m_flMaxFrame;
|
||
|
int m_nEnergySprite;
|
||
|
float m_flLaunchTime; // When was this thing launched
|
||
|
|
||
|
void EXPORT Detonate(void);
|
||
|
|
||
|
DECLARE_DATADESC();
|
||
|
};
|
||
|
|
||
|
#endif //GRENADEENERGY_H
|