Начинающий
-
Автор темы
- #1
SChannelAntiSpamCfg:
class SChannelAntiSpamCfg
{
public:
CTimeValue highFrequency;
CTimeValue lowFrequency;
CTimeValue notifFrequency;
};
ELobbyChatChannel:
enum ELobbyChatChannel {
eCC_First = 0x0,
eCC_Global = 0x0,
eCC_Room = 0x1,
eCC_Team = 0x2,
eCC_Clan = 0x3,
eCC_Observer = 0x4,
eCC_Whisper = 0x5,
eCC_Count = 0x6,
};
CMUCChannel:
class CMUCChannel {
public:
void AddServiceMessage(const char* message) {
vtable<void>(this, 0x18, message);
}
bool SendMessage(const char* message) {
return vtable<bool>(this, 0x20, message);
}
char pad_0000[88]; //0x0000
SChannelAntiSpamCfg channelAntispamCfgs; //0x0058
}
CLobbyChat:
class CLobbyChat {
public:
CMUCChannel* GetChannel(ELobbyChatChannel channel) {
return [I]reinterpret_cast<CMUCChannel*[/I]>(this + 0x28);
}
};
CGame:
class CGame {
public:
CLobbyChat* m_pLobbyChat() {
return [I]reinterpret_cast<CLobbyChat*[/I]>(this + 0x238);
}
}
using:
using
if (SpamChat) {
auto m_pLobbyChat = pGame->m_pLobbyChat();
auto pChannel = m_pLobbyChat->GetChannel();
if (pChannel) {
pChannel->channelAntispamCfgs.lowFrequency = 0.f;
pChannel->channelAntispamCfgs.highFrequency = 0.f;
pChannel->channelAntispamCfgs.notifFrequency = 0.f;
if (startSpam) {
switch (var_spam)
{
case 1:
pChannel->SendMessage("Текст")
break;
case 2:
pChannel->AddServiceMessage("Текст")
break;
default: break;
}
}
}
}
Последнее редактирование: