public Glow(Memory Reader) { mem = Reader; ent = new GlowStruct() { r = 0 / 255f, g = 0 / 255f, b = 0 / 255f, a = 255 / 255f, rwo = true, rwuo = false }; }
private static void DrawValve(int GlowInd, GlowStruct col) { int GlowObj = 0x0; // IntPtr pntr; if (CheatData.panorama) { GlowObj = mem.Read <int>(CheatData.bClient + Offsets.New.dwGlowObjectManager); } else { GlowObj = mem.Read <int>(CheatData.bClient + Offsets.Old.dwGlowObjectManager); } mem.Write((GlowObj + ((GlowInd * 0x38) + 4)), col.r); mem.Write((GlowObj + ((GlowInd * 0x38) + 8)), col.g); mem.Write((GlowObj + ((GlowInd * 0x38) + 12)), col.b); mem.Write((GlowObj + ((GlowInd * 0x38) + 0x10)), 255f); mem.Write((GlowObj + ((GlowInd * 0x38) + 0x24)), true); mem.Write((GlowObj + ((GlowInd * 0x38) + 0x25)), false); }