Skip to content

Commit 746961c

Browse files
ficool2mastercoms
authored andcommitted
Network m_flGravity on entities
1 parent d17631a commit 746961c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/game/client/c_baseentity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ BEGIN_RECV_TABLE_NOBASE(C_BaseEntity, DT_BaseEntity)
457457
RecvPropInt(RECVINFO(m_clrRender)),
458458
RecvPropInt(RECVINFO(m_iTeamNum)),
459459
RecvPropInt(RECVINFO(m_CollisionGroup)),
460+
RecvPropFloat(RECVINFO(m_flGravity)),
460461
RecvPropFloat(RECVINFO(m_flElasticity)),
461462
RecvPropFloat(RECVINFO(m_flShadowCastDistance)),
462463
RecvPropEHandle( RECVINFO(m_hOwnerEntity) ),

src/game/server/baseentity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ IMPLEMENT_SERVERCLASS_ST_NOBASE( CBaseEntity, DT_BaseEntity )
279279
SendPropInt (SENDINFO(m_clrRender), 32, SPROP_UNSIGNED),
280280
SendPropInt (SENDINFO(m_iTeamNum), TEAMNUM_NUM_BITS, 0),
281281
SendPropInt (SENDINFO(m_CollisionGroup), 5, SPROP_UNSIGNED),
282+
SendPropFloat (SENDINFO(m_flGravity)),
282283
SendPropFloat (SENDINFO(m_flElasticity), 0, SPROP_COORD),
283284
SendPropFloat (SENDINFO(m_flShadowCastDistance), 12, SPROP_UNSIGNED ),
284285
SendPropEHandle (SENDINFO(m_hOwnerEntity)),

src/game/server/baseentity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ class CBaseEntity : public IServerEntity
18721872
EHANDLE m_pBlocker;
18731873

18741874
// was pev->gravity;
1875-
float m_flGravity; // rename to m_flGravityScale;
1875+
CNetworkVar( float, m_flGravity ); // rename to m_flGravityScale;
18761876
// was pev->friction
18771877
CNetworkVarForDerived( float, m_flFriction );
18781878
CNetworkVar( float, m_flElasticity );

0 commit comments

Comments
 (0)