-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tag assists, modifiers, ai, 9:16 camera
- Loading branch information
Showing
21 changed files
with
1,241 additions
and
343 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#include "MKModifier.h" | ||
|
||
Modifier::Modifier(const char* name) | ||
{ | ||
static uintptr_t pat = _pattern(PATID_MKModifier_Constructor); | ||
if (pat) | ||
((void(__fastcall*)(Modifier*, const char*))pat)(this, name); | ||
} | ||
|
||
void Modifier::Activate(MKCharacter* character) | ||
{ | ||
static uintptr_t pat = _pattern(PATID_MKModifier_Activate); | ||
if (pat) | ||
((void(__fastcall*)(Modifier*, MKCharacter*))pat)(this, character); | ||
} | ||
|
||
void MKModifier::ActivateModifier(const char* name, PLAYER_NUM player) | ||
{ | ||
Modifier mod(name); | ||
MKCharacter* obj = GetObj(player); | ||
if (obj) | ||
mod.Activate(obj); | ||
} | ||
|
||
void LoadModifierAssets() | ||
{ | ||
static uintptr_t pat = _pattern(PATID_LoadModifierAssets); | ||
if (pat) | ||
((void(__fastcall*)(FGGameInfo*))pat)(GetGameInfo()); | ||
} | ||
|
||
TagAssistModifier::TagAssistModifier(const char* character) | ||
{ | ||
static uintptr_t pat = _pattern(PATID_MKTagModifier_Constructor); | ||
if (pat) | ||
((void(__fastcall*)(TagAssistModifier*, const char*))pat)(this, character); | ||
} | ||
|
||
void TagAssistModifier::Activate(PLAYER_NUM player) | ||
{ | ||
static uintptr_t pat = _pattern(PATID_MKTagModifier_Activate); | ||
if (pat) | ||
((void(__fastcall*)(TagAssistModifier*, PlayerInfo*))pat)(this, GetInfo(player)); | ||
} | ||
|
||
void TagAssistModifier::ActivateObject(PLAYER_NUM player) | ||
{ | ||
static uintptr_t pat = _pattern(PATID_MKTagModifier_Activate2); | ||
if (pat) | ||
((void(__fastcall*)(TagAssistModifier*, MKCharacter*))pat)(this, GetObj(player)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#pragma once | ||
#include "../mk/MKCharacter.h" | ||
#include "../mk/Engine.h" | ||
#include "../utils.h" | ||
|
||
class BaseModifier { | ||
public: | ||
char data[72] = {}; | ||
}; | ||
|
||
|
||
class Modifier : public BaseModifier { | ||
public: | ||
Modifier(const char* name); | ||
void Activate(MKCharacter* character); | ||
}; | ||
|
||
|
||
class TagAssistModifier : public BaseModifier { | ||
public: | ||
TagAssistModifier(const char* character); | ||
void Activate(PLAYER_NUM player); | ||
void ActivateObject(PLAYER_NUM player); | ||
}; | ||
|
||
|
||
class MKModifier { | ||
public: | ||
static void ActivateModifier(const char* name, PLAYER_NUM player); | ||
}; | ||
|
||
|
||
void LoadModifierAssets(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
#pragma once | ||
#include "../utils.h" | ||
|
||
class AIDrone { | ||
public: | ||
void Set(const char* script, int unk); | ||
void SetLevel(float level); | ||
}; | ||
|
||
class PlayerInfo { | ||
public: | ||
void SetMeter(float value); | ||
void SetDamageMult(float value); | ||
}; | ||
void MakeDrone(); | ||
void MakeHuman(); | ||
|
||
AIDrone* GetDrone(); | ||
}; | ||
|
||
extern AIDrone*(*pPlayerInfo_GetDrone)(PlayerInfo*); | ||
extern AIDrone* (*pPlayerInfo_MakeDrone)(PlayerInfo*); |
Oops, something went wrong.