[III | VC] Fix build issues
This commit is contained in:
parent
3cf3e8dd5a
commit
b555f4449d
@ -126,6 +126,7 @@ void Overlay::ProcessModelInfo()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GTASA
|
||||||
void Overlay::ProcessPedTasks()
|
void Overlay::ProcessPedTasks()
|
||||||
{
|
{
|
||||||
if (m_bPedTasks)
|
if (m_bPedTasks)
|
||||||
@ -174,6 +175,7 @@ void Overlay::ProcessPedTasks()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void Overlay::Draw()
|
void Overlay::Draw()
|
||||||
{
|
{
|
||||||
@ -191,7 +193,9 @@ void Overlay::Draw()
|
|||||||
if (ImGui::Begin("##Overlay", NULL, flags))
|
if (ImGui::Begin("##Overlay", NULL, flags))
|
||||||
{
|
{
|
||||||
ProcessModelInfo();
|
ProcessModelInfo();
|
||||||
|
#ifdef GTASA
|
||||||
ProcessPedTasks();
|
ProcessPedTasks();
|
||||||
|
#endif
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,8 +27,10 @@ private:
|
|||||||
// Draws model & it's name on screen (peds, objects, vehicles)
|
// Draws model & it's name on screen (peds, objects, vehicles)
|
||||||
static void ProcessModelInfo();
|
static void ProcessModelInfo();
|
||||||
|
|
||||||
|
#ifdef GTASA
|
||||||
// Processes current ped tasks & draws them ons creen
|
// Processes current ped tasks & draws them ons creen
|
||||||
static void ProcessPedTasks();
|
static void ProcessPedTasks();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Processes commad bar & commands
|
// Processes commad bar & commands
|
||||||
static void ProcessCmdBar();
|
static void ProcessCmdBar();
|
||||||
|
@ -150,7 +150,7 @@ void Player::Init()
|
|||||||
static float prevVal = 0;
|
static float prevVal = 0;
|
||||||
float curVal = player->m_fHealth;
|
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;
|
curVal = player->m_fArmour;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,10 @@ project "CheatMenuIII"
|
|||||||
"../src/locale.h",
|
"../src/locale.h",
|
||||||
"../src/locale.cpp",
|
"../src/locale.cpp",
|
||||||
"../src/rpc.h",
|
"../src/rpc.h",
|
||||||
"../src/rpc.cpp"
|
"../src/rpc.cpp",
|
||||||
|
"../src/overlay.h",
|
||||||
|
"../src/overlay.cpp",
|
||||||
|
"../src/tasknames.cpp"
|
||||||
}
|
}
|
||||||
includedirs {
|
includedirs {
|
||||||
PSDK_DIR .. "/plugin_III/",
|
PSDK_DIR .. "/plugin_III/",
|
||||||
@ -202,7 +205,10 @@ project "CheatMenuVC"
|
|||||||
"../src/locale.h",
|
"../src/locale.h",
|
||||||
"../src/locale.cpp",
|
"../src/locale.cpp",
|
||||||
"../src/rpc.h",
|
"../src/rpc.h",
|
||||||
"../src/rpc.cpp"
|
"../src/rpc.cpp",
|
||||||
|
"../src/overlay.h",
|
||||||
|
"../src/overlay.cpp",
|
||||||
|
"../src/tasknames.cpp"
|
||||||
}
|
}
|
||||||
includedirs {
|
includedirs {
|
||||||
PSDK_DIR .. "/plugin_vc/",
|
PSDK_DIR .. "/plugin_vc/",
|
||||||
|
Loading…
Reference in New Issue
Block a user