Resource icon

MGP15 Ultimate 2015 Physics Mod 2.0

Login or Register an account to download this content
I was thinking about creating one myself just today! Ahaha well done mate.
I was thinking about cheating AI race performance modifier address, so we can create a cheat that changes AI difficulty race by race without leaving the game. Could you help me?

Of course! How can I help you?
 
Of course! How can I help you?
We know game picks race and time modifiers from the bml file (AIDifficulties.bml) and uses them to understand how fast AI as to be and how quick their laps should be (for quali and FP).


I think I found the addresses of both Race modifiers and Time Generation modifiers.
i'm no expert of coding, but the idea would be to

Code:
#define ADR_RacePerformanceModifier 0xB163D0 // (not the correct address, just an example)
#define Addr_TimeGenerationModifier 0xB10B98

void RacePerformance() //This function edits race performance modifier
{
*(float*)ADR_RacePerformanceModifier = 0.989;
}

void TimeGeneration() //This function edits AI time generation modifier
{
*(float*)ADR_TimeGenerationModifier = 0.993;
}
etc...

We should add the possibility to change the modifiers while in game, maybe you press numpad and it increase Race modifier by 0.05

Like
Code:
void RacePerformanceAdjust () //Lets you adjust modifier with numpad4 and numpad5
{
if(GetAsyncKeyState(VK_NUMPAD4)&1)
{
*(float*)(ADR_RacePerformanceModifier) = ADR_RacePerformanceModifier + 0.05;  //increase by 0.05
}
if(GetAsyncKeyState(VK_NUMPAD5)&1)
{
*(float*)(ADR_RacePerformanceModifier) = ADR_RacePerformanceModifier -0.05; //decrease by 0.05
}
}


Hope you understand...I hope you are better at c++ than me
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 266 15.4%
  • < 2 years

    Votes: 175 10.1%
  • < 3 years

    Votes: 175 10.1%
  • < 4 years

    Votes: 130 7.5%
  • < 5 years

    Votes: 235 13.6%
  • < 10 years

    Votes: 204 11.8%
  • < 15 years

    Votes: 129 7.5%
  • < 20 years

    Votes: 101 5.8%
  • < 25 years

    Votes: 79 4.6%
  • Ok, I am a dinosaur

    Votes: 235 13.6%
Back
Top