diff options
author | BDKPlayer <fabian.stotz@yahoo.de> | 2020-03-04 21:48:47 +0100 |
---|---|---|
committer | BDKPlayer <fabian.stotz@yahoo.de> | 2020-03-04 21:48:47 +0100 |
commit | aa75847f5770c3bbd2840ff5c52af32761e475aa (patch) | |
tree | cba1cb06267919837be32372b76f5ea098781042 | |
parent | 39be1b0e1ecebf73fbda16a99c4d2aeb3ca5010a (diff) |
Added: playernames
-rw-r--r-- | Classes.h | 10 | ||||
-rw-r--r-- | Core.cpp | 4 | ||||
-rw-r--r-- | ESP.cpp | 2 | ||||
-rw-r--r-- | ESP.h | 2 |
4 files changed, 9 insertions, 9 deletions
@@ -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 { @@ -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); @@ -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]); } } @@ -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 }; |