diff options
author | BDKPlayer <fabian.stotz@yahoo.de> | 2020-08-02 13:34:33 +0200 |
---|---|---|
committer | BDKPlayer <fabian.stotz@yahoo.de> | 2020-08-02 13:34:33 +0200 |
commit | 822b531a4f9b8120f1126fbaec085b8b6fab4c57 (patch) | |
tree | 270cb36ceca218fcfe1e3cbb9f8b9cf3127602bb /Core.cpp | |
parent | a927cae5522db4eadc250a6cda03494f7a8c2a83 (diff) |
Added unit->GetHealth()
Diffstat (limited to 'Core.cpp')
-rw-r--r-- | Core.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -27,18 +27,12 @@ #include "Offsets.h" -MidfunctionHook onGameStartHook = MidfunctionHook(); MidfunctionHook onTurnHook = MidfunctionHook(); MidfunctionHook onCreateUnitHook = MidfunctionHook(); bool openOverlay = true; -void __fastcall OnGameStartHook(Registers* registers) -{ - FeatureManager::Get()->OnGameStart(); - printf("OnGameStart()\n"); -} void __fastcall OnTurnHook(Registers* registers) @@ -130,7 +124,7 @@ void createPlayerTreeNode(Player* player, int playerIndex) ImGui::Text("%p", unit); ImGui::SameLine(); ImGui::Text("%s", unit->GetUnitData()->GetName()); - ImGui::Text("%f %f %f", unit->GetPosition().x, unit->GetPosition().y, unit->GetPosition().z); + ImGui::Text("%f %f %f Health: %f", unit->GetPosition().x, unit->GetPosition().y, unit->GetPosition().z, unit->GetHealth()); ImGui::SameLine(); //std::string text = std::string("Copy##") + std::string(unit->GetUnitData()->GetName()) + std::to_string(i); |