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.

41 lines
900 B

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef C_TRIGGERS_H
  7. #define C_TRIGGERS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "c_basetoggle.h"
  12. #include "triggers_shared.h"
  13. class C_BaseTrigger : public C_BaseToggle
  14. {
  15. DECLARE_CLASS( C_BaseTrigger, C_BaseToggle );
  16. DECLARE_CLIENTCLASS();
  17. public:
  18. bool m_bClientSidePredicted;
  19. };
  20. class C_BaseVPhysicsTrigger : public C_BaseEntity
  21. {
  22. DECLARE_CLASS( C_BaseVPhysicsTrigger , C_BaseEntity );
  23. DECLARE_CLIENTCLASS();
  24. public:
  25. //virtual bool PassesTriggerFilters(C_BaseEntity *pOther);
  26. protected:
  27. bool m_bDisabled;
  28. string_t m_iFilterName;
  29. //CHandle<class C_BaseFilter> m_hFilter; //CBaseFilter is not networked yet. Only really care about m_bDisabled for this first pass.
  30. };
  31. #endif // C_TRIGGERS_H