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
 

What are you racing on?

  • Racing rig

    Votes: 528 35.2%
  • Motion rig

    Votes: 43 2.9%
  • Pull-out-rig

    Votes: 54 3.6%
  • Wheel stand

    Votes: 191 12.7%
  • My desktop

    Votes: 618 41.2%
  • Something else

    Votes: 66 4.4%
Back
Top