Fix bugs with compile & enter nearest car (vc)
This commit is contained in:
parent
01cfd73204
commit
e3e9cd6a25
10
.vscode/c_cpp_properties.json
vendored
10
.vscode/c_cpp_properties.json
vendored
@ -6,10 +6,10 @@
|
||||
"${workspaceFolder}/**",
|
||||
"${PLUGIN_SDK_DIR}/*",
|
||||
"${DIRECTX9_SDK_DIR}/Include/*",
|
||||
"${PLUGIN_SDK_DIR}/plugin_sa/*",
|
||||
"${PLUGIN_SDK_DIR}/plugin_sa/game_sa/*",
|
||||
// "${PLUGIN_SDK_DIR}/plugin_vc/*",
|
||||
// "${PLUGIN_SDK_DIR}/plugin_vc/game_vc/*",
|
||||
// "${PLUGIN_SDK_DIR}/plugin_sa/*",
|
||||
// "${PLUGIN_SDK_DIR}/plugin_sa/game_sa/*",
|
||||
"${PLUGIN_SDK_DIR}/plugin_vc/*",
|
||||
"${PLUGIN_SDK_DIR}/plugin_vc/game_vc/*",
|
||||
"${PLUGIN_SDK_DIR}/shared/*",
|
||||
"${PLUGIN_SDK_DIR}/shared/game/*",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt\\*",
|
||||
@ -20,7 +20,7 @@
|
||||
"IS_PLATFORM_WIN",
|
||||
"_CRT_SECURE_NO_WARNINGS",
|
||||
"_CRT_NON_CONFORMING_SWPRINTFS",
|
||||
"GTASA",
|
||||
"GTAVC",
|
||||
"_DX9_SDK_INSTALLED",
|
||||
"PLUGIN_SGV_10US"
|
||||
],
|
||||
|
@ -2,5 +2,5 @@
|
||||
#define MENU_NAME "Cheat Menu"
|
||||
#define MENU_VERSION_NUMBER "3.0"
|
||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
||||
#define BUILD_NUMBER "20210922"
|
||||
#define BUILD_NUMBER "20210923"
|
||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"
|
||||
|
@ -150,7 +150,7 @@ CPlayerPed* player = FindPlayerPed();
|
||||
CVector pos = pVeh->GetPosition();
|
||||
float dist = DistanceBetweenPoints(playerPos, pos);
|
||||
|
||||
if (dist < distance && pVeh->m_pDriver != player)
|
||||
if (dist < distance)
|
||||
{
|
||||
pClosestVeh = pVeh;
|
||||
distance = dist;
|
||||
|
@ -749,6 +749,7 @@ void Vehicle::Draw()
|
||||
Command<Commands::WARP_CHAR_INTO_CAR>(hplayer, pClosestVeh);
|
||||
}
|
||||
|
||||
#ifdef GTASA
|
||||
for (int i = 0; i < seats; ++i)
|
||||
{
|
||||
if (i % 2 != 1)
|
||||
@ -762,6 +763,21 @@ void Vehicle::Draw()
|
||||
Command<Commands::WARP_CHAR_INTO_CAR_AS_PASSENGER>(hplayer, pClosestVeh, i);
|
||||
}
|
||||
}
|
||||
#elif GTAVC
|
||||
// ImGui::SameLine();
|
||||
// if (ImGui::Button("Passenger", ImVec2(Ui::GetSize(2))))
|
||||
// {
|
||||
// if (pPlayer->m_bInVehicle)
|
||||
// {
|
||||
// CVector pos = pClosestVeh->GetPosition();
|
||||
// Command<Commands::WARP_CHAR_FROM_CAR_TO_COORD>(hplayer, pos.x, pos.y, pos.z);
|
||||
// }
|
||||
|
||||
// pPlayer->SetObjective(OBJECTIVE_ENTER_CAR_AS_PASSENGER);
|
||||
// pPlayer->WarpPedIntoCar(pClosestVeh);
|
||||
// // Command<Commands::SET_CAR_FORWARD_SPEED>(CPools::GetVehicleRef(pClosestVeh), 0);
|
||||
// }
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -53,42 +53,45 @@ project "CheatMenuVC"
|
||||
targetextension ".asi"
|
||||
|
||||
files {
|
||||
"../src/CheatMenu.h",
|
||||
"../src/CheatMenu.cpp",
|
||||
"../src/cheatmenu.h",
|
||||
"../src/cheatmenu.cpp",
|
||||
"../src/pch.h",
|
||||
"../src/pch.cpp",
|
||||
"../src/Hook.h",
|
||||
"../src/Hook.cpp",
|
||||
"../src/Updater.h",
|
||||
"../src/Updater.cpp",
|
||||
"../src/Json.h",
|
||||
"../src/Json.cpp",
|
||||
"../src/Animation.h",
|
||||
"../src/Animation.cpp",
|
||||
"../src/Teleport.h",
|
||||
"../src/Teleport.cpp",
|
||||
"../src/Player.h",
|
||||
"../src/Player.cpp",
|
||||
"../src/Ped.h",
|
||||
"../src/Ped.cpp",
|
||||
"../src/Ui.h",
|
||||
"../src/Ui.cpp",
|
||||
"../src/Vehicle.h",
|
||||
"../src/Vehicle.cpp",
|
||||
"../src/Util.h",
|
||||
"../src/Util.cpp",
|
||||
"../src/Menu.h",
|
||||
"../src/Menu.cpp",
|
||||
"../src/Weapon.h",
|
||||
"../src/Weapon.cpp",
|
||||
"../src/Game.h",
|
||||
"../src/Game.cpp",
|
||||
"../src/Visual.h",
|
||||
"../src/Visual.cpp",
|
||||
"../src/ResourceStore.h",
|
||||
"../src/ResourceStore.cpp",
|
||||
"../src/FileHandler.h",
|
||||
"../src/FileHandler.cpp"
|
||||
"../src/hook.h",
|
||||
"../src/hook.cpp",
|
||||
"../src/updater.h",
|
||||
"../src/updater.cpp",
|
||||
"../src/json.h",
|
||||
"../src/json.cpp",
|
||||
"../src/animation.h",
|
||||
"../src/animation.cpp",
|
||||
"../src/teleport.h",
|
||||
"../src/teleport.cpp",
|
||||
"../src/player.h",
|
||||
"../src/player.cpp",
|
||||
"../src/ped.h",
|
||||
"../src/ped.cpp",
|
||||
"../src/ui.h",
|
||||
"../src/ui.cpp",
|
||||
"../src/vehicle.h",
|
||||
"../src/vehicle.cpp",
|
||||
"../src/util.h",
|
||||
"../src/util.cpp",
|
||||
"../src/menu.h",
|
||||
"../src/menu.cpp",
|
||||
"../src/weapon.h",
|
||||
"../src/weapon.cpp",
|
||||
"../src/game.h",
|
||||
"../src/game.cpp",
|
||||
"../src/visual.h",
|
||||
"../src/visual.cpp",
|
||||
"../src/resourcestore.h",
|
||||
"../src/resourcestore.cpp",
|
||||
"../src/filehandler.h",
|
||||
"../src/filehandler.cpp",
|
||||
"../src/hotkeys.h",
|
||||
"../src/hotkeys.cpp",
|
||||
"../src/dllmain.cpp"
|
||||
}
|
||||
includedirs {
|
||||
PSDK_DIR .. "/plugin_vc/",
|
||||
|
Loading…
Reference in New Issue
Block a user