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.
60 lines
1.3 KiB
60 lines
1.3 KiB
//========= 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
|
|
|