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.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ENVLASER_H
  8. #define ENVLASER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "baseentity.h"
  13. #include "beam_shared.h"
  14. #include "entityoutput.h"
  15. class CSprite;
  16. class CEnvLaser : public CBeam
  17. {
  18. DECLARE_CLASS( CEnvLaser, CBeam );
  19. public:
  20. void Spawn( void );
  21. void Precache( void );
  22. bool KeyValue( const char *szKeyName, const char *szValue );
  23. void TurnOn( void );
  24. void TurnOff( void );
  25. int IsOn( void );
  26. void FireAtPoint( trace_t &point );
  27. void StrikeThink( void );
  28. void InputTurnOn( inputdata_t &inputdata );
  29. void InputTurnOff( inputdata_t &inputdata );
  30. void InputToggle( inputdata_t &inputdata );
  31. DECLARE_DATADESC();
  32. string_t m_iszLaserTarget; // Name of entity or entities to strike at, randomly picked if more than one match.
  33. CSprite *m_pSprite;
  34. string_t m_iszSpriteName;
  35. Vector m_firePosition;
  36. float m_flStartFrame;
  37. };
  38. #endif // ENVLASER_H