Skip to content

Commit 5fe0cee

Browse files
committed
11-5 fix
1 parent 88f3dde commit 5fe0cee

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

gamedata/cs2fixes.games.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"library" "server"
1212
"windows" "\x48\x8B\xC4\x4C\x89\x48\x20\x4C\x89\x40\x18\x48\x89\x50\x10\x48\x89\x48\x08\x55\x53\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x8D\xA8\xC8\xFD\xFF\xFF"
13-
"linux" "\x55\x66\x0F\xEF\xC0\x48\x89\xE5\x41\x57\x49\x89\xF7\x41\x56\x41\x55\x4D\x89\xC5"
13+
"linux" "\x55\x66\x0F\xEF\xC0\x48\x89\xE5\x41\x57\x41\x56\x49\x89\xF6\x41\x55\x49\x89\xD5"
1414
}
1515
//https://github.com/KZGlobalTeam/cs2kz-metamod/blob/f4ba43bd44dc3300bb78ca20006174935ba7964f/gamedata/cs2kz-core.games.txt#L217C4-L224C5
1616
// sub_18061AF90(a1, a2, ((a1 + 48) + 864i64) & 1); <- this one

src/cs2_sdk/entity/services.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ class CMoveData
289289
m_flSubtickStartFraction {source.m_flSubtickStartFraction},
290290
m_outWishVel {source.m_outWishVel},
291291
m_vecOldAngles {source.m_vecOldAngles},
292+
m_vecInputRotated {source.m_vecInputRotated},
293+
m_vecContinousAcceleration {source.m_vecContinousAcceleration},
294+
m_vecFrameVelocityDelta {source.m_vecFrameVelocityDelta},
292295
m_flMaxSpeed {source.m_flMaxSpeed},
293296
m_flClientMaxSpeed {source.m_flClientMaxSpeed},
294297
m_flSubtickAccelSpeed {source.m_flSubtickAccelSpeed},
@@ -354,6 +357,9 @@ class CMoveData
354357
bool m_nGameModeMovedPlayer;
355358
Vector m_outWishVel;
356359
Vector m_vecOldAngles;
360+
Vector m_vecInputRotated;
361+
Vector m_vecContinousAcceleration;
362+
Vector m_vecFrameVelocityDelta;
357363
float m_flMaxSpeed;
358364
float m_flClientMaxSpeed;
359365
float m_flSubtickAccelSpeed; // Related to ground acceleration subtick stuff with sv_stopspeed and friction
@@ -363,4 +369,8 @@ class CMoveData
363369
bool m_bGameCodeMovedPlayer; // true if usercmd cmd number == (m_nGameCodeHasMovedPlayerAfterCommand + 1)
364370
};
365371

366-
static_assert(sizeof(CMoveData) == 256, "Class didn't match expected size");
372+
#ifdef _WIN32
373+
static_assert(sizeof(CMoveData) == 312, "Class didn't match expected size");
374+
#else
375+
static_assert(sizeof(CMoveData) == 304, "Class didn't match expected size");
376+
#endif

src/recipientfilters.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,17 @@ class CRecipientFilter : public IRecipientFilter
7070
return std::popcount(bits);
7171
}
7272

73+
virtual CPlayerSlot GetExcludedPlayerDueToPrediction() const
74+
{
75+
return m_slotPlayerExcludedDueToPrediction;
76+
}
77+
7378
protected:
74-
NetChannelBufType_t m_nBufType;
75-
bool m_bInitMessage;
7679
CPlayerBitVec m_Recipients;
80+
CPlayerSlot m_slotPlayerExcludedDueToPrediction = -1;
81+
NetChannelBufType_t m_nBufType = BUF_DEFAULT;
82+
bool m_bInitMessage;
83+
bool m_bDoNotSuppressPrediction;
7784
};
7885

7986
// Simple filter for when only 1 recipient is needed

0 commit comments

Comments
 (0)