Team Fortress 2 Source Code as on 22/4/2020
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.

50 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef AI_BASEHUMANOID_H
  8. #define AI_BASEHUMANOID_H
  9. #include "ai_behavior.h"
  10. #include "ai_blended_movement.h"
  11. //-----------------------------------------------------------------------------
  12. // CLASS: CAI_BaseHumanoid
  13. //-----------------------------------------------------------------------------
  14. typedef CAI_BlendingHost< CAI_BehaviorHost<CAI_BaseNPC> > CAI_BaseHumanoidBase;
  15. class CAI_BaseHumanoid : public CAI_BaseHumanoidBase
  16. {
  17. DECLARE_CLASS( CAI_BaseHumanoid, CAI_BaseHumanoidBase );
  18. public:
  19. bool HandleInteraction(int interactionType, void *data, CBaseCombatCharacter* sourceEnt);
  20. // Tasks
  21. virtual void StartTask( const Task_t *pTask );
  22. virtual void RunTask( const Task_t *pTask );
  23. virtual void BuildScheduleTestBits( );
  24. // Navigation
  25. bool OnMoveBlocked( AIMoveResult_t *pResult );
  26. // Damage
  27. void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr, CDmgAccumulator *pAccumulator );
  28. // Various start tasks
  29. virtual void StartTaskRangeAttack1( const Task_t *pTask );
  30. // Various run tasks
  31. virtual void RunTaskRangeAttack1( const Task_t *pTask );
  32. // Purpose: check ammo
  33. virtual void CheckAmmo( void );
  34. };
  35. //-----------------------------------------------------------------------------
  36. #endif