This commit is contained in:
FluorescentCIAAfricanAmerican
2020-04-22 12:56:21 -04:00
commit 3bf9df6b27
15370 changed files with 5489726 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef GRENADE_ROCKET_H
#define GRENADE_ROCKET_H
#ifdef _WIN32
#pragma once
#endif
#define ROCKET_VELOCITY 1000
//====================================================================================
// Purpose: ROCKET LAUNCHER SENTRYGUN'S ROCKETS
//====================================================================================
class CGrenadeRocket : public CBaseAnimating
{
DECLARE_CLASS( CGrenadeRocket, CBaseAnimating );
public:
DECLARE_DATADESC();
DECLARE_SERVERCLASS();
CGrenadeRocket();
void Spawn( void );
void Precache( void );
void MissileTouch( CBaseEntity *pOther );
void LockOnto( CBaseEntity *pTarget );
void FollowThink( void );
// Damage accessors.
virtual float GetDamage(void)
{
return m_flDamage;
}
virtual void SetDamage(float flDamage)
{
m_flDamage = flDamage;
}
virtual int GetDamageType() const
{
return DMG_BLAST;
}
static CGrenadeRocket *CGrenadeRocket::Create( const Vector &vecOrigin, const Vector &vecAngles, edict_t *pentOwner, CBaseEntity *pRealOwner );
public:
EHANDLE m_hLockTarget;
EHANDLE m_hOwner;
EHANDLE m_pRealOwner;
float m_flDamage;
};
#endif // GRENADE_ROCKET_H