for (size_t i = 0; i < 64; i++) {
uintptr_t Entity = read<uintptr_t>(clientdll + offEntityList + (i * 0x10)
int classID = read<int>(Entity + somethingIDontKnow)
if (classID == C4ID) {
Save the index or something...
}
}
void c4glow() {
for (int i = 0; i < 64; i++) {
DWORD Entity = mem.Read<DWORD>(modClient.dwBase + offEntityList + (i * 0x10));
int classID = mem.Read<int>(Entity + 0x00001690);
DWORD pointerGlow = mem.Read<DWORD>(modClient.dwBase + offGlow);
DWORD C4Obj = pointerGlow + i * sizeof(GlowObjectDefinition_t);
GlowObjectDefinition_t glowObj = mem.Read<GlowObjectDefinition_t>(C4Obj);
if (classID == 28) {
float v = 255, b = 255, a = 0, m = 255;
mem.Write<float>(C4Obj + 0x4, v / 255); //R
mem.Write<float>(C4Obj + 0x8, b / 255); //G
mem.Write<float>(C4Obj + 0xC, a / 255); //B
mem.Write<float>(C4Obj + 0x10, m); //THICKNESS
mem.Write<bool>(C4Obj + 0x28, true);
mem.Write<bool>(C4Obj + 0x25, false);
}
}
}
DWORD pointerGlow = mem.Read<DWORD>(modClient.dwBase + offGlow); //GLOW
int objectCount = mem.Read<int>(modClient.dwBase + offGlow + 0x4); //GLOW
for (int i = 1; i < 64; i++) { //LOOP
obj[i].dwBase = mem.Read<DWORD>(modClient.dwBase + offEntityList + i * 0x10); //GETOBJENTITYS
ReadData(&obj[i], false);
DWORD mObj = pointerGlow + i * sizeof(GlowObjectDefinition_t); //GLOW
GlowObjectDefinition_t glowObj = mem.Read<GlowObjectDefinition_t>(mObj); //GLOW
int classID = (obj[i].dwBase + offClassID); //Entity + offClassID?? And what is the offset of ClassID, dont found on Dumper netVar or Offsets
if (classID == CLASSID_C4) {
float a = 255, b = 255, c = 0;
mem.Write<float>(mObj + 0x4, a / 255); //R
mem.Write<float>(mObj + 0x8, b / 255); //G
mem.Write<float>(mObj + 0xC, c / 255); //B
mem.Write<float>(mObj + 0x10, 1.0f); //THICKNESS
mem.Write<BOOL>(mObj + 0x24, true); //TRUE
mem.Write<BOOL>(mObj + 0x25, false); //FALSE
}
}



