Exemplo n.º 1
0
        public static void GlowThread()
        {
            while (true)
            {
                for (int i = 0; i <= 64; i++)
                {
                    GlowEntityIdx = i; //glow entity index is at iterator

                    LocalPlayer     = KaiserMemory.ReadMemory <int>(ClientPtr + hazedumper.signatures.dwLocalPlayer);
                    GlowBasePtr     = KaiserMemory.ReadMemory <int>(ClientPtr + hazedumper.signatures.dwGlowObjectManager);
                    LocalTeam       = KaiserMemory.ReadMemory <int>(LocalPlayer + hazedumper.netvars.m_iTeamNum);
                    Glower          = KaiserMemory.ReadMemory <int>(ClientPtr + hazedumper.signatures.dwEntityList + (GlowEntityIdx - 1) * 0x10);
                    EntityGlowIndex = KaiserMemory.ReadMemory <int>(Glower + hazedumper.netvars.m_iGlowIndex);
                    GLLocalTeam     = KaiserMemory.ReadMemory <int>(Glower + 0xF4);
                    entityHealth    = KaiserMemory.ReadMemory <int>(Glower + 0x100);

                    if (GLLocalTeam != LocalTeam)
                    {
                        KaiserMemory.WriteMemory <float>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0x4), R);
                        KaiserMemory.WriteMemory <float>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0x8), G);
                        KaiserMemory.WriteMemory <float>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0xC), B);
                        KaiserMemory.WriteMemory <float>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0x10), ALFA);
                        KaiserMemory.WriteMemory <bool>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0x24), t);
                        KaiserMemory.WriteMemory <bool>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0x25), f);
                        KaiserMemory.WriteMemory <bool>(GlowBasePtr + ((EntityGlowIndex * 0x38) + 0x2C), f);
                    }

                    Thread.Sleep(1);
                }
            }
        }
        static void StartKaiserreich()
        {
            Console.Title = "KaiserWahre, Heil, Kaiser, Dir"; //b1g meme title

            KaiserMemory.initProc("csgo");                    //init process handle on CSGO process.
            ClientPtr = KaiserMemory.GetModuleBaseAdress("client");

            Thread glow = new Thread(new ThreadStart(Glow.GlowThread));

            glow.Start();
        }
        public static void GlowThread()
        {
            while (true)
            {
                for (int i = 0; i <= 64; i++)
                {
                    GlowEntityIdx = i; //glow entity index is at iterator

                    LocalPlayer     = KaiserMemory.ReadMemory <int>(ClientPtr + hazedumper.signatures.dwLocalPlayer);
                    GlowBasePtr     = KaiserMemory.ReadMemory <int>(ClientPtr + hazedumper.signatures.dwGlowObjectManager);
                    LocalTeam       = KaiserMemory.ReadMemory <int>(LocalPlayer + hazedumper.netvars.m_iTeamNum);
                    Glower          = KaiserMemory.ReadMemory <int>(ClientPtr + hazedumper.signatures.dwEntityList + (GlowEntityIdx - 1) * 0x10);
                    EntityGlowIndex = KaiserMemory.ReadMemory <int>(Glower + hazedumper.netvars.m_iGlowIndex);
                    GLLocalTeam     = KaiserMemory.ReadMemory <int>(Glower + 0xF4);
                    entityHealth    = KaiserMemory.ReadMemory <int>(Glower + 0x100);

                    SDK.GlowObjectDefinition obj = new SDK.GlowObjectDefinition();

                    if (GLLocalTeam != LocalTeam)
                    {
                        obj = KaiserMemory.ReadMemory <SDK.GlowObjectDefinition>(GlowBasePtr + (EntityGlowIndex * 0x38));

                        obj.r = 1.0f;
                        obj.g = 0.0f;
                        obj.b = 0.0f;
                        obj.a = 1.0f;
                        obj.m_bRenderWhenOccluded   = true;
                        obj.m_bRenderWhenUnoccluded = false;
                        obj.m_bFullBloom            = false;

                        KaiserMemory.WriteMemory <SDK.GlowObjectDefinition>(GlowBasePtr + (EntityGlowIndex * 0x38), obj);
                    }

                    Thread.Sleep(1);
                }
            }
        }