Announcement

Collapse
No announcement yet.

Ghetto shot counter by Wav (works fine in NonSteam v23b)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ghetto shot counter by Wav (works fine in NonSteam v23b)

    This was posted by Wav long time ago. in Gamedeception.net

    Code:
    /////////////////////////////////////////////////////////////////////////////////////////////////
    // GHETTO SHOT COUNTER (By wav)
    
    int glockclipcap = 20;
    int uspclipcap = 12;
    int p228clipcap = 13;
    int deagleclipcap = 7;
    int eliteclipcap = 30;
    int fivesevenclipcap = 20;
    int m3clipcap = 8;
    int xm1014clipcap = 7;
    int tmpclipcap = 30;
    int mac10clipcap = 30;
    int mp5clipcap = 30;
    int ump45clipcap = 25;
    int p90clipcap = 50;
    int famasclipcap = 25;
    int galilclipcap = 35;
    int scoutclipcap = 10;
    int ak47clipcap = 30;
    int m4a1clipcap = 30;
    int sg552clipcap = 30;
    int augclipcap = 30;
    int sg550clipcap = 30;
    int g3sg1clipcap = 20;
    int awpclipcap = 10;
    int m249clipcap = 100;
    
    //========================================================================================
    
    int *glockammo = (int*) (0x19EF1A4 + 0x20);
    int *uspammo = (int*) (0x19EEF14 + 0x20);
    int *p228ammo = (int*) (0x19F5FD4 + 0x20);
    int *deagleammo = (int*) (0x19EF2E4 + 0x20);
    int *fiveammo = (int*) (0x19F5DE4 + 0x20);
    int *eliteammo = (int*) (0x19EEC8C + 0x20);
    int *m3ammo = (int*) (0x19F5B54 + 0x20);
    int *xmammo = (int*) (0x19F4C6C + 0x20);
    int *tmpammo = (int*) (0x19EEDCC + 0x20);
    int *macammo = (int*) (0x19EF054 + 0x20);
    int *mp5ammo = (int*) (0x19EE1EC + 0x20);
    int *umpammo = (int*) (0x19EF564 + 0x20);
    int *p90ammo = (int*) (0x19EE83C + 0x20);
    int *galilammo = (int*) (0x19F6114 + 0x20);
    int *famasammo = (int*) (0x19EF6AC + 0x20);
    int *akammo = (int*) (0x19EEA04 + 0x20);
    int *m4a1ammo = (int*) (0x19F5C9C + 0x20);
    int *scoutammo = (int*) (0x19EF424 + 0x20);
    int *sg552ammo = (int*) (0x19EE5B4 + 0x20);
    int *augammo = (int*) (0x19EDF54 + 0x20);
    int *awpammo = (int*) (0x19EE09C + 0x20);
    int *sg550ammo = (int*) (0x19EE6FC + 0x20);
    int *g3sg1ammo = (int*) (0x19EE4BC + 0x20);
    int *m249ammo = (int*) (0x19F5744 + 0x20);
    
    //
    int primaryammo=0;
    int secondaryammo=0;
    //19F5B74
    int CurrentWeaponShot=0;
    
    //========================================================================================
    
    void me_spread_recoil(int weaponid)
    {
    if (weaponid == WEAPONLIST_GLOCK18)
    {
    secondaryammo = *glockammo;
    
    CurrentWeaponShot = glockclipcap - secondaryammo;
    
    me.iClip = secondaryammo;
    }
    else if (weaponid == WEAPONLIST_USP)
    {
    secondaryammo = *uspammo;
    
    CurrentWeaponShot = uspclipcap - secondaryammo;
    
    me.iClip = secondaryammo;
    }
    else if (weaponid == WEAPONLIST_P228)
    {
    secondaryammo = *p228ammo;
    
    CurrentWeaponShot = p228clipcap - secondaryammo;
    
    me.iClip = secondaryammo;
    }
    else if (weaponid == WEAPONLIST_DEAGLE)
    {
    secondaryammo = *deagleammo;
    
    CurrentWeaponShot = deagleclipcap - secondaryammo;
    
    me.iClip = secondaryammo;
    }
    else if (weaponid == WEAPONLIST_ELITE)
    {
    secondaryammo = *eliteammo;
    
    CurrentWeaponShot = eliteclipcap - secondaryammo;
    
    me.iClip = secondaryammo;
    }
    else if (weaponid == WEAPONLIST_FIVESEVEN)
    {
    secondaryammo = *fiveammo;
    
    CurrentWeaponShot = fivesevenclipcap - secondaryammo;
    
    me.iClip = secondaryammo;
    }
    else if (weaponid == WEAPONLIST_M3)
    {
    primaryammo = *m3ammo;
    
    CurrentWeaponShot = m3clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_XM1014)
    {
    primaryammo = *xmammo;
    
    CurrentWeaponShot = xm1014clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_TMP)
    {
    primaryammo = *tmpammo;
    
    CurrentWeaponShot = tmpclipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_MAC10)
    {
    primaryammo = *macammo;
    
    CurrentWeaponShot = mac10clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_MP5)
    {
    primaryammo = *mp5ammo;
    
    CurrentWeaponShot = mp5clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_UMP45)
    {
    primaryammo = *umpammo;
    
    CurrentWeaponShot = ump45clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_P90)
    {
    primaryammo = *p90ammo;
    
    CurrentWeaponShot = p90clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_FAMAS)
    {
    primaryammo = *famasammo;
    
    CurrentWeaponShot = famasclipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_GALIL)
    {
    primaryammo = *galilammo;
    
    CurrentWeaponShot = galilclipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_SCOUT)
    {
    primaryammo = *scoutammo;
    
    CurrentWeaponShot = scoutclipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_M4A1)
    {
    primaryammo = *m4a1ammo;
    
    CurrentWeaponShot = m4a1clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_AK47)
    {
    primaryammo = *akammo;
    
    CurrentWeaponShot = ak47clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_SG552)
    {
    primaryammo = *sg552ammo;
    
    CurrentWeaponShot = sg552clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_AWP)
    {
    primaryammo = *awpammo;
    
    CurrentWeaponShot = awpclipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_SG550)
    {
    primaryammo = *sg550ammo;
    
    CurrentWeaponShot = sg550clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_G3SG1)
    {
    primaryammo = *g3sg1ammo;
    
    CurrentWeaponShot = g3sg1clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    else if (weaponid == WEAPONLIST_M249)
    {
    primaryammo = *m249ammo;
    
    CurrentWeaponShot = m249clipcap - primaryammo;
    
    me.iClip = primaryammo;
    }
    }
Working...
X