[Code] C4 Read

Posts 16–30 of 35 · Page 2 of 3
Quote Originally Posted by PhY'z View Post
sorry but should it be in? cause u wrote 2 time bool
He wrote bool instead of BOOL, which is typedef'd as an int, so basically when you do mem.Write<BOOL> you are basically doing mem.Write<int>, when you SHOULD be doing mem.Write<bool>.


Oh and btw, you can just take the the entity list offset like that, liek how you did in int getweap, that wont work..

It souhld be more like (100% PSEUDO):
Code:
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...
     }

}
Quote Originally Posted by Yemiez View Post
Sleeping 10 milliseconds will still not work well, how I do it:

Code:
 

//... in trigger

if (pLocal->Team != pEntity->Team) {
      srand(g_pEngine->Timer->GetTime());    
      g_pEngine->gMemory()->Write<int>(gContainer->_client + gAddress()->GetOffy()->Attack, 5);
      Sleep(rand() % 150);
      g_pEngine->gMemory()->Write<int>(gContainer->_client + gAddress()->GetOffy()->Attack, 4);
}

//...
Damn so many pointers!
Quote Originally Posted by LittleRoxo View Post
Damn so many pointers!
Yea I need to fix my damn engine, its getting annoying typing that shit out everytime lol
Stills nothing :/
Code:
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);
		}
	}
}
if (classID == 28) { are you sure that this is right?
Quote Originally Posted by tittentina View Post
if (classID == 28) { are you sure that this is right?
Yep as @-I-n-S-a-N-e- Said, and btw my code has changed, i think this one is "more correct" but i need the classID offset

Code:
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

		}
	}
Quote Originally Posted by PhY'z View Post
Yep as @-I-n-S-a-N-e- Said, and btw my code has changed, i think this one is "more correct" but i need the classID offset

Code:
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

		}
	}


classID =103 <- should work try it
Quote Originally Posted by tittentina View Post
classID =103 <- should work try it
Will not work since i dont have the offset of ClassID :/ and 103 is the planted C4, 28 is only the C4, first im trying to glow the c4 then if planted i will glow by other way :/ but thx maybe if u know the ClassID offset can u say it to me??
why not glow all object with this?

GlowObjectBase = 0x4B30324;
Quote Originally Posted by tittentina View Post
why not glow all object with this?

GlowObjectBase = 0x4B30324;
That will only glow all the objects no? so.. weapons and granades and CHICKEEEEEEEEEEENS omg chickens hahhahah btw cant get this to work, with or without GlowObjectBase :/
I managed to do it externally and tested it on a competitive game.
Here's the result:



PM me if you want me to explain how I did it, because I don't want my code going public
Quote Originally Posted by Block4o View Post
I managed to do it externally and tested it on a competitive game.
Here's the result:



PM me if you want me to explain how I did it, because I don't want my code going public
PMed .-. hahah
Quote Originally Posted by tittentina View Post
@PhY'z did you managed it ? i still stuck
Nop :/ but have to get the entity id
Quote Originally Posted by PhY'z View Post
Nop :/ but have to get the entity id
can you pm me the id?
Posts 16–30 of 35 · Page 2 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us