LevelMod Extension c++ lib

Tony Hawk's Pro Skater 3 mod discussion.
Vadru
Posts: 4
Joined: Sat May 05, 2012 7:35 pm
Contact:

LevelMod Extension c++ lib

Postby Vadru » Wed Jun 10, 2020 12:53 pm

http://www.mediafire.com/file/byiiephpkrp6v8q/Extension.rar/file

I was supposed to release this years ago, but got too busy to rewrite the code to be able to export the functions and make it easier to understand how it works etc.

Current features:
-Call ingame collision raytracing functions
-Add new values/functions that you can access/call from QB
-Call QB functions from your program
-Modify QB values and arrays
-D3D8 presenthook
-And some more


To add your own functions to QB use this code:

Code: Select all

CompiledScript scripts[] = { {"ScriptName",         CFunctionName}, etc... };

for (int i = 0; i < sizeof(scripts) / sizeof(CompiledScript); i++)
{
    QBKeyHeader* header = AddQBKeyHeader(Checksum(scripts[i].name), 1);
    if (header)
    {
        header->type = QBKeyHeader::COMPILED_FUNCTION;
        header->pFunction = scripts[i].pFunction;
    }
    else
        MessageBox(0, "couldn't add script", scripts[i].name, 0);
}


To get pointer to game class use this codes:

Code: Select all

Skater* skater = Skater::GetSkater();
Vadru
Posts: 4
Joined: Sat May 05, 2012 7:35 pm
Contact:

Re: LevelMod Extension c++ lib

Postby Vadru » Tue Jun 16, 2020 5:16 pm

I have now made a github for this project.

https://github.com/Vadru93/THPS3-QB-Extension

Return to “THPS3 modding”

Who is online

Users browsing this forum: No registered users and 1 guest