Add more spoofing options and added clang-format (#1020)

* feat(Spoofing): add spoofing
* feat(Spoofing): prepare code for player attach
* remove(PlayerAttach): isn't going to work due to netsync architecture
* fix(GUI): fix scaling
* feat(Project): add clang-format file
* feat(Classes): update classes
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(clang-format): Set tab width and 1 space before comment

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
This commit is contained in:
maybegreat48
2023-03-01 21:27:15 +00:00
committed by GitHub
parent 92aea20cd6
commit 97a8c5d60b
466 changed files with 55224 additions and 35596 deletions

View File

@ -1,13 +1,13 @@
#include "gta/joaat.hpp"
#include "gta_util.hpp"
#include "gui/components/components.hpp"
#include "natives.hpp"
#include "util/system.hpp"
#include "util/misc.hpp"
#include "view_debug.hpp"
#include "network/Network.hpp"
#include "script.hpp"
#include "gta/joaat.hpp"
#include "script_global.hpp"
#include "gta_util.hpp"
#include "util/misc.hpp"
#include "util/system.hpp"
#include "view_debug.hpp"
namespace big
{
@ -18,7 +18,7 @@ namespace big
if (components::button("MOV QWORD"))
{
*static_cast<uint64_t*>(nullptr) = 0;
uint64_t i = *static_cast<uint64_t*>(nullptr);
uint64_t i = *static_cast<uint64_t*>(nullptr);
}
if (components::button("MOV 0xdead"))
@ -31,39 +31,39 @@ namespace big
system::dump_entry_points();
}
components::button("Network Bail", []
{
components::button("Network Bail", [] {
NETWORK::NETWORK_BAIL(16, 0, 0);
});
components::button("DEBUG_REMOVE_FROM_BAD_SPORT"_T, []
{
components::button("DEBUG_REMOVE_FROM_BAD_SPORT"_T, [] {
STATS::STAT_SET_FLOAT(RAGE_JOAAT("mpply_overall_badsport"), 0.0f, TRUE);
STATS::STAT_SET_BOOL(RAGE_JOAAT("mpply_was_i_bad_sport"), FALSE, TRUE);
});
components::button("Load MP Map", [] { DLC::ON_ENTER_MP(); });
components::button("Load MP Map", [] {
DLC::ON_ENTER_MP();
});
ImGui::SameLine();
components::button("Load SP Map", [] { DLC::ON_ENTER_SP(); });
components::button("Skip Cutscene", [] { CUTSCENE::STOP_CUTSCENE_IMMEDIATELY(); });
components::button("Load SP Map", [] {
DLC::ON_ENTER_SP();
});
components::button("Refresh Interior", []\
{
components::button("Skip Cutscene", [] {
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
});
components::button("Refresh Interior", [] {
Interior interior = INTERIOR::GET_INTERIOR_AT_COORDS(self::pos.x, self::pos.y, self::pos.z);
INTERIOR::REFRESH_INTERIOR(interior);
});
if (ImGui::IsItemHovered())
ImGui::SetTooltip("You Will Have To Refresh Again When Exiting Interior.\n SPAMMING WILL CRASH GAME");
components::button("Network Shutdown And Launch Single Player Game", []\
{
components::button("Network Shutdown And Launch Single Player Game", [] {
NETWORK::SHUTDOWN_AND_LAUNCH_SINGLE_PLAYER_GAME();
});
components::button("Network Shutdown And Load Most Recent Save", []\
{
components::button("Network Shutdown And Load Most Recent Save", [] {
NETWORK::SHUTDOWN_AND_LOAD_MOST_RECENT_SAVE();
});