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.

43 lines
1.4 KiB

  1. //====== Copyright � 1996-2009, Valve Corporation, All rights reserved. =======
  2. //
  3. // DmeEyeball
  4. //
  5. //=============================================================================
  6. // Valve includes
  7. #include "datamodel/dmelementfactoryhelper.h"
  8. #include "mdlobjects/dmeeyeball.h"
  9. #include "movieobjects/dmedag.h"
  10. #include "movieobjects/dmematerial.h"
  11. // memdbgon must be the last include file in a .cpp file!!!
  12. #include "tier0/memdbgon.h"
  13. //-----------------------------------------------------------------------------
  14. // Expose this class to the scene database
  15. //-----------------------------------------------------------------------------
  16. IMPLEMENT_ELEMENT_FACTORY( DmeEyeball, CDmeEyeball );
  17. //-----------------------------------------------------------------------------
  18. //
  19. //-----------------------------------------------------------------------------
  20. void CDmeEyeball::OnConstruction()
  21. {
  22. m_flRadius.InitAndSet( this, "radius", 0.5 );
  23. m_flYawAngle.InitAndSet( this, "angle", 2.0 );
  24. m_flIrisScale.InitAndSet( this, "irisScale", 1.0 );
  25. m_sMaterialName.Init( this, "materialName" );
  26. m_sParentBoneName.Init( this, "parentBoneName" );
  27. m_vPosition.Init( this, "position" );
  28. }
  29. //-----------------------------------------------------------------------------
  30. //
  31. //-----------------------------------------------------------------------------
  32. void CDmeEyeball::OnDestruction()
  33. {
  34. }