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.

52 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "cbase.h"
  8. #include "c_hl2_playerlocaldata.h"
  9. #include "dt_recv.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. BEGIN_RECV_TABLE_NOBASE( C_HL2PlayerLocalData, DT_HL2Local )
  13. RecvPropFloat( RECVINFO(m_flSuitPower) ),
  14. RecvPropInt( RECVINFO(m_bZooming) ),
  15. RecvPropInt( RECVINFO(m_bitsActiveDevices) ),
  16. RecvPropInt( RECVINFO(m_iSquadMemberCount) ),
  17. RecvPropInt( RECVINFO(m_iSquadMedicCount) ),
  18. RecvPropBool( RECVINFO(m_fSquadInFollowMode) ),
  19. RecvPropBool( RECVINFO(m_bWeaponLowered) ),
  20. RecvPropEHandle( RECVINFO(m_hAutoAimTarget) ),
  21. RecvPropVector( RECVINFO(m_vecAutoAimPoint) ),
  22. RecvPropEHandle( RECVINFO(m_hLadder) ),
  23. RecvPropBool( RECVINFO(m_bDisplayReticle) ),
  24. RecvPropBool( RECVINFO(m_bStickyAutoAim) ),
  25. RecvPropBool( RECVINFO(m_bAutoAimTarget) ),
  26. #ifdef HL2_EPISODIC
  27. RecvPropFloat( RECVINFO(m_flFlashBattery) ),
  28. RecvPropVector( RECVINFO(m_vecLocatorOrigin) ),
  29. #endif
  30. END_RECV_TABLE()
  31. BEGIN_PREDICTION_DATA_NO_BASE( C_HL2PlayerLocalData )
  32. DEFINE_PRED_FIELD( m_hLadder, FIELD_EHANDLE, FTYPEDESC_INSENDTABLE ),
  33. END_PREDICTION_DATA()
  34. C_HL2PlayerLocalData::C_HL2PlayerLocalData()
  35. {
  36. m_flSuitPower = 0.0;
  37. m_bZooming = false;
  38. m_iSquadMemberCount = 0;
  39. m_iSquadMedicCount = 0;
  40. m_fSquadInFollowMode = false;
  41. m_bWeaponLowered = false;
  42. m_hLadder = NULL;
  43. #ifdef HL2_EPISODIC
  44. m_flFlashBattery = 0.0f;
  45. m_vecLocatorOrigin = vec3_origin;
  46. #endif
  47. }