C# Bomb Info [EXTERNAL]

Posts 1–6 of 6 · Page 1 of 1
[Help] C# Bomb Info [EXTERNAL]
So I was twidling with an idea of doing some esp and possibly overlay stuff for my hack. However, when I went to go about it I was unsure of how to do it. So I am curios how I would get the defuse length, countdown and c4blow. I have tried 3 different methods of which I figured were wrong but with no avail. I was curious if you can lead me to where and what I am missing.

Code:
Globals.c4blow = ReadMemory<float>((int)g_pClient + Offsets.offsetList["m_flC4Blow"]);
                    Globals.defusecount = ReadMemory<float>((int)g_pClient + Offsets.offsetList["m_flDefuseCountDown"]);
                    Globals.defuselength = ReadMemory<float>((int)g_pClient + Offsets.offsetList["m_flDefuseLength"]);
I have tried g_pClient, dwLocalPlayer, and dwEntityList (up to 64). Am I missing something. I know its gonna be fairly obvious but it seems to always be that way...

Thank you ahead of time for your guys help. It is greatly appreciated!
u can prolly lookup one for c++ and convert it
Quote Originally Posted by CraftedChamp. View Post
u can prolly lookup one for c++ and convert it
I have in the past and currently and really haven't found anything that really helps me...
So I didn't exactly figure out how to get the above stuff just yet but this code should help

Code:
----------- Variables

            static int bombTime = 0;
            static Stopwatch stopwatch = new Stopwatch();

----------- Main Code

            int bombBase = ReadMemory<int>((int)g_pClient + Offsets.offsetList["dwGameRulesProxy"]);
            bool BombPlanted = ReadMemory<bool>(bombBase + Offsets.offsetList["m_bBombPlanted"]);
            int Local = ReadMemory<int>((int)g_pClient + Offsets.offsetList["dwLocalPlayer"]);

            if (BombPlanted && !stopwatch.IsRunning)
            {
                stopwatch.Start();
            }
            else if (!BombPlanted)
            {
                Globals.bBombPlanted = false;
                Globals.iTimeLeft = 0;
                bombTime = 0;
                stopwatch.Stop();
                stopwatch.Reset();
            }
            if (BombPlanted && stopwatch.IsRunning && !M8) //M& is team checking
            {
                Globals.bBombPlanted = true;
                bombTime = (int)stopwatch.ElapsedMilliseconds;
                if (ReadMemory<bool>(Local + Offsets.offsetList["m_bHasDefuser"]) && bombTime < 35000)
                {
                    Globals.iTimeLeft = 35000 - bombTime;
                }
                else if (bombTime < 30000)
                {
                    Globals.iTimeLeft = 30000 - bombTime;
                }
                else
                {
                    Globals.iTimeLeft = 0;
                }
            }



----------- Glow Code
                bool defusing = ReadMemory<bool>(EntBase + Offsets.offsetList["m_bIsDefusing"]);
                bool hasKit = ReadMemory<bool>(EntBase + Offsets.offsetList["m_bHasDefuser"]);
                int iTime = Globals.iTimeLeft;
                if (defusing)
                {
                    if (hasKit)
                    {
                        iTime -= 5000;
                        if (iTime <= 0)
                        {
                            GlowObj.r = 1.0f;
                            GlowObj.g = 1.0f;
                            GlowObj.b = 1.0f;
                        }
                        else
                        {
                            GlowObj.r = 0f;
                            GlowObj.g = 0.5f;
                            GlowObj.b = 1.0f;
                        }
                    }
                    else
                    {
                        if (iTime <= 0)
                        {
                            GlowObj.r = 1f;
                            GlowObj.g = 1f;
                            GlowObj.b = 1f;
                        }
                        else
                        {
                            GlowObj.r = 0.5f;
                            GlowObj.g = 0f;
                            GlowObj.b = 1.0f;
                        }
                    }

If you guys have any questions. I will do my best to respond.
I am still working on improving this hack so I will post an update here once that is done...
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us