summaryrefslogtreecommitdiff
path: root/game/client/hl2/c_hl2_playerlocaldata.cpp
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/hl2/c_hl2_playerlocaldata.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/hl2/c_hl2_playerlocaldata.cpp')
-rw-r--r--game/client/hl2/c_hl2_playerlocaldata.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/game/client/hl2/c_hl2_playerlocaldata.cpp b/game/client/hl2/c_hl2_playerlocaldata.cpp
new file mode 100644
index 0000000..469bd4e
--- /dev/null
+++ b/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
+}
+