Jump to content

2 posts in this topic

Recommended Posts

Posted

[Token(Token = "0x60000BC")]
    [Address(RVA = "0x2549E84", Offset = "0x2549E84", VA = "0x2549E84")]
    public double GetAttackSpeedValue()

 


float(*old_GetAttackSpeedValue)(double *Player);
float changeSpeed(double *Player) {
  
  if([switches isSwitchOn:@"Speed x5"]) {
    return 5.0f;
  }
  //return the default value of the game
  return old_GetAttackSpeedValue(Player);
}

setup() {
  HOOK(0x2549E84, changeSpeed, old_GetAttackSpeedValue);
}

 

 

I'm a beginner, so if there are any mistakes, I would appreciate it if you could let me know with an explanation.

 

Posted

 

double (*old_GetAttackSpeedValue)(void *Player);
double changeSpeed(void *Player) {
  
  if([switches isSwitchOn:@"Speed x5"]) {
    return 5.0f;
  }
  //return the default value of the game
  return old_GetAttackSpeedValue(Player);
}

maybe it will work

 

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