❓ No Flash won't work or crash

Posts 1–15 of 22 · Page 1 of 2
❓ No Flash won't work or crash
Hi
I ran into a problem with No Flash.
I don't know what offsets to use...
It would not work or crash..


Code:
if (flashEnabled) {
	if ((mem.Read<float>(dwLocal + dwFlash)) > 0.0f) {
		mem.Write<float>(dwLocal + dwFlash, 0.0f);
	}
}
Where:
  • flashEnabled = ignore, toggle var (boolean)
  • dwLocal = localPlayer (DWORD) (0xA4B98C)
  • dwFlash = flashbangMaxAlpha (DWORD) (0x1DA4)


Do I need to use dllClient + dwLocal instead of dwLocal ? Also, what type (DWORD, INT32, ??) ?
Do I need flashbangDuration instead of flashbangMaxAlpha
Do I need to use netvars instead of offsets ?

Sorry if I sound noobish, i'm new to C++.
Thanks
Code:
if (NoFlash)
{
    if ((Mem.ReadFloat(LocalPly + 0x1D9C)) > 0.0f)
    {
         Mem.WriteFloat(LocalPly + 0x1D9C, 0.0f);
    }
}
else if (Mem.ReadFloat(LocalPly + 0x1D9C) == 0.0f)
{
    Mem.WriteFloat(LocalPly + 0x1D9C, 255.0f);
}
Credits to corbel.
Quote Originally Posted by Yemiez View Post
Code:
if (NoFlash)
{
    if ((Mem.ReadFloat(LocalPly + 0x1D9C)) > 0.0f)
    {
         Mem.WriteFloat(LocalPly + 0x1D9C, 0.0f);
    }
}
else if (Mem.ReadFloat(LocalPly + 0x1D9C) == 0.0f)
{
    Mem.WriteFloat(LocalPly + 0x1D9C, 255.0f);
}
Credits to corbel.
That is exactly the example I followed ! But, for which offset does 0x1D9C stand for ? Isn't it outdated ?
Also, localPly ? My code is good right ?
Quote Originally Posted by NightDev View Post
That is exactly the example I followed ! But, for which offset does 0x1D9C stand for ? Isn't it outdated ?
Also, localPly ? My code is good right ?
Dont know, I haven't tried it myself, I only saw it in some random code snippet compilation stuff
Hmm...
I think I need to use the PModule struct to transform modClient (client.dll handle) from PModule in DWORD and then combine it with dwFlashMaxAlpha... i'ma give it a try.
Thank you anyway for your time !
Off-Topic: Nice sig bro xD ! "I wanna work as a coder but i find it borin as fak" LOL
Quote Originally Posted by NightDev View Post
Hmm...
I think I need to use the PModule struct to transform modClient (client.dll handle) from PModule in DWORD and then combine it with dwFlashMaxAlpha... i'ma give it a try.
Thank you anyway for your time !
Off-Topic: Nice sig bro xD ! "I wanna work as a coder but i find it borin as fak" LOL
Use this memory class which is a combination of PMemory and ProcMem, it will RPM/WPM:
http://pastebin.com/2w5fWhH3 <- Header
http://pastebin.com/JXezXVxm <- Source
Quote Originally Posted by Yemiez View Post
Use this memory class which is a combination of PMemory and ProcMem, it will RPM/WPM
Woooo *_* ! Nice job. I'm gonna use it in my project.
Very nice
//Bump!
Does anyone know the new offset for this ? 0x1D9C doesn't work anymore!
This looks like it could be the right one, its flashDuration offset: 0x1DA8
Quote Originally Posted by Yemiez View Post
This looks like it could be the right one, its flashDuration offset: 0x1DA8
Doesn't work...
Edit: What is it? Integer or Float ?
Edit 2: Nope, doesn't work...
Quote Originally Posted by NightDev View Post
Doesn't work...
Edit: What is it? Integer or Float ?
Edit 2: Nope, doesn't work...
Should be float, but I dont know, I've never done NoFlash before.
Does anyone else know ?
DWORD PlayerBase = mem.Read<DWORD>(DwClient + DwLocalPlayer);

if ((mem.Read<float>(PlayerBase + 0x1D9C)) > 0.0f)
{
mem.Write<float>(PlayerBase + 0x1D9C, 0.0f);
}

Your just using local player offset, you have to add that to the client.dll for it too work..
Quote Originally Posted by slayer0100 View Post
DWORD PlayerBase = mem.Read<DWORD>(DwClient + DwLocalPlayer);

if ((mem.Read<float>(PlayerBase + 0x1D9C)) > 0.0f)
{
mem.Write<float>(PlayerBase + 0x1D9C, 0.0f);
}

Your just using local player offset, you have to add that to the client.dll for it too work..
Works... but it flashes my screen in continue...
Is there another offset to completely remove the flash?
Quote Originally Posted by NightDev View Post
Works... but it flashes my screen in continue...
Is there another offset to completely remove the flash?
Your check might be to slow, hence the flashing

- - - Updated - - -

Quote Originally Posted by NightDev View Post
Works... but it flashes my screen in continue...
Is there another offset to completely remove the flash?
I removed setting it back to 255.0f if it was == 0.0f since that was what made it blink.
I tried making this no flash, it wasn't much of a "struggle" really, you should've been able to experiment and found out why it wasn't working

 
spoon feed :P

Code:
PMem Mem;

const DWORD localPlayer = 0xA4B98C;
const DWORD FlashDuration = 0x1DA8;

void setFlash(DWORD _base, float _val);
void noFlash();
DWORD module;

int main()
{
    Mem.Process("csgo.exe");
    module = Mem.Module("client.dll");
    while(true)
    {
        noFlash();
        Sleep(1);
    }

}
bool fStat;
std::string fVal = "Disabled!\n";

void noFlash()
{
    if (GetAsyncKeyState(VK_F1) & 0x8000)
    {
        fStat = !fStat;
        if (fStat) fVal = "Enabled!\n";
        else fVal = "Disabled!\n";
        std::cout << "No flas is: " << fVal;
        Sleep(250);
    }

    if (fStat)
    {
        DWORD pLocal = Mem.Read<DWORD>(module + localPlayer);
        if (Mem.Read<float>(pLocal + FlashDuration) > 0.0f)
        {
               setFlash(pLocal, 0.0f);
        }
        //else if (Mem.Read<float>(pLocal + FlashDuration) == 0.0f)
        //{
            //setFlash(pLocal, 255.0f); // Removed this one because that made it blink, If you're doing a multihack,
            //I'd set your flash dur back to 255.o for safety
        //}
    }
       else if (!fStat)
       {
              
              if (Mem.Read<float>(pLocal + FlashDuration) == 0.0f)
             {
             DWORD pLocal = Mem.Read<DWORD>(module + localPlayer);
             setFlash(pLocal, 255.0f);
             }
       }
}

void setFlash(DWORD _base, float _val)
{
    Mem.Write<float>(_base + FlashDuration, _val);
}
Posts 1–15 of 22 · Page 1 of 2

Post a Reply

Similar Threads

Talk with us