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
737 B

//========= Copyright Valve Corporation, All rights reserved. ============//
// tf_bot_use_item.h
// Equip and consume an item
// Michael Booth, July 2011
#ifndef TF_BOT_USE_ITEM_H
#define TF_BOT_USE_ITEM_H
class CTFBotUseItem : public Action< CTFBot >
{
public:
CTFBotUseItem( CTFWeaponBase *item );
virtual ~CTFBotUseItem() { }
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 "UseItem"; };
private:
CHandle< CTFWeaponBase > m_item;
CountdownTimer m_cooldownTimer;
};
#endif // TF_BOT_USE_ITEM_H