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.

51 lines
1.2 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. #ifndef HL1_AI_BASENPC_H
  10. #define HL1_AI_BASENPC_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "ai_basenpc.h"
  15. #include "ai_motor.h"
  16. //=============================================================================
  17. // >> CHL1NPCTalker
  18. //=============================================================================
  19. class CHL1BaseNPC : public CAI_BaseNPC
  20. {
  21. DECLARE_CLASS( CHL1BaseNPC, CAI_BaseNPC );
  22. public:
  23. CHL1BaseNPC( void )
  24. {
  25. }
  26. void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr, CDmgAccumulator *pAccumulator );
  27. bool ShouldGib( const CTakeDamageInfo &info );
  28. bool CorpseGib( const CTakeDamageInfo &info );
  29. bool HasAlienGibs( void );
  30. bool HasHumanGibs( void );
  31. void Precache( void );
  32. int IRelationPriority( CBaseEntity *pTarget );
  33. bool NoFriendlyFire( void );
  34. void EjectShell( const Vector &vecOrigin, const Vector &vecVelocity, float rotation, int iType );
  35. virtual int SelectDeadSchedule();
  36. };
  37. #endif //HL1_AI_BASENPC_H