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.

38 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Base combat character with no AI
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #include "ai_baseactor.h"
  10. #include "npc_playercompanion.h"
  11. #include "ai_behavior_holster.h"
  12. class CNPC_Alyx : public CNPC_PlayerCompanion
  13. {
  14. public:
  15. DECLARE_CLASS( CNPC_Alyx, CNPC_PlayerCompanion );
  16. bool CreateBehaviors();
  17. void Spawn( void );
  18. void SelectModel();
  19. void Precache( void );
  20. void SetupAlyxWithoutParent( void );
  21. void CreateEmpTool( void );
  22. void PrescheduleThink( void );
  23. Class_T Classify ( void );
  24. void HandleAnimEvent( animevent_t *pEvent );
  25. Activity NPC_TranslateActivity ( Activity activity );
  26. void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr, CDmgAccumulator *pAccumulator );
  27. bool ShouldLookForBetterWeapon() { return false; }
  28. bool IsReadinessCapable() { return false; }
  29. void DeathSound( const CTakeDamageInfo &info );
  30. EHANDLE m_hEmpTool;
  31. DECLARE_DATADESC();
  32. DEFINE_CUSTOM_AI;
  33. };