Help! god mode

Yaskashije

PMT Elite Modder
Staff member
Modding-Team
Sep 9, 2018
4,384
849,395
1,213
Minkowski Space
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.
 

MAARS YT

Platinian
May 14, 2020
8
3
3
24
France
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
 

power2020202020

Solid & Active Platinian
Original poster
Nov 3, 2022
58
15
8
34
brazil
// 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?
 
  • Like
Reactions: ASDFGHJKLQWE

ASDFGHJKLQWE

Solid & Active Platinian
Jul 10, 2022
65
19
8
Nepal
// 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);
}
 

derzost2

Platinian
Apr 15, 2022
16
3
3
31
RU
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();
}
 
  • Like
Reactions: ASDFGHJKLQWE

ASDFGHJKLQWE

Solid & Active Platinian
Jul 10, 2022
65
19
8
Nepal
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() { }
 

Poison Modz

Approved Modder
Approved Modder
Aug 27, 2020
158
11,291
1,193
India
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;
 
  • Like
Reactions: ASDFGHJKLQWE

libModz

Awesome Active Platinian
Jun 2, 2022
169
30
28
UK
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)
 
  • Like
Reactions: Jeff232