Jump to content

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


Ted2

24 posts in this topic

Recommended Posts

2 minutes ago, Ted2 said:

@shmoo

 

Okay so now my Character is freezing.. (also if the option is disabled) xd

Mate, I already told you I would fix it. Don't go to topics & change subjects.

Chill I'm just fooling around xd

Link to comment
Share on other sites

  • Replies 23
  • Created
  • Last Reply
3 minutes ago, vladimpaler said:

Can you fix freezing of game also?

what?

 

2 minutes ago, Ted2 said:

@shmoo

 

Okay so now my Character is freezing.. (also if the option is disabled) xd

Mate, I already told you I would fix it. Don't go to topics & change subjects.

Is the freezing character a new issue

Link to comment
Share on other sites

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);
}

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further 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