This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! god mode

There's no real answer to your question. Every game is different. Maybe game comes with similar logic to god mode and you just have to enable it, maybe game doesnt have similar logic but you can implement it.

You figure out how the game works and tamper it to achieve the desired effect.
 
You can achieve god mod in many ways.

  • Hex patch.
    • you can set your character health to a really high number, mostly the method is called get_Health, GetHealth etc...
    • you can patch the method responsible of applying the damage to your character using "NOP"
    • you can set all npc damage to 0 or negative so hitting you will increase your health
  • Hooking
    • hook the method responsible of applying damage to your character and set the damage to 0
    • mostly your player have a field for the health, you can hook the update method on the player class and set that field to be max health always
There can still be many ways to do this, do your research and choose what the best solution adapted your game
 
// Fields
private static bool <GodMode>k__BackingField; // 0x0
private Dictionary<string, CheatMenu.CheatItem> <CheatCalls>k__BackingField; // 0x8

// Methods

// RVA: 0x17CC830 Offset: 0x17CC830 VA: 0x17CC830
public static bool get_GodMode() { }

how to edit this?
 
It's simple
Code:
bool godmode = false;
bool (*old_Feature) (void *instance);
bool feature(void *instance) {
    if (instance != NULL) {
        if (godmode) {
            return true;
        }
    }
    return old_Feature(instance);
}
 
There's a static function, void *instance is not needed

Code:
bool godmode = false;
bool (*old_Feature) ();
bool Feature() {
        if (godmode) {
            return true;
        }
    return old_Feature();
}
 
There's a static function, void *instance is not needed

Code:
bool godmode = false;
bool (*old_Feature) ();
bool Feature() {
        if (godmode) {
            return true;
        }
    return old_Feature();
}

Hi did you know how to hook this it's has complier generator
Code:
    [CompilerGeneratedAttribute] // RVA: 0x3506F0 Offset: 0x3506F0 VA: 0x3506F0
    // RVA: 0x17480AC Offset: 0x17480AC VA: 0x17480AC
    public bool get_AdsDisabled() { }
 
Bool AdsDisabled = false;

bool (*old_get_ads)(void *instance);
bool get_ads(void *instance) {
if (AdsDisabled) {
return true;
}
return old_get_ads(instance);
}

HOOK_LIB("libil2cpp.so", "0x17480AC", get_ads, old_get_ads);

OBFUSCATE("Toggle_Ads Disabled"), //0 Case

case 0:
AdsDisabled = boolean;
break;
 
Each game is different, maybe there's a bool method for god mode/unlimited health, in which case you can set it to true by using 01 00 A0 E3 1E FF 2F E1 (armv7)

Maybe there's a function called something like "OnTakeDamage" in which case you can just NOP/cancel it out with 1E FF 2F E1 (armv7)