Counter Strike : Global Offensive Source Code
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.

67 lines
1.7 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MODELENTITIES_H
  8. #define MODELENTITIES_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "positionwatcher.h"
  13. //!! replace this with generic start enabled/disabled
  14. #define SF_WALL_START_OFF 0x0001
  15. #define SF_IGNORE_PLAYERUSE 0x0002
  16. //-----------------------------------------------------------------------------
  17. // Purpose: basic solid geometry
  18. // enabled state: brush is visible
  19. // disabled staute: brush not visible
  20. //-----------------------------------------------------------------------------
  21. class CFuncBrush : public CBaseEntity
  22. {
  23. public:
  24. DECLARE_CLASS( CFuncBrush, CBaseEntity );
  25. virtual void Spawn( void );
  26. virtual void Activate( void );
  27. bool CreateVPhysics( void );
  28. virtual int ObjectCaps( void ) { return HasSpawnFlags(SF_IGNORE_PLAYERUSE) ? BaseClass::ObjectCaps() : BaseClass::ObjectCaps() | FCAP_IMPULSE_USE; }
  29. virtual int DrawDebugTextOverlays( void );
  30. void TurnOff( void );
  31. void TurnOn( void );
  32. // Input handlers
  33. void InputTurnOff( inputdata_t &inputdata );
  34. void InputTurnOn( inputdata_t &inputdata );
  35. void InputToggle( inputdata_t &inputdata );
  36. void InputSetExcluded( inputdata_t &inputdata );
  37. void InputSetInvert( inputdata_t &inputdata );
  38. enum BrushSolidities_e {
  39. BRUSHSOLID_TOGGLE = 0,
  40. BRUSHSOLID_NEVER = 1,
  41. BRUSHSOLID_ALWAYS = 2,
  42. };
  43. BrushSolidities_e m_iSolidity;
  44. int m_iDisabled;
  45. string_t m_iszExcludedClass;
  46. bool m_bSolidBsp;
  47. bool m_bInvertExclusion;
  48. DECLARE_DATADESC();
  49. DECLARE_SERVERCLASS();
  50. virtual bool IsOn( void );
  51. };
  52. #endif // MODELENTITIES_H