This is wrong and copa pasta.

Code:
DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x8C32A0);
        if (pWeaponsPtr)
        {
            for (int i = 0; i < 512; i++)
            {
                DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
                if (pWeapon == NULL) continue;

                /* check weapon type here
                if (*(word*)(pWeapon + 0x002) != WEPCLASS_GRENADE) continue; 

                *(float*)(pWeapon + 0x754) = 0.0f;
            }
        }