π Visible chams.
Hi, guys. Now I tried to write a simple chamses
and i cant to change alpha channel.
Lets see: MChamsPlayer + dwclRender is R channel, MChamsPlayer + dwclRender + 0x1 - G channel, and +0x2 - B channel, but +0x3 - is not A channek. How to find it?
Code:
void VisibleChams()
{
for (;;Sleep(1)) {
if (RFI.VisibleChams) {
for (int i = 0; i < 64; i++) {
int MChamsPlayer = Mem.Read<int>(Client + dwEntity + (i * 0x10)); //
int MChamsCurPlayer = Mem.Read<int>(MChamsPlayer + dwTeam);
if (Get.Team() != MChamsCurPlayer) {
Mem.Write<int>((MChamsPlayer + dwclRender + 0x0), RFI.VB_R_E); // r
Mem.Write<int>((MChamsPlayer + dwclRender + 0x1), RFI.VB_G_E); // g
Mem.Write<int>((MChamsPlayer + dwclRender + 0x2), RFI.VB_B_E); // b
}
else {
Mem.Write<int>((MChamsPlayer + dwclRender + 0x0), -1); // r
Mem.Write<int>((MChamsPlayer + dwclRender + 0x1), -1); // g
Mem.Write<int>((MChamsPlayer + dwclRender + 0x2), -1); // b
}
if (!RFI.VisibleChamsTeam) {
int MChamsPlayer = Mem.Read<int>(Client + dwEntity + (i * 0x10));
int MChamsCurPlayer = Mem.Read<int>(MChamsPlayer + dwTeam);
if (Get.Team() == MChamsCurPlayer) {
Mem.Write<int>((MChamsPlayer + dwclRender + 0x0), RFI.VB_R_T); // r
Mem.Write<int>((MChamsPlayer + dwclRender + 0x1), RFI.VB_G_T); // g
Mem.Write<int>((MChamsPlayer + dwclRender + 0x2), RFI.VB_B_T); // b
}
}
}
}
else {
for (int i = 0; i < 64; i++) {
int MChamsPlayer = Mem.Read<int>(Client + dwEntity + (i * 0x10));
int MChamsCurPlayer = Mem.Read<int>(MChamsPlayer + dwTeam);
Mem.Write<int>((MChamsPlayer + dwclRender + 0x0), 255); // r
Mem.Write<int>((MChamsPlayer + dwclRender + 0x1), 255); // g
Mem.Write<int>((MChamsPlayer + dwclRender + 0x2), 255); // b
}
}
}
}
Lets see: MChamsPlayer + dwclRender is R channel, MChamsPlayer + dwclRender + 0x1 - G channel, and +0x2 - B channel, but +0x3 - is not A channek. How to find it?
