示例#1
0
void readPlayerPointAndHealth(mach_vm_address_t imgbase, uint32_t startAddress, int iTeamNum) {
    int m_iGlowIndex = 0xA2D0;
    uint32_t memoryAddress;
    int glowIndex;
    int playerBase = 0xED1844;
    printf("----------updated----------\n");
    for (int i = 0; i < 0x60; i++) {
        if (readIntMam(csgo, current, imgbase + playerBase + 0x10 * i, &memoryAddress) == -1)//Entetiy address
            continue;
        if (memoryAddress == 0x0)//is nullpointer
            continue;
        if (readIntMam(csgo, current, memoryAddress + 0xA2D0, &glowIndex)) //Read GlowIndex
            continue;
        int health;
        if (readIntMam(csgo, current, memoryAddress + 0xf0, &health)) //Read Health
            continue;
		if(health < 1)
			continue;
		int playerTeamNum;
        if (readIntMam(csgo, current, memoryAddress + 0xe4, &playerTeamNum)) //Read Team Number
            continue;
        if (playerTeamNum == 0 || playerTeamNum == iTeamNum || playerTeamNum == 0) 
            continue;
        struct Color color;
        color.red = (100 - health) / 100.0;
        color.blue = 0.0f;
        color.green = (health) / 100.0;
        color.alpha = 0.8f;
        applyGlowEffect(startAddress, glowIndex, &color);
    }
}
示例#2
0
void readPlayerPointAndHealth(mach_vm_address_t imgbase, uint32_t startAddress, int iTeamNum) {
    int m_iGlowIndex = 0xA2D0;
    uint32_t memoryAddress;
    int glowIndex;
    int playerBase = 0x00EEFF14;
    printf("----------updated----------\n");
    for (int i = 0; i < 0x60; i++) {
        if (readIntMam(csgo, current, imgbase + playerBase + 0x10 * i, &memoryAddress) == -1)//Entetiy address
            continue;
        if (memoryAddress == 0x0)//is nullpointer
            continue;
        if (readIntMam(csgo, current, memoryAddress + 0xA2E0, &glowIndex)) //Read GlowIndex
            continue;
        int health;
        if (readIntMam(csgo, current, memoryAddress + 0xf0, &health)) //Read Health
            continue;
		if(health < 1)
			continue;
		int playerTeamNum;
        if (readIntMam(csgo, current, memoryAddress + 0xE4, &playerTeamNum)) //Read Team Number
            continue;
      //Reassign playerTeamNum to Up or Down Arrow Key
        iTeamNum = playTeam;
//        iTeamNum = playTeam;
        if (playerTeamNum == 0 || playerTeamNum == iTeamNum || playerTeamNum == playTeam)
            continue;
/*        
    if (playerTeamNum == 0 || playerTeamNum == iTeamNum || playerTeamNum == 0)
            continue;
 */
        printf("Read player %i health is %i team is %i, glow index is %i\n", i, health, playerTeamNum, glowIndex);
        struct Color color;
        color.red = (100 - health) / 100.0;
        color.blue = 0.0f;
        color.green = (health) / 100.0;
        color.alpha = 0.8f;
        applyGlowEffect(startAddress, glowIndex, &color);
    }
}