Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ermaccer committed Feb 26, 2022
1 parent 1c08005 commit a76290d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions MK11Hook/code/PlayerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,6 @@ void PlayerInfo::SetDamageMult(float value)

void PlayerInfo::SetColor(FName color, FVector* value)
{
//PlayerInfo* info = (PlayerInfo*)((int64)this - 1056);
if (GetGameInfo())
{
PlayerInfo* p1 = GetInfo(PLAYER1);
PlayerInfo* p2 = GetInfo(PLAYER2);
if (p1 || p2)
{
printf("THIS - %x P1: %x P2: %x\n", this, (int64)GetInfo(PLAYER1) + 1056, (int64)GetInfo(PLAYER2) + 1056);
}
}


//character_info* chr = *(character_info**)((int64)this - 1056 + 216);
//if (chr)
// printf("Blood for %s\n", chr->name);


*value = { 0.5,0.5,0 };
((void(__fastcall*)(PlayerInfo*, FName, FVector*))_addr(0x140E4E240))(this, color, value);
}

0 comments on commit a76290d

Please sign in to comment.