Jump to content

24 posts in this topic

Recommended Posts

Posted
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

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted
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

Posted
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?

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

 

Posted
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

Posted
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

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

Posted (edited)

@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

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
×
  • 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