aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBDKPlayer <fabian.stotz@yahoo.de>2020-03-04 21:48:47 +0100
committerBDKPlayer <fabian.stotz@yahoo.de>2020-03-04 21:48:47 +0100
commitaa75847f5770c3bbd2840ff5c52af32761e475aa (patch)
treecba1cb06267919837be32372b76f5ea098781042
parent39be1b0e1ecebf73fbda16a99c4d2aeb3ca5010a (diff)
Added: playernames
-rw-r--r--Classes.h10
-rw-r--r--Core.cpp4
-rw-r--r--ESP.cpp2
-rw-r--r--ESP.h2
4 files changed, 9 insertions, 9 deletions
diff --git a/Classes.h b/Classes.h
index c9bc2b3..3f18fa0 100644
--- a/Classes.h
+++ b/Classes.h
@@ -98,12 +98,12 @@ public:
ObjectManager* pObjectManager; //0x0028
char pad_0x0030[0x40]; //0x0030
Resources* pResources; //0x0070
- char pad_0x0078[0xD8]; //0x0078
- void* unk; //0x0150
- int* playerColor; //0x0158
- int* unk1; //0x0160
+ char pad_0x0078[0xE0]; //0x0078
+ int* color; //0x0158
+ char pad_0x0160[0x9238]; //0x0160
+ char* name; //0x9398
-}; //Size=0x0188
+}; //Size=0x93A0
class World
{
diff --git a/Core.cpp b/Core.cpp
index 34c8bb1..e9be09d 100644
--- a/Core.cpp
+++ b/Core.cpp
@@ -29,10 +29,10 @@ Core::Core()
void createPlayerTreeNode(Player* player, int playerIndex)
{
- ImGui::PushStyleColor(ImGuiCol_Text, Engine::Get()->GetPlayerColorImGUI(*player->playerColor));
+ ImGui::PushStyleColor(ImGuiCol_Text, Engine::Get()->GetPlayerColorImGUI(*player->color));
std::string playerText = "Player " + std::to_string(playerIndex);
- if (ImGui::TreeNode(playerText.c_str()))
+ if (ImGui::TreeNode(player->name))
{
ImGui::Text("Player %p", player);
FeatureManager::Get()->OnMenuPlayerTreenode(player, playerIndex);
diff --git a/ESP.cpp b/ESP.cpp
index 3fd8c1f..283ddaa 100644
--- a/ESP.cpp
+++ b/ESP.cpp
@@ -53,7 +53,7 @@ void ESP::OnUnitIteration(Unit* unit, Player* player, int playerIndex)
{
return; //Dont display annoying flares that Bots use
}
- DrawBox(unit, colors_hex[*player->playerColor], playerUnitNameEsp[playerIndex]);
+ DrawBox(unit, colors_hex[*player->color], playerUnitNameEsp[playerIndex]);
}
}
diff --git a/ESP.h b/ESP.h
index a4c5477..4323785 100644
--- a/ESP.h
+++ b/ESP.h
@@ -6,7 +6,7 @@ class ESP : public Feature
bool gaiaEsp = true;
bool goldESP = true;
bool stoneESP = true;
- bool playerUnitEsp[8] = { false,false,true,true,true,true,true,true };
+ bool playerUnitEsp[8] = { true,true,true,true,true,true,true,true };
bool playerUnitNameEsp[8] = { false,false,false,false,false,false,false,false };
//bool playerBuildingEsp[8] = { false,true,true,true,true,true,true,true };