[III | VC] Fix build issues

This commit is contained in:
Grinch_ 2022-07-31 04:01:41 +06:00
parent 3cf3e8dd5a
commit b555f4449d
4 changed files with 15 additions and 3 deletions

View File

@ -126,6 +126,7 @@ void Overlay::ProcessModelInfo()
}
}
#ifdef GTASA
void Overlay::ProcessPedTasks()
{
if (m_bPedTasks)
@ -174,6 +175,7 @@ void Overlay::ProcessPedTasks()
}
}
}
#endif
void Overlay::Draw()
{
@ -191,7 +193,9 @@ void Overlay::Draw()
if (ImGui::Begin("##Overlay", NULL, flags))
{
ProcessModelInfo();
#ifdef GTASA
ProcessPedTasks();
#endif
ImGui::End();
}

View File

@ -27,8 +27,10 @@ private:
// Draws model & it's name on screen (peds, objects, vehicles)
static void ProcessModelInfo();
#ifdef GTASA
// Processes current ped tasks & draws them ons creen
static void ProcessPedTasks();
#endif
// Processes commad bar & commands
static void ProcessCmdBar();

View File

@ -150,7 +150,7 @@ void Player::Init()
static float prevVal = 0;
float curVal = player->m_fHealth;
if (player->m_fHealth >= player->m_fMaxHealth)
if (player->m_fHealth >= BY_GAME(player->m_fMaxHealth, 100, 100))
{
curVal = player->m_fArmour;
}

View File

@ -111,7 +111,10 @@ project "CheatMenuIII"
"../src/locale.h",
"../src/locale.cpp",
"../src/rpc.h",
"../src/rpc.cpp"
"../src/rpc.cpp",
"../src/overlay.h",
"../src/overlay.cpp",
"../src/tasknames.cpp"
}
includedirs {
PSDK_DIR .. "/plugin_III/",
@ -202,7 +205,10 @@ project "CheatMenuVC"
"../src/locale.h",
"../src/locale.cpp",
"../src/rpc.h",
"../src/rpc.cpp"
"../src/rpc.cpp",
"../src/overlay.h",
"../src/overlay.cpp",
"../src/tasknames.cpp"
}
includedirs {
PSDK_DIR .. "/plugin_vc/",