Skip to content
Guest Big Announcement

iGMenu doesn't recognize if function is turned on or not

Featured Replies

  • Author
Just now, shmoo said:

what?

 

Is the freezing character a new issue

Yes, I haven't had that issue before. Could it be bcs we're hooking UpdateCharacter?

1 minute ago, Ted2 said:

Yes, I haven't had that issue before. Could it be bcs we're hooking UpdateCharacter?

try now isAI seems like its only 1 byte

 

void CharacterUpdate(void *character){
	// the character parameter is guarenteed to be non-null
	char isAI = *(char *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

	if(!isAI && [menu getBool:@"GodmodeSwitch"]){	// Check if it is not AI before setting health
		*(float *)((uint64_t)character + 0x48) = 99999999.0f; //health = 0x48 //Class CharacterBase
	}
	
	old_CharacterUpdate(character);
}

 

  • Author
6 minutes ago, shmoo said:

try now isAI seems like its only 1 byte

 


void CharacterUpdate(void *character){
	// the character parameter is guarenteed to be non-null
	char isAI = *(char *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

	if(!isAI && [menu getBool:@"GodmodeSwitch"]){	// Check if it is not AI before setting health
		*(float *)((uint64_t)character + 0x48) = 99999999.0f; //health = 0x48 //Class CharacterBase
	}
	
	old_CharacterUpdate(character);
}

 

This makes it unfreeze, however now Godmode isn't working xd

Just now, Ted2 said:

This makes it unfreeze, however now Godmode isn't working xd

was it working before? I dont understand why that wouldnt work with the description you gave me over twitter

  • Author
1 minute ago, shmoo said:

was it working before? I dont understand why that wouldnt work with the description you gave me over twitter

With the code in my post, godmode does work. Only the enabling & disabling didn't...

  • Author

@DiDA What about this?

https://ghostbin.com/paste/coxmb

This should work, right? (When I do not have a modmenu bool above it it works)

 

Edit: got it working, altough I have to use

bool isFeatureActive = false;

isFeatureActive = [menu isSwitchWithIdentifierActive:@"getGems"]; x2

 

Seems too much, but maybe that's just me.

 

Also it doesn't recognize if it's getting disabled.

Updated by Ted2

4 hours ago, Ted2 said:

@DiDA What about this?

https://ghostbin.com/paste/coxmb

This should work, right? (When I do not have a modmenu bool above it it works)

 

Edit: got it working, altough I have to use

bool isFeatureActive = false;

isFeatureActive = [menu isSwitchWithIdentifierActive:@"getGems"]; x2

 

Seems too much, but maybe that's just me.

 

Also it doesn't recognize if it's getting disabled.

Yes I totally forgot. getBool isn't supposed to work with those kind of switches. But godmode works now?

  • Author
12 minutes ago, shmoo said:

Yes I totally forgot. getBool isn't supposed to work with those kind of switches. But godmode works now?

The latest results I ended up with is: Frozen Character.

3 minutes ago, Ted2 said:

The latest results I ended up with is: Frozen Character.

What game

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.