Вопрос Guys how can i get all the chat messages ?

You can hook CreateNetChannel (NetworkSystemVersion001 26'th function) and then PostReceivedNetMessage.

C++:
Expand Collapse Copy
INetChannel* CreateNetChannel(CNetworkSystem* thisptr, int unk, void* ns_addr, const char* str, unsigned int uUnk, unsigned int uUnk2) {
    INetChannel* ret = oCreateNetChannel(thisptr, unk, ns_addr, str, uUnk, uUnk2);
   
    // Here you can hook ret's 86's function
}

// ......
void PostReceivedNetMessage(INetChannel* thisptr, NetMessageHandle_t* messageHandle, google::protobuf::Message* msg, NetChannelBufType_t const* type, int bits) {
// ......
}
(Indexes could be outdated)

But you have to deal w\ google::protobuf and it's kinda headache.
 
Назад
Сверху Снизу