| 12 |
|
#include "../flatline/Flatline_BSL.h" |
| 13 |
|
#include "../flatline/Flatline_Hooks.h" |
| 14 |
|
#include "../Oni.h" |
| 15 |
+ |
//#include "Objt.h" |
| 16 |
|
|
| 17 |
|
typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId); |
| 18 |
|
|
| 247 |
|
// Enable flatline multiplayer code |
| 248 |
|
void DD_Patch_Flatline() |
| 249 |
|
{ |
| 249 |
– |
DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 ); |
| 250 |
|
DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers ); |
| 251 |
|
|
| 252 |
|
//Flatline related stuff |
| 378 |
|
DDrPatch_MakeJump((void*)UUrStartupMessage, (void*)DDrStartupMessage); |
| 379 |
|
} |
| 380 |
|
|
| 381 |
+ |
// Show all (also enemies') lasersights |
| 382 |
+ |
void DD_Patch_ShowAllLasersights() |
| 383 |
+ |
{ |
| 384 |
+ |
DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 ); |
| 385 |
+ |
} |
| 386 |
+ |
|
| 387 |
|
// Experiment with allowing enemies to be thrown over railings |
| 388 |
|
void DD_Patch_Throwtest() |
| 389 |
|
{ |
| 484 |
|
*/ |
| 485 |
|
} |
| 486 |
|
|
| 487 |
+ |
/* |
| 488 |
+ |
void DD_Patch_ShowTriggerVolumes() |
| 489 |
+ |
{ |
| 490 |
+ |
DDrPatch_Int32((int*)(OniExe + 0x000cc9bb+4), (uint32_t)DD_OBJiTriggerVolume_Draw); |
| 491 |
+ |
} |
| 492 |
+ |
|
| 493 |
+ |
void DD_Patch_ShowFlags() |
| 494 |
+ |
{ |
| 495 |
+ |
DDrPatch_Int32((int*)(OniExe + 0x000c4ed4+4), (uint32_t)DD_OBJiFlag_Draw); |
| 496 |
+ |
} |
| 497 |
+ |
*/ |
| 498 |
+ |
|
| 499 |
|
bool DD_Patch_Init() |
| 500 |
|
{ |
| 501 |
|
DDrStartupMessage("Daodan: Patching engine"); |
| 577 |
|
|
| 578 |
|
if (patch_safeprintf) |
| 579 |
|
DD_Patch_SafePrintf(); |
| 580 |
+ |
|
| 581 |
+ |
if (patch_showalllasersights) |
| 582 |
+ |
DD_Patch_ShowAllLasersights(); |
| 583 |
|
|
| 584 |
|
if (patch_throwtest) |
| 585 |
|
DD_Patch_Throwtest(); |
| 602 |
|
|
| 603 |
|
|
| 604 |
|
DD_Patch_ShowNames(); |
| 605 |
< |
|
| 605 |
> |
/* |
| 606 |
> |
DD_Patch_ShowTriggerVolumes(); |
| 607 |
> |
DD_Patch_ShowFlags(); |
| 608 |
> |
*/ |
| 609 |
|
if (patch_flatline) |
| 610 |
|
DD_Patch_Flatline(); |
| 611 |
|
|