- 55
- 126
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Extracted from https://github.com/Stickey21/Stealth-Remastered
C++:
bool __fastcall hkRPC(void* _this, void* pUnknown, int* uniqueID, BitStream* bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp)
{
if (*uniqueID == 181) //CAC_CHEAT_DETECT
return false;
if (*uniqueID == 183) //CAC_CHALLENGE
{
bitStream->SetReadOffset(32);
int iSize = bitStream->GetNumberOfBytesUsed() - 4;
BYTE byteData[26];
for (int i = 0; i < iSize; ++i)
bitStream->Read<BYTE>(byteData[i]);
bitStream->Reset();
bitStream->Write(0x00);
for (int i = 0; i < iSize; ++i)
bitStream->Write<BYTE>(byteData[i]);
}
return oRPC(_this, uniqueID, bitStream, priority, reliability, orderingChannel, shiftTimestamp);
}