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.

35 lines
855 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "cbase.h"
  8. #include "c_physbox.h"
  9. // memdbgon must be the last include file in a .cpp file!!!
  10. #include "tier0/memdbgon.h"
  11. IMPLEMENT_CLIENTCLASS_DT(C_PhysBox, DT_PhysBox, CPhysBox)
  12. RecvPropFloat(RECVINFO(m_mass), 0), // Test..
  13. END_RECV_TABLE()
  14. C_PhysBox::C_PhysBox()
  15. {
  16. }
  17. //-----------------------------------------------------------------------------
  18. // Should this object cast shadows?
  19. //-----------------------------------------------------------------------------
  20. ShadowType_t C_PhysBox::ShadowCastType()
  21. {
  22. if (IsEffectActive(EF_NODRAW | EF_NOSHADOW))
  23. return SHADOWS_NONE;
  24. return SHADOWS_RENDER_TO_TEXTURE;
  25. }
  26. C_PhysBox::~C_PhysBox()
  27. {
  28. }