Remove Random Events and G's Cache (#2716)
This commit is contained in:
parent
1b260f788b
commit
a822da4af3
@ -52,8 +52,6 @@ namespace big::scr_globals
|
||||
static inline const script_global session5(1575007);
|
||||
static inline const script_global session6(2695909);
|
||||
|
||||
static inline const script_global gooch(1882037);
|
||||
|
||||
static inline const script_global gun_van(1948900);
|
||||
|
||||
static inline const script_global interaction_menu_access(2710115); // am_pi_menu -> PI_BIK_13_2_H -> global = true;
|
||||
@ -65,8 +63,6 @@ namespace big::scr_globals
|
||||
static inline const script_global property_garage(1936959);
|
||||
static inline const script_global property_names(1312263);
|
||||
|
||||
static inline const script_global pickups(2707706);
|
||||
|
||||
static inline const script_global reset_clothing(103936); // freemode 75, &iLocal_.*, 2\);
|
||||
}
|
||||
|
||||
|
@ -979,15 +979,13 @@ namespace big
|
||||
bool change_esp_color_from_dist = false;
|
||||
bool scale_health_from_dist = false;
|
||||
bool scale_armor_from_dist = false;
|
||||
bool object_esp = false;
|
||||
bool show_gs_cache_boxes = false;
|
||||
float distance_threshold[2] = {100.f, 200.f};
|
||||
ImU32 enemy_color = 4281479904;
|
||||
ImU32 enemy_near_color = 4283794943;
|
||||
ImU32 default_color = 4285713522;
|
||||
ImU32 friend_color = 4293244509;
|
||||
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(esp, enabled, global_render_distance, tracer_render_distance, box_render_distance, tracer, tracer_draw_position, box, health, armor, god, distance, name, change_esp_color_from_dist, scale_health_from_dist, scale_armor_from_dist, object_esp, show_gs_cache_boxes, distance_threshold, enemy_color, enemy_near_color, default_color, friend_color)
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(esp, enabled, global_render_distance, tracer_render_distance, box_render_distance, tracer, tracer_draw_position, box, health, armor, god, distance, name, change_esp_color_from_dist, scale_health_from_dist, scale_armor_from_dist, distance_threshold, enemy_color, enemy_near_color, default_color, friend_color)
|
||||
} esp{};
|
||||
|
||||
struct session_browser
|
||||
|
@ -288,7 +288,6 @@ namespace big
|
||||
|
||||
GenericPool** m_ped_pool;
|
||||
GenericPool** m_prop_pool;
|
||||
GenericPool** m_pickup_pool;
|
||||
VehiclePool*** m_vehicle_pool;
|
||||
|
||||
PVOID m_netfilter_handle_message;
|
||||
|
@ -1237,7 +1237,6 @@ namespace big
|
||||
[](memory::handle ptr)
|
||||
{
|
||||
g_pointers->m_gta.m_prop_pool = ptr.add(3).rip().as<GenericPool**>();
|
||||
g_pointers->m_gta.m_pickup_pool = ptr.add(0xE).rip().as<GenericPool**>();
|
||||
}
|
||||
},
|
||||
// Vehicle Pool
|
||||
|
@ -18,11 +18,6 @@ namespace big::pools
|
||||
return **g_pointers->m_gta.m_prop_pool;
|
||||
}
|
||||
|
||||
inline auto& get_all_pickups()
|
||||
{
|
||||
return **g_pointers->m_gta.m_pickup_pool;
|
||||
}
|
||||
|
||||
inline auto get_all_peds_array()
|
||||
{
|
||||
return get_all_peds().to_array();
|
||||
@ -37,9 +32,4 @@ namespace big::pools
|
||||
{
|
||||
return get_all_props().to_array();
|
||||
}
|
||||
|
||||
inline auto get_all_pickups_array()
|
||||
{
|
||||
return get_all_pickups().to_array();
|
||||
}
|
||||
};
|
@ -6,7 +6,6 @@
|
||||
#include "util/math.hpp"
|
||||
#include "util/misc.hpp"
|
||||
#include "gta/enums.hpp"
|
||||
#include "core/scr_globals.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
@ -173,40 +172,6 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
void esp::draw_object(const rage::CDynamicEntity* object, ImDrawList* const draw_list, std::string name)
|
||||
{
|
||||
if (!object || !object->m_navigation)
|
||||
return;
|
||||
|
||||
auto& object_pos = *object->m_navigation->get_position();
|
||||
|
||||
float screen_x, screen_y;
|
||||
|
||||
const float distance = math::calculate_distance_from_game_cam(object_pos);
|
||||
const float multplr = distance > g.esp.global_render_distance[1] ? -1.f : 6.17757f / distance;
|
||||
|
||||
if (multplr == -1.f || g.esp.global_render_distance[0] > distance)
|
||||
return;
|
||||
|
||||
ImVec2 name_pos;
|
||||
|
||||
if (g_pointers->m_gta.m_get_screen_coords_for_world_coords(object_pos.data, &screen_x, &screen_y))
|
||||
{
|
||||
const auto esp_x = (float)*g_pointers->m_gta.m_resolution_x * screen_x;
|
||||
const auto esp_y = (float)*g_pointers->m_gta.m_resolution_y * screen_y;
|
||||
name_pos = {esp_x, esp_y};
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ImU32 esp_color = g.esp.default_color;
|
||||
|
||||
draw_list->AddText(name_pos, esp_color, name.c_str());
|
||||
}
|
||||
|
||||
|
||||
void esp::draw()
|
||||
{
|
||||
if (!g.esp.enabled)
|
||||
@ -217,18 +182,6 @@ namespace big
|
||||
g_player_service->iterate([draw_list](const player_entry& entry) {
|
||||
draw_player(entry.second, draw_list);
|
||||
});
|
||||
|
||||
if (g.esp.object_esp)
|
||||
{
|
||||
if (g.esp.show_gs_cache_boxes && *g_pointers->m_gta.m_script_globals && **g_pointers->m_gta.m_script_globals)
|
||||
{
|
||||
auto gs_cache_box_entity = *scr_globals::pickups.at(605).as<Entity*>();
|
||||
if (gs_cache_box_entity != 0)
|
||||
{
|
||||
draw_object(g_pointers->m_gta.m_handle_to_ptr(gs_cache_box_entity), draw_list, "G's Cache");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include "services/players/player_service.hpp"
|
||||
#include "entities/CDynamicEntity.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
@ -9,6 +8,5 @@ namespace big
|
||||
public:
|
||||
static void draw();
|
||||
static void draw_player(const player_ptr& plyr, ImDrawList* const draw_list);
|
||||
static void draw_object(const rage::CDynamicEntity* object, ImDrawList* const draw_list, std::string name);
|
||||
};
|
||||
}
|
@ -110,15 +110,6 @@ namespace big
|
||||
});
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::BeginGroup();
|
||||
components::button("VIEW_NET_MISSIONS_GHOST_HUNT"_T, [] {
|
||||
scripts::start_launcher_script(174);
|
||||
});
|
||||
components::button("VIEW_NET_MISSIONS_POSESSED_ANIMALS"_T, [] {
|
||||
scripts::start_launcher_script(179);
|
||||
});
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (check_script(RAGE_JOAAT("am_criminal_damage")))
|
||||
|
@ -19,21 +19,16 @@ namespace big
|
||||
|
||||
components::player_command_button<"ceokick">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
components::button("VIEW_PLAYER_TOXIC_GOOCH_TEST"_T, [] {
|
||||
*scr_globals::gooch.at(289).at(1).as<Player*>() = g_player_service->get_selected()->id();
|
||||
scripts::start_launcher_script(171);
|
||||
});
|
||||
|
||||
components::player_command_button<"ragdoll">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
|
||||
components::player_command_button<"beast">(g_player_service->get_selected(), {});
|
||||
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"mission">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"error">(g_player_service->get_selected(), {});
|
||||
|
||||
components::player_command_button<"ceoraid">(g_player_service->get_selected(), {});
|
||||
components::player_command_button<"error">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"ceoraid">(g_player_service->get_selected(), {});
|
||||
|
||||
components::button("TRIGGER_MC_RAID"_T, [] {
|
||||
toxic::start_activity(g_player_service->get_selected(), eActivityType::BikerDefend);
|
||||
});
|
||||
|
@ -38,11 +38,6 @@ namespace big
|
||||
ImGui::Checkbox("SETTINGS_ESP_PLAYER_GOD_MODE"_T.data(), &g.esp.god);
|
||||
ImGui::Checkbox("SETTINGS_ESP_PLAYER_HEALTH"_T.data(), &g.esp.health);
|
||||
ImGui::Checkbox("SETTINGS_ESP_PLAYER_ARMOR"_T.data(), &g.esp.armor);
|
||||
ImGui::Checkbox("SETTINGS_ESP_OBJECT_ESP"_T.data(), &g.esp.object_esp);
|
||||
if (g.esp.object_esp)
|
||||
{
|
||||
ImGui::Checkbox("SETTINGS_ESP_OBJECT_ESP_GS_CACHE"_T.data(), &g.esp.show_gs_cache_boxes);
|
||||
}
|
||||
|
||||
ImGui::Checkbox("SETTINGS_ESP_COLOR_W_DISTANCE"_T.data(), &g.esp.change_esp_color_from_dist);
|
||||
if (g.esp.health)
|
||||
|
Reference in New Issue
Block a user