Skip to content
Guest Big Announcement

do need any other code before i add a function

Featured Replies

heres part of it i didnt past the whole thing just need to know if theres anything else i need to add before i add another function 

 

#import <CoreFoundation/CoreFoundation.h>
#import <substrate.h>
#import <Foundation/Foundation.h>
int $__ZN6Player4hurtEP6Entityi()
{ 
   return 99999999;
}

 

Solved by CmakLove

  • Solution

Try:

int (*old__ZN6Player4hurtEP6Entityi)();

int $__ZN6Player4hurtEP6Entityi() { 
 return 999; 
 }

%ctor {
 
MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN6Player4hurtEP6Entityi")),(int*)$__ZN6Player4hurtEP6Entityi,(int**)&old__ZN6Player4hurtEP6Entityi);

}
  • Author

Try:

int (*old__ZN6Player4hurtEP6Entityi)();

int $__ZN6Player4hurtEP6Entityi() { 
 return 999; 
 }

%ctor {
 
MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN6Player4hurtEP6Entityi")),(int*)$__ZN6Player4hurtEP6Entityi,(int**)&old__ZN6Player4hurtEP6Entityi);

}

thanks i well try this before i make another topic.

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.