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.

28 lines
908 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITYBLOCKER_H
  7. #define ENTITYBLOCKER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //==================================================================================================================
  12. // Entity Blocker
  13. //==================================================================================================================
  14. class CEntityBlocker : public CBaseEntity
  15. {
  16. DECLARE_CLASS( CEntityBlocker, CBaseEntity );
  17. public:
  18. static CEntityBlocker *Create( const Vector &origin, const Vector &mins, const Vector &maxs, CBaseEntity *pOwner = NULL, bool bBlockPhysics = false );
  19. void Spawn( void );
  20. bool TestCollision( const Ray_t &ray, unsigned int mask, trace_t& trace );
  21. };
  22. #endif // ENTITYBLOCKER_H