Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

27 lines
849 B

//========= Copyright Valve Corporation, All rights reserved. ============//
//
//
//
//=============================================================================
#ifndef MERASMUS_ROCKET_H
#define MERASMUS_ROCKET_H
class CMerasmusThrowingGrenade : public Action< CMerasmus >
{
public:
CMerasmusThrowingGrenade( CTFPlayer* pTarget );
virtual ActionResult< CMerasmus > OnStart( CMerasmus *me, Action< CMerasmus > *priorAction );
virtual ActionResult< CMerasmus > Update( CMerasmus *me, float interval );
virtual void OnEnd( CMerasmus *me, Action< CMerasmus > *nextAction );
virtual const char *GetName( void ) const { return "Rocket"; } // return name of this action
private:
CHandle< CTFPlayer > m_hTarget;
CountdownTimer m_throwTimer;
CountdownTimer m_releaseGrenadeTimer;
PathFollower m_path;
};
#endif // MERASMUS_ROCKET_H