can't get true patter for m_dwglowobject for ages.

This was the old one.
Code:
// m_dwGlowObject

DWORD gpStartOMG = mem.FindPatternArr(modClient.dwBase, modClient.dwSize, "x????xxxx????xx?", 15, 0xE8, 0x0, 0x0, 0x0, 0x0, 0x83, 0xC4, 0x04, 0xB8, 0x0, 0x0, 0x0, 0x0, 0xC3, 0xCC);
offGlowobject = mem.Read<DWORD>(gpStartOMG + 9) - modClient.dwBase;
im sure there are good guys to help. (Don't tell use IDA like others it didn't help for old poly hack maybe it helpful for others idk)


and last thing

i've entitiylist and local player can i make a health based glow esp. i tried but many compile errors.

Code:
if (glowEnabled) {
			me.dwBase = mem.Read<DWORD>(modClient.dwBase + offLocalPlayer);
			ReadData(&me);
			for (int i = 1; i < 64; i++) {
				players[i].dwBase = mem.Read<DWORD>(modClient.dwBase + offEntityList + i * 0x10);
				ReadData(&players[i]);
			
			}
			
			for (int k = 1; k < 64; k++) {
				DWORD currentplayer = mem.Read<DWORD>(modClient.dwBase + offEntityList ((k - 1) * 32));
				1offHealth = mem.Read<int>(currentplayer + m_iHealth);
			}

			DWORD pointerGlow = mem.Read<DWORD>(modClient.dwBase + offGlow);
			int objectCount = mem.Read<int>(modClient.dwBase + offGlow + 0x4);
			if (pointerGlow != NULL) {
				for (int i = 0; i < objectCount; i++) {
					DWORD mObj = pointerGlow + i * 0x38;;
					GlowObjectDefinition_t glowObj = mem.Read<GlowObjectDefinition_t>(mObj);
					if (glowObj.pEntity != NULL) {
						int f_i = -1;
						for (int j = 1; j < 64; j++) {
							if (glowObj.pEntity == players[j].dwBase && 1offHealth >= 51 && 1offHealth < 121) {
								int r = 0, g = 255, b = 0;
								if (glowObj.pEntity == players[j].dwBase && 1offHealth > 0 && 1offHealth <= 50) {
									int r = 255, g = 0, b = 0;
								    if (players[j].team == me.team) {
									r = 255;
									g = 255;
									b = 255;
									}
								}
								mem.Write<float>(mObj + 0x4, r / 255);
								mem.Write<float>(mObj + 0x8, g / 255);
								mem.Write<float>(mObj + 0xC, b / 255);
								mem.Write<float>(mObj + 0x10, 1.f);
								mem.Write<BOOL>(mObj + 0x24, true);
								mem.Write<BOOL>(mObj + 0x25, false);
							}
learncpp.com is best i know.