@@ -163,6 +163,20 @@ void __fastcall MK10Hooks::HookProcessStuff()
163
163
{
164
164
TheMenu->Process ();
165
165
166
+ // hot keys
167
+
168
+ if (MK10::GetCharacterObject (PLAYER1) && MK10::GetCharacterObject (PLAYER2))
169
+ {
170
+ if (GetAsyncKeyState (VK_CONTROL))
171
+ {
172
+ if (GetAsyncKeyState (VK_F2))
173
+ ((void (__fastcall*)())GetMKXAddr (0x14055FE90 ))();
174
+ if (GetAsyncKeyState (VK_F3))
175
+ MK10::SlowGameTimeForXTicks (TheMenu->fSlowMotionSpeed , TheMenu->iSlowMotionTicks );
176
+ }
177
+
178
+ }
179
+
166
180
if (TheMenu->bInfiniteHealthPlayer1 )
167
181
{
168
182
if (MK10::GetCharacterObject (PLAYER1))
@@ -225,6 +239,8 @@ void __fastcall MK10Hooks::HookProcessStuff()
225
239
MK10::SetCharacterPosition (&TheMenu->plrPos , PLAYER2);
226
240
}
227
241
242
+
243
+
228
244
229
245
230
246
((void (__fastcall*)())GetMKXAddr (0x140CB2BA0 ))();
@@ -487,3 +503,38 @@ void __fastcall MK10Hooks::Hook30To60Swap(int64 game, int a2)
487
503
{
488
504
((void (__fastcall*)(int ,int ))GetMKXAddr (0x140495110 ))(game,a2);
489
505
}
506
+
507
+ void __fastcall MK10Hooks::HookDamageMultiplier (int64 ptr, float mult)
508
+ {
509
+ if (SettingsMgr->bDisableComboDamageScaling )
510
+ mult = 1 .0f ;
511
+
512
+ ((void (__fastcall*)(int64, float ))GetMKXAddr (0x14055D7E0 ))(ptr, mult);
513
+ }
514
+
515
+ void __fastcall MK10Hooks::HookDamageMultiplierTwo (int64 ptr, float mult)
516
+ {
517
+ if (SettingsMgr->bDisableComboDamageScaling )
518
+ mult = 1 .0f ;
519
+
520
+ ((void (__fastcall*)(int64, float ))GetMKXAddr (0x14055D3B0 ))(ptr, mult);
521
+ }
522
+
523
+ void __fastcall MK10Hooks::HookDamageMultiplierThree (int64 ptr, float mult)
524
+ {
525
+ if (SettingsMgr->bDisableComboDamageScaling )
526
+ mult = 1 .0f ;
527
+ ((void (__fastcall*)(int64, float ))GetMKXAddr (0x140549CE0 ))(ptr, mult);
528
+ }
529
+
530
+ int64 __fastcall MK10Hooks::HookGetCharacterVictory (const char * name, const char * packageID, char * packageName, int packageBuffer)
531
+ {
532
+ const char * newName = name;
533
+
534
+ if (strcmp (name, " rain_a" ) == 0 )
535
+ {
536
+ newName = " char_kunglao_a" ;
537
+ }
538
+
539
+ return ((int64 (__fastcall*)(const char *, const char *, char *, int ))GetMKXAddr (0x140553850 ))(newName,packageID,packageName,packageBuffer);
540
+ }
0 commit comments