Jump to content

2 posts in this topic

Recommended Posts

Posted

So i've been working on a mod menu for a couple days and I've tried working with instance variables but it just won't work, im trying to mod Pixel Gun 3D which is a Unity game and i've tested this on a jailbroken device

here is the HOOK function

uint64_t getOffset(uint64_t offset){
    return (long)_dyld_get_image_header(0) + offset;
}

#define HOOK(offset, ptr, orig) MSHookFunction((void *)getOffset(offset), (void *)ptr, (void **)&orig)

i also made sure i defined all the variables

int selectedBullet = 0;
bool shootBullet = false;

and here is the code for the hook

void(*oldWeaponSounds)(void* obj);
void WeaponSounds(void* obj){
    if(obj != nullptr){
        if (silentaim) {
            *(bool*)((uint64_t) obj + 0x191) = true; // isRoundMelee
            *(float*)((uint64_t) obj + 0x184) = 9999.0f; // radiusRoundMelee
        }


        if (shootBullet) {
            if (selectedBullet == 0) {
                *(bool*)((uint64_t) obj + 0x12B) = true; // bazooka
            } else if (selectedBullet == 1) { // laser
                *(bool*)((uint64_t) obj + 0x1BC) = true; // railgun
            } else if (selectedBullet == 2) { // shotgun
                *(bool*)((uint64_t) obj + 0x1A6) = true; // isShotgun
            } else if (selectedBullet == 3) { // harpoon
                *(bool*)((uint64_t) obj + 0x2A4) = true; // harpoon
            } else if (selectedBullet == 4) { // dash
                *(bool*)((uint64_t) obj + 0x294) = true; // isDash
            } else if (selectedBullet == 5) { // exploding bullets
                *(bool*)((uint64_t) obj + 0x1A5) = true; // bulletExplode
            }
        }
    oldWeaponSounds(obj);
    }
}

void Hooks() {
    HOOK(0x2DC1EB0, WeaponSounds, oldWeaponSounds);
}

the first parameter of the HOOK function is the Update function for the WeaponSounds class

	[FieldOffset(Offset = "0x191")]
	public bool isRoundMelee;
	[FieldOffset(Offset = "0x184")]
	public float radiusRoundMelee;

	[丌丈专三丌丞丈东丏("Bazooka")]
	public bool bazooka;
and so on
[Address(RVA = "0x2DC1EB0", Offset = "0x2DC1EB0", VA = "0x2DC1EB0")]
private void Update()
{
}

then I call the Hooks function at where the ImGui menu is drawn 

- (void)draw

{
    [self drawMenu];
    Hooks();
    [self nono];
    [self nosee];
}

and heres the code for the switch:

        if (ImGui::BeginTabItem(ENCRYPT("Gameplay"))) {
            const char* bulletTypes[] = { "Rocket", "Laser", "Shotgun", "Harpoon", "Dash", "Exploding Bullets"};

            ImGui::Text(ENCRYPT("Gameplay Mods"));

            ImGui::Checkbox("Silent Aim", &silentaim);

            ImGui::Checkbox("Shoot bullet: ", &shootBullet); ImGui::SameLine();
            if (ImGui::Combo(" ", &selectedBullet, bulletTypes, IM_ARRAYSIZE(bulletTypes))) {
                char buffer[512];
                snprintf(buffer, 512, "Index: %d\nSelected item: %s", selectedBullet, bulletTypes[selectedBullet]);
                showAlert("Info", buffer);
            }

            if (shootBullet && !shootBulletAlertShown) {
                char buffer[512];
                snprintf(buffer, 512, "Index: %d\nSelected item: %s", selectedBullet, bulletTypes[selectedBullet]);
                showAlert("Info", buffer);
                shootBulletAlertShown = true;
            }
            if (!shootBullet && shootBulletAlertShown) {
                shootBulletAlertShown = false;
            }

            ImGui::EndTabItem();
        }

Im 101% sure the offset to the update function is correct as i double checked multiple times and when the checkbox is ticked, nothing happens

IMG_9905.png

