1
0
mirror of https://github.com/Mauler125/r5sdk.git synced 2025-02-09 19:15:03 +01:00

Fixed changelevel, needs more research tho.

This commit is contained in:
IcePixelx 2021-12-29 15:35:48 +01:00
parent 4695012571
commit d1ba2bd567
2 changed files with 2 additions and 0 deletions

@ -70,6 +70,7 @@ void Dedicated_Init()
c2.Offset(0x23C).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // JNE --> NOP | TODO: NOP 'particle_script' instead.
c2.Offset(0x2BD).Patch({ 0x90, 0x90, 0x90 }); // MOV --> NOP | TODO: NOP 'particle_script' instead.
c3.Offset(0xA9).Patch({ 0x90, 0x90, 0x90, 0x90 }); // MOV --> NOP | TODO: NOP 'highlight_system' instead.
unk1.Offset(0x129).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // MOV AND CALL --> | Eliminates null pointer dereference crash. Needs more research.
//-------------------------------------------------------------------------
// CENGINEAPI

@ -87,6 +87,7 @@ namespace
ADDRESS FindModel = 0x140253530;
ADDRESS LoadModel = 0x140253810;
ADDRESS unk1 = 0x140256480; // case 1: only gets called on changelevel, needs more research, function gets called by CModelLoader virtual function.
ADDRESS ParsePropStatic = 0x1402901E0;