diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/client/hl2/c_hl2_playerlocaldata.cpp | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/client/hl2/c_hl2_playerlocaldata.cpp')
| -rw-r--r-- | sp/src/game/client/hl2/c_hl2_playerlocaldata.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sp/src/game/client/hl2/c_hl2_playerlocaldata.cpp b/sp/src/game/client/hl2/c_hl2_playerlocaldata.cpp new file mode 100644 index 00000000..a28cce3d --- /dev/null +++ b/sp/src/game/client/hl2/c_hl2_playerlocaldata.cpp @@ -0,0 +1,52 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "c_hl2_playerlocaldata.h"
+#include "dt_recv.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+BEGIN_RECV_TABLE_NOBASE( C_HL2PlayerLocalData, DT_HL2Local )
+ RecvPropFloat( RECVINFO(m_flSuitPower) ),
+ RecvPropInt( RECVINFO(m_bZooming) ),
+ RecvPropInt( RECVINFO(m_bitsActiveDevices) ),
+ RecvPropInt( RECVINFO(m_iSquadMemberCount) ),
+ RecvPropInt( RECVINFO(m_iSquadMedicCount) ),
+ RecvPropBool( RECVINFO(m_fSquadInFollowMode) ),
+ RecvPropBool( RECVINFO(m_bWeaponLowered) ),
+ RecvPropEHandle( RECVINFO(m_hAutoAimTarget) ),
+ RecvPropVector( RECVINFO(m_vecAutoAimPoint) ),
+ RecvPropEHandle( RECVINFO(m_hLadder) ),
+ RecvPropBool( RECVINFO(m_bDisplayReticle) ),
+ RecvPropBool( RECVINFO(m_bStickyAutoAim) ),
+ RecvPropBool( RECVINFO(m_bAutoAimTarget) ),
+#ifdef HL2_EPISODIC
+ RecvPropFloat( RECVINFO(m_flFlashBattery) ),
+ RecvPropVector( RECVINFO(m_vecLocatorOrigin) ),
+#endif
+END_RECV_TABLE()
+
+BEGIN_PREDICTION_DATA_NO_BASE( C_HL2PlayerLocalData )
+ DEFINE_PRED_FIELD( m_hLadder, FIELD_EHANDLE, FTYPEDESC_INSENDTABLE ),
+END_PREDICTION_DATA()
+
+C_HL2PlayerLocalData::C_HL2PlayerLocalData()
+{
+ m_flSuitPower = 0.0;
+ m_bZooming = false;
+ m_iSquadMemberCount = 0;
+ m_iSquadMedicCount = 0;
+ m_fSquadInFollowMode = false;
+ m_bWeaponLowered = false;
+ m_hLadder = NULL;
+#ifdef HL2_EPISODIC
+ m_flFlashBattery = 0.0f;
+ m_vecLocatorOrigin = vec3_origin;
+#endif
+}
+
|