i also made sure the instance variables are correct and double checked multiple times, im not sure what i did wrong and would appreciate it if anyone knows whats going on with the code and please let me know in the replies if you need any more details the mod im working on is in objective c++ and uses the dear imgui from ocornut

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Match Squad v1.91 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Match Squad By CYPHER GAMES YAZILIM PAZARLAMA ANONIM SIRKETI
      Bundle ID: com.cyphergames.cityclash
      App Store Link: https://apps.apple.com/us/app/match-squad/id6473704944?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Dice
      - Unlimited Cash
      • 0 replies
    • Dungeons and Bags v1.1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Dungeons and Bags By Roshka S.A.
      Bundle ID: play.roshka.minibackpack
      App Store Link: https://apps.apple.com/us/app/dungeons-and-bags/id6752716609?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Battle Stars
      - HP MAX
      - ATK MAX
      • 0 replies
    • Dungeons and Bags v1.1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Dungeons and Bags By Roshka S.A.
      Bundle ID: play.roshka.minibackpack
      App Store Link: https://apps.apple.com/us/app/dungeons-and-bags/id6752716609?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Battle Stars
      - HP MAX
      - ATK MAX
      • 0 replies
    • Domino Stories v1.0.04 [ +8 APK MOD ] Currency Max
      Mod APK Game Name: Domino Stories
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.domino.stories.casual.game&hl=en

       

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Ticket
      - Unlimited Undo
      - Unlimited Gold Bar
      - Unlimited Free Tiles
      - Unlimited Event Currency
      - Unlimited Tokens / Event & Quest

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Dead Watcher +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Dead Watcher By Entiz Game Studio
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.entizgames.deadwatch

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
      • 1 reply
    • Domino Stories v1.0.04 [ +8 Jailed ] Currency Max
      Modded/Hacked App: Domino Stories By PERLTEC LTD
      Bundle ID: com.domino.stories.casual.game
      App Store Link: https://apps.apple.com/ph/app/domino-stories/id6754849199?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Ticket
      - Unlimited Undo
      - Unlimited Gold Bar
      - Unlimited Free Tiles
      - Unlimited Event Currency
      - Unlimited Tokens / Event & Quest
      • 0 replies
    • Domino Stories v1.0.04 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Domino Stories By PERLTEC LTD
      Bundle ID: com.domino.stories.casual.game
      App Store Link: https://apps.apple.com/ph/app/domino-stories/id6754849199?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Ticket
      - Unlimited Undo
      - Unlimited Gold Bar
      - Unlimited Free Tiles
      - Unlimited Event Currency
      - Unlimited Tokens / Event & Quest
      • 1 reply
    • Food Gang v2.0.4 +6 OFFSET
      Modded/Hacked App: Food Gang By Bloop
      Bundle ID: com.bloop.food
      App Store Link: https://apps.apple.com/us/app/food-gang/id1497116240?uo=4


      Hack Feature

      - AI ATK NO
      - VIP Active
      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Tokens Upgrade
      - HP / Just Upgrade Hero
      - ATK / Just Upgrade Hero
        • Agree
      • 1 reply
    • Last King : Survival v1.0.14 [ +8 APK MOD ] Currency Max
      Mod APK Game Name: Last King: Survival
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.kolka.tdgame&hl=en

       

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Currency
      - Unlimited Resources
      Hero Stats
      - HP MAX
      - ATK MAX
      - DEF MAX
      - RAGE ATK MAX
      - RAGE Cooldown

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 0 replies
    • Last King : Survival v1.0.14 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Last King: Survival By Kolka Games SIA
      Bundle ID: com.kolka.tdgame
      App Store Link: https://apps.apple.com/us/app/last-king-survival/id6760551418?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Currency
      - Unlimited Resources
      Hero Stats
      - HP MAX
      - ATK MAX
      - DEF MAX
      - RAGE ATK MAX
      - RAGE Cooldown
        • Thanks
        • Like
      • 4 replies
    • Last King : Survival v1.0.14 [ +8 Jailed  ] Currency Max
      Modded/Hacked App: Last King: Survival By Kolka Games SIA
      Bundle ID: com.kolka.tdgame
      App Store Link: https://apps.apple.com/us/app/last-king-survival/id6760551418?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Currency
      - Unlimited Resources
      Hero Stats
      - HP MAX
      - ATK MAX
      - DEF MAX
      - RAGE ATK MAX
      - RAGE Cooldown
        • Thanks
        • Winner
        • Like
      • 5 replies
    • Idle Bloodbound Lord +4 Cheats
      Mod APK Game Name: 
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.idlemaster.lord

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Freeze Currency
      - No ADS

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Informative
        • Thanks
        • Winner
        • Like
      • 7 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines