Fr0go1 / Aeonix-Cs2

GNU General Public License v3.0
67 stars 10 forks source link

Hitsound. #34

Open d4r8n opened 10 months ago

d4r8n commented 10 months ago

This is an example of external hitsound.

int previousTotalHits = 0; // outside ur cheat loop if (Settings::misc::hitsound) { uintptr_t pBulletServices = driver.readv(global_pawn + 0x1698); int totalHits = driver.readv(pBulletServices + 0x40);

if (totalHits != previousTotalHits) {
    if (totalHits == 0 && previousTotalHits != 0) {
        // `totalHits` changed from non-zero to zero, do not play hitsound
    }
    else {
        // Play the hitsound
        PlaySoundW(L"ur hitsound here.wav", NULL, SND_FILENAME | SND_ASYNC); 
    }

    previousTotalHits = totalHits; // Update the previousTotalHits
}

}

Fr0go1 commented 10 months ago

yeah i have seen this