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.
 
 
 
 
 
 

30 lines
1021 B

//========= Copyright Valve Corporation, All rights reserved. ============//
// tf_bot_mission_destroy_sentries.h
// Seek and destroy enemy sentries and ignore everything else
// Michael Booth, June 2011
#ifndef TF_BOT_MISSION_DESTROY_SENTRIES_H
#define TF_BOT_MISSION_DESTROY_SENTRIES_H
//-----------------------------------------------------------------------------
class CTFBotMissionDestroySentries : public Action< CTFBot >
{
public:
CTFBotMissionDestroySentries( CObjectSentrygun *goalSentry = NULL );
virtual ~CTFBotMissionDestroySentries() { }
virtual ActionResult< CTFBot > OnStart( CTFBot *me, Action< CTFBot > *priorAction );
virtual ActionResult< CTFBot > Update( CTFBot *me, float interval );
virtual void OnEnd( CTFBot *me, Action< CTFBot > *nextAction );
virtual const char *GetName( void ) const { return "MissionDestroySentries"; };
private:
CHandle< CObjectSentrygun > m_goalSentry;
CObjectSentrygun *SelectSentryTarget( CTFBot *me );
};
#endif // TF_BOT_MISSION_DESTROY_SENTRIES_H