Jump to content

Help for patcher


Go to solution Solved by Amuyea,

26 posts in this topic

Recommended Posts

  • Replies 25
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted
the first two are the ones I started with idk if I'm right

You finish it off :)

 

Don't put another %hook UserInfo though lol.

Ik that it's not necessary

You finish it off :)

 

Don't put another %hook UserInfo though lol.

it stays key 1 until I want to make another code
Posted

the first two are the ones I started with idk if I'm right

Ik that it's not necessary

Okay copy and paste this:

 

 

%hook UserInfo
-(int)lowAimRatio {
if(GetPrefBool(@"kGuidelines")) {
return -900;
}
return %orig;
}
 
-(int)highAimRatio {
if(GetPrefBool(@"kGuidelines")) {
arg1 = 1300;
}
return %orig;
}
 
-(void) setForCue:(int)arg1 aim:(int)arg2 {
if(GetPrefBool(@"kGuidelines")) {
arg1 = 10;
arg2 = 10;
}
return %orig;
}
 
-(int) getCueAim:(int)arg1 {
if(GetPrefBool(@"kGuidelines")) {
arg1 = 10;
}
return %orig;
}
 
-(int)setLowAimRatio:(int)arg1 {
if(GetPrefBool(@"kGuidelines")) {
arg1 = -900;
}
return %orig;
}
%end
 
%hook VisualCue
 
-(BOOL) hideGuidelinesMode {
if(GetPrefBool(@"kGuidelines")) {
return FALSE;
}
return %orig;
}
 
-(BOOL) showSecondaryGuides {
if(GetPrefBool(@"kGuidelines")) {
return FALSE;
}
return %orig;
}
 
-(BOOL) enabled {
if(GetPrefBool(@"kGuidelines")) {
return FALSE;
}
return orig;
}
%end
Posted

Okay copy and paste this:

 

 

%hook UserInfo
-(int)lowAimRatio {
if(GetPrefBool(@"kGuidelines")) {
return -900;
}
return %orig;
}
 
-(int)highAimRatio {
if(GetPrefBool(@"kGuidelines")) {
arg1 = 1300;
}
return %orig;
}
 
-(void) setForCue:(int)arg1 aim:(int)arg2 {
if(GetPrefBool(@"kGuidelines")) {
arg1 = 10;
arg2 = 10;
}
return %orig;
}
 
-(int) getCueAim:(int)arg1 {
if(GetPrefBool(@"kGuidelines")) {
arg1 = 10;
}
return %orig;
}
 
-(int)setLowAimRatio:(int)arg1 {
if(GetPrefBool(@"kGuidelines")) {
arg1 = -900;
}
return %orig;
}
%end
 
%hook VisualCue
 
-(BOOL) hideGuidelinesMode {
if(GetPrefBool(@"kGuidelines")) {
return FALSE;
}
return %orig;
}
 
-(BOOL) showSecondaryGuides {
if(GetPrefBool(@"kGuidelines")) {
return FALSE;
}
return %orig;
}
 
-(BOOL) enabled {

if(GetPrefBool(@"kGuidelines")) {
return FALSE;
}
return orig;
}
%end

the first two are the ones I started with idk if I'm right Ik that it's not necessary it stays key 1 until I want to make another code

https://imgur.com/a/rXRPp

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