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.

50 lines
1.5 KiB

  1. //========= Copyright � 1996-2009, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //
  6. //=====================================================================================//
  7. #include "cbase.h"
  8. #include "c_movie_display.h"
  9. // memdbgon must be the last include file in a .cpp file!!!
  10. #include "tier0/memdbgon.h"
  11. IMPLEMENT_CLIENTCLASS_DT( C_MovieDisplay, DT_MovieDisplay, CMovieDisplay )
  12. RecvPropBool( RECVINFO( m_bEnabled ) ),
  13. RecvPropBool( RECVINFO( m_bLooping ) ),
  14. RecvPropString( RECVINFO( m_szMovieFilename ) ),
  15. RecvPropString( RECVINFO( m_szGroupName ) ),
  16. RecvPropBool( RECVINFO( m_bStretchToFill ) ),
  17. RecvPropBool( RECVINFO( m_bForcedSlave ) ),
  18. RecvPropBool( RECVINFO( m_bUseCustomUVs ) ),
  19. RecvPropFloat( RECVINFO( m_flUMin ) ),
  20. RecvPropFloat( RECVINFO( m_flUMax ) ),
  21. RecvPropFloat( RECVINFO( m_flVMin ) ),
  22. RecvPropFloat( RECVINFO( m_flVMax ) ),
  23. END_RECV_TABLE()
  24. C_MovieDisplay::C_MovieDisplay()
  25. {
  26. }
  27. C_MovieDisplay::~C_MovieDisplay()
  28. {
  29. }
  30. //-----------------------------------------------------------------------------
  31. // Purpose: Recieve a message from the server
  32. //-----------------------------------------------------------------------------
  33. void C_MovieDisplay::ReceiveMessage( int classID, bf_read &msg )
  34. {
  35. // Make sure our IDs match
  36. if ( classID != GetClientClass()->m_ClassID )
  37. {
  38. // Message is for subclass
  39. BaseClass::ReceiveMessage( classID, msg );
  40. return;
  41. }
  42. // currently we only get one message - that we want to take over as the master
  43. m_bWantsToBeMaster = true;
  44. }