bool c4_present = false;
for (int i = 0; i < 8; i++) {
DWORD hActiveWeapon = Game.Read<DWORD>(EntBase + O.m_hMyWeapons + i * 0x4) & 0xFFF;
DWORD EntWeapon = Game.Read<DWORD>(ClientDll + O.dwEntityList + (hActiveWeapon - 1) * 16);
int defIndex = Game.Read<int>(EntWeapon + O.m_iItemDefinitionIndex);
if (defIndex == weapon_c4_explosive) //49
c4_present = true;
}