Bug fixes
This commit is contained in:
parent
209726c314
commit
c434183a62
@ -2,5 +2,5 @@
|
|||||||
#define MENU_NAME "Cheat Menu"
|
#define MENU_NAME "Cheat Menu"
|
||||||
#define MENU_VERSION_NUMBER "3.0"
|
#define MENU_VERSION_NUMBER "3.0"
|
||||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
||||||
#define BUILD_NUMBER "20211020"
|
#define BUILD_NUMBER "20211026"
|
||||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"
|
#define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"
|
||||||
|
@ -50,8 +50,6 @@
|
|||||||
#ifndef GTA3
|
#ifndef GTA3
|
||||||
#include <CBike.h>
|
#include <CBike.h>
|
||||||
#include <cHandlingDataMgr.h>
|
#include <cHandlingDataMgr.h>
|
||||||
#include <CTheZones.h>
|
|
||||||
#include <CZoneInfo.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
@ -62,6 +60,7 @@
|
|||||||
#include <CShadows.h>
|
#include <CShadows.h>
|
||||||
#include <eVehicleClass.h>
|
#include <eVehicleClass.h>
|
||||||
#include <CGangWars.h>
|
#include <CGangWars.h>
|
||||||
|
#include <CZoneInfo.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../depend/fla/IDaccess.h"
|
#include "../depend/fla/IDaccess.h"
|
||||||
|
@ -333,7 +333,7 @@ void Player::ChangePlayerModel(std::string& cat, std::string& key, std::string&
|
|||||||
CPlayerPed* player = FindPlayerPed();
|
CPlayerPed* player = FindPlayerPed();
|
||||||
|
|
||||||
#ifdef GTAVC
|
#ifdef GTAVC
|
||||||
player->Undress(id.c_str());
|
player->Undress(val.c_str());
|
||||||
CStreaming::LoadAllRequestedModels(false);
|
CStreaming::LoadAllRequestedModels(false);
|
||||||
player->Dress();
|
player->Dress();
|
||||||
#else // GTA3
|
#else // GTA3
|
||||||
|
@ -63,11 +63,11 @@ Teleport::Teleport()
|
|||||||
|
|
||||||
if (pVeh && BY_GAME(player->m_nPedFlags.bInVehicle, player->m_pVehicle, player->m_pVehicle))
|
if (pVeh && BY_GAME(player->m_nPedFlags.bInVehicle, player->m_pVehicle, player->m_pVehicle))
|
||||||
{
|
{
|
||||||
BY_GAME(pVeh->Teleport(m_Teleport::m_fPos, false, false), pVeh->Teleport(m_Teleport::m_fPos), player->Teleport(m_Teleport::m_fPos));
|
BY_GAME(pVeh->Teleport(m_Teleport::m_fPos, false), pVeh->Teleport(m_Teleport::m_fPos), player->Teleport(m_Teleport::m_fPos));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BY_GAME(player->Teleport(m_Teleport::m_fPos, false, false), player->Teleport(m_Teleport::m_fPos), player->Teleport(m_Teleport::m_fPos));
|
BY_GAME(player->Teleport(m_Teleport::m_fPos, false), player->Teleport(m_Teleport::m_fPos), player->Teleport(m_Teleport::m_fPos));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_Teleport::m_bEnabled = false;
|
m_Teleport::m_bEnabled = false;
|
||||||
@ -133,7 +133,7 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, int interior_id)
|
|||||||
else if (pVeh->m_nVehicleClass != VEHICLE_BOAT)
|
else if (pVeh->m_nVehicleClass != VEHICLE_BOAT)
|
||||||
reinterpret_cast<CAutomobile*>(pVeh)->PlaceOnRoadProperly();
|
reinterpret_cast<CAutomobile*>(pVeh)->PlaceOnRoadProperly();
|
||||||
|
|
||||||
BY_GAME(pVeh->m_nAreaCode, pVeh->m_nInterior) = interior_id;
|
BY_GAME(pVeh->m_nAreaCode, pVeh->m_nInterior, NULL) = interior_id;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ Vehicle::Vehicle()
|
|||||||
pPlayer->m_nPedFlags.CantBeKnockedOffBike = m_bDontFallBike ? 1 : 2;
|
pPlayer->m_nPedFlags.CantBeKnockedOffBike = m_bDontFallBike ? 1 : 2;
|
||||||
|
|
||||||
if (m_UnlimitedNitro::m_bEnabled
|
if (m_UnlimitedNitro::m_bEnabled
|
||||||
&& BY_GAME(pVeh->m_nVehicleSubClass, pVeh->m_nVehicleClass) == VEHICLE_AUTOMOBILE)
|
&& BY_GAME(pVeh->m_nVehicleSubClass, pVeh->m_nVehicleClass, NULL) == VEHICLE_AUTOMOBILE)
|
||||||
{
|
{
|
||||||
patch::Set<BYTE>(0x969165, 0, true); // All cars have nitro
|
patch::Set<BYTE>(0x969165, 0, true); // All cars have nitro
|
||||||
patch::Set<BYTE>(0x96918B, 0, true); // All taxis have nitro
|
patch::Set<BYTE>(0x96918B, 0, true); // All taxis have nitro
|
||||||
@ -474,7 +474,7 @@ void Vehicle::SpawnVehicle(std::string& rootkey, std::string& vehName, std::stri
|
|||||||
}
|
}
|
||||||
BY_GAME(veh->m_nDoorLock, veh->m_nLockStatus, veh->m_nDoorLock) = CARLOCK_UNLOCKED;
|
BY_GAME(veh->m_nDoorLock, veh->m_nLockStatus, veh->m_nDoorLock) = CARLOCK_UNLOCKED;
|
||||||
#ifndef GTA3
|
#ifndef GTA3
|
||||||
BY_GAME(veh->m_nAreaCode, veh->m_nInterior) = interior;
|
BY_GAME(veh->m_nAreaCode, veh->m_nInterior, NULL) = interior;
|
||||||
#endif
|
#endif
|
||||||
Command<Commands::MARK_CAR_AS_NO_LONGER_NEEDED>(CPools::GetVehicleRef(veh));
|
Command<Commands::MARK_CAR_AS_NO_LONGER_NEEDED>(CPools::GetVehicleRef(veh));
|
||||||
CStreaming::SetModelIsDeletable(imodel);
|
CStreaming::SetModelIsDeletable(imodel);
|
||||||
@ -640,14 +640,14 @@ void Vehicle::Draw()
|
|||||||
Ui::CheckboxWithHint("Don't fall off bike", &m_bDontFallBike);
|
Ui::CheckboxWithHint("Don't fall off bike", &m_bDontFallBike);
|
||||||
#endif
|
#endif
|
||||||
#ifndef GTA3
|
#ifndef GTA3
|
||||||
Ui::CheckboxAddress("Drive on water", BY_GAME(0x969152,0xA10B81));
|
Ui::CheckboxAddress("Drive on water", BY_GAME(0x969152, 0xA10B81, NULL));
|
||||||
#endif
|
#endif
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
Ui::CheckboxAddressEx("Lock train camera", 0x52A52F, 171, 6);
|
Ui::CheckboxAddressEx("Lock train camera", 0x52A52F, 171, 6);
|
||||||
Ui::CheckboxAddress("Float away when hit", 0x969166);
|
Ui::CheckboxAddress("Float away when hit", 0x969166);
|
||||||
#endif
|
#endif
|
||||||
#ifndef GTA3
|
#ifndef GTA3
|
||||||
Ui::CheckboxAddress("Green traffic lights", BY_GAME(0x96914E,0xA10ADC));
|
Ui::CheckboxAddress("Green traffic lights", BY_GAME(0x96914E, 0xA10ADC, NULL));
|
||||||
#endif
|
#endif
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
Ui::CheckboxAddress("Perfect handling", 0x96914C);
|
Ui::CheckboxAddress("Perfect handling", 0x96914C);
|
||||||
@ -881,8 +881,8 @@ void Vehicle::Draw()
|
|||||||
|
|
||||||
static std::vector<Ui::NamedMemory> color
|
static std::vector<Ui::NamedMemory> color
|
||||||
{
|
{
|
||||||
{"Black", BY_GAME(0x969151, 0xA10B82)},
|
{"Black", BY_GAME(0x969151, 0xA10B82, NULL)},
|
||||||
{"Pink", BY_GAME(0x969150, 0xA10B26)}
|
{"Pink", BY_GAME(0x969150, 0xA10B26, NULL)}
|
||||||
};
|
};
|
||||||
Ui::RadioButtonAddress("Color", color);
|
Ui::RadioButtonAddress("Color", color);
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
@ -139,12 +139,14 @@ void Visual::GenerateTimecycFile()
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
buffer = "\n// FOGGY\n";
|
buffer = "\n// FOGGY\n";
|
||||||
|
#ifdef GTAVC
|
||||||
case 4:
|
case 4:
|
||||||
buffer = "\n// EXTRA SUNNY\n";
|
buffer = "\n// EXTRA SUNNY\n";
|
||||||
case 5:
|
case 5:
|
||||||
buffer = "\n// HURRICANE\n";
|
buffer = "\n// HURRICANE\n";
|
||||||
case 6:
|
case 6:
|
||||||
buffer = "\n// EXTRA COLORS (INTERIORS)\n// These colours do not belong to a weather type but can be set by the level designers for interiors.\n";
|
buffer = "\n// EXTRA COLORS (INTERIORS)\n// These colours do not belong to a weather type but can be set by the level designers for interiors.\n";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GTA3
|
#ifdef GTA3
|
||||||
@ -156,6 +158,38 @@ void Visual::GenerateTimecycFile()
|
|||||||
|
|
||||||
for (size_t j = 0; j < 24; ++j)
|
for (size_t j = 0; j < 24; ++j)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef GTAVC
|
||||||
|
if (i == 6) //EXTRA COLORS
|
||||||
|
{
|
||||||
|
buffer = "// Extra Color " + std::to_string(j);
|
||||||
|
|
||||||
|
static std::string intNames[] = {
|
||||||
|
"Maibu Club", "Strip Club", "Hotel", "Bank", "Police HQ", "Mall", "Rifle Range", "Mansion", "Dirtring", "Blood ring",
|
||||||
|
"Hotring", "Concert Hall", "Auntie Poulets", "Intro at Docks", "Biker Bar", "Intro Cafe Dark Room", "Studio"
|
||||||
|
};
|
||||||
|
|
||||||
|
if (j < 18)
|
||||||
|
{
|
||||||
|
buffer += "(" + intNames[j] + ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
buffer = "// " + std::to_string(j) + " ";
|
||||||
|
if (j < 12)
|
||||||
|
{
|
||||||
|
buffer += "AM\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
buffer += "PM\n";
|
||||||
|
}
|
||||||
|
#ifdef GTAVC
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef GTA3
|
#ifdef GTA3
|
||||||
size_t val = i + TOTAL_WEATHERS*j;
|
size_t val = i + TOTAL_WEATHERS*j;
|
||||||
buffer += std::format("{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {} {}",
|
buffer += std::format("{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {} {}",
|
||||||
@ -174,35 +208,6 @@ void Visual::GenerateTimecycFile()
|
|||||||
GetTCVal(m_fPostFxRed, val), GetTCVal(m_fPostFxGreen, val), GetTCVal(m_fPostFxBlue, val), GetTCVal(m_fPostFxAlpha, val)
|
GetTCVal(m_fPostFxRed, val), GetTCVal(m_fPostFxGreen, val), GetTCVal(m_fPostFxBlue, val), GetTCVal(m_fPostFxAlpha, val)
|
||||||
);
|
);
|
||||||
#elif GTAVC
|
#elif GTAVC
|
||||||
|
|
||||||
if (i == 6) //EXTRA COLORS
|
|
||||||
{
|
|
||||||
buffer = "// Extra Color " + std::to_string(j);
|
|
||||||
|
|
||||||
static std::string intNames[] = {
|
|
||||||
"Maibu Club", "Strip Club", "Hotel", "Bank", "Police HQ", "Mall", "Rifle Range", "Mansion", "Dirtring", "Blood ring",
|
|
||||||
"Hotring", "Concert Hall", "Auntie Poulets", "Intro at Docks", "Biker Bar", "Intro Cafe Dark Room", "Studio"
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
if (j < 18)
|
|
||||||
{
|
|
||||||
buffer += "(" + intNames[j] + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
buffer = "// " + std::to_string(j) + " ";
|
|
||||||
if (j < 12)
|
|
||||||
{
|
|
||||||
buffer += "AM\n";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
buffer += "PM\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t val = TOTAL_WEATHERS * i + j;
|
size_t val = TOTAL_WEATHERS * i + j;
|
||||||
buffer += std::format("{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {} {}",
|
buffer += std::format("{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {}\t{} {} {} {}",
|
||||||
GetTCVal(m_nAmbientRed, val), GetTCVal(m_nAmbientGreen, val), GetTCVal(m_nAmbientBlue, val),
|
GetTCVal(m_nAmbientRed, val), GetTCVal(m_nAmbientGreen, val), GetTCVal(m_nAmbientBlue, val),
|
||||||
|
Loading…
Reference in New Issue
Block a user