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.

75 lines
2.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef NPC_HORNET_H
  9. #define NPC_HORNET_H
  10. #include "hl1_ai_basenpc.h"
  11. //=========================================================
  12. // Hornets
  13. //=========================================================
  14. //=========================================================
  15. // Hornet Defines
  16. //=========================================================
  17. #define HORNET_TYPE_RED 0
  18. #define HORNET_TYPE_ORANGE 1
  19. #define HORNET_RED_SPEED (float)600
  20. #define HORNET_ORANGE_SPEED (float)800
  21. extern int iHornetPuff;
  22. //=========================================================
  23. // Hornet - this is the projectile that the Alien Grunt fires.
  24. //=========================================================
  25. class CNPC_Hornet : public CHL1BaseNPC
  26. {
  27. DECLARE_CLASS( CNPC_Hornet, CHL1BaseNPC );
  28. public:
  29. void Spawn( void );
  30. void Precache( void );
  31. Class_T Classify ( void );
  32. Disposition_t IRelationType(CBaseEntity *pTarget);
  33. void DieTouch ( CBaseEntity *pOther );
  34. void DartTouch( CBaseEntity *pOther );
  35. void TrackTouch ( CBaseEntity *pOther );
  36. void TrackTarget ( void );
  37. void StartDart ( void );
  38. void IgniteTrail( void );
  39. void StartTrack(void);
  40. virtual unsigned int PhysicsSolidMaskForEntity( void ) const;
  41. virtual bool ShouldGib( const CTakeDamageInfo &info ) { return false; }
  42. /* virtual int Save( CSave &save );
  43. virtual int Restore( CRestore &restore );
  44. static TYPEDESCRIPTION m_SaveData[];
  45. void EXPORT StartTrack ( void );
  46. void EXPORT TrackTarget ( void );
  47. void EXPORT TrackTouch ( CBaseEntity *pOther );
  48. void EXPORT DartTouch( CBaseEntity *pOther );
  49. int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );*/
  50. float m_flStopAttack;
  51. int m_iHornetType;
  52. float m_flFlySpeed;
  53. int m_flDamage;
  54. DECLARE_DATADESC();
  55. Vector m_vecEnemyLKP;
  56. };
  57. #endif //NPC_HORNET_H