diff --git a/BigBaseV2/src/features.cpp b/BigBaseV2/src/features.cpp index 7a85a9e5..076db446 100644 --- a/BigBaseV2/src/features.cpp +++ b/BigBaseV2/src/features.cpp @@ -18,6 +18,7 @@ namespace big no_idle_kick(); no_ragdoll(); off_radar(); + population_modifiers(); reveal_players(); spoof_rank(); sticky_tyres(); diff --git a/BigBaseV2/src/features.hpp b/BigBaseV2/src/features.hpp index b6bf5b2f..2e5ef7f6 100644 --- a/BigBaseV2/src/features.hpp +++ b/BigBaseV2/src/features.hpp @@ -32,6 +32,7 @@ namespace big void no_idle_kick(); void no_ragdoll(); void off_radar(); + void population_modifiers(); void reveal_players(); void spoof_rank(); void sticky_tyres(); diff --git a/BigBaseV2/src/features/population_modifiers.cpp b/BigBaseV2/src/features/population_modifiers.cpp new file mode 100644 index 00000000..1df0d6d8 --- /dev/null +++ b/BigBaseV2/src/features/population_modifiers.cpp @@ -0,0 +1,18 @@ +#include "features.hpp" + +namespace big +{ + void features::population_modifiers() + { + if (g_settings.options["population_modifiers"].get()) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["pedestrian_population"].get()); + + VEHICLE::SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["parked_vehicle_density"].get()); + VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["vehicle_density"].get()); + }QUEUE_JOB_END_CLAUSE + } + } +} \ No newline at end of file diff --git a/BigBaseV2/src/gui/tab_bar/tab_world.cpp b/BigBaseV2/src/gui/tab_bar/tab_world.cpp index 69a344f7..10a00fc9 100644 --- a/BigBaseV2/src/gui/tab_bar/tab_world.cpp +++ b/BigBaseV2/src/gui/tab_bar/tab_world.cpp @@ -39,6 +39,28 @@ namespace big }QUEUE_JOB_END_CLAUSE } + ImGui::Separator(); + + if (ImGui::Checkbox("Population Modifiers", g_settings.options["population_modifiers"].get())) + g_settings.save(); + + if (g_settings.options["population_modifiers"].get()) + { + const double min = 0., max = 2.; + + ImGui::Text("Pedestrian Population"); + if (ImGui::SliderScalar("##ped_pop", ImGuiDataType_Double, g_settings.options["pedestrian_population"].get(), &min, &max)) + g_settings.save(); + + ImGui::Text("Parked Vehicle Density:"); + if (ImGui::SliderScalar("##parked_veh_density", ImGuiDataType_Double, g_settings.options["parked_vehicle_density"].get(), &min, &max)) + g_settings.save(); + + ImGui::Text("Vehicle Density:"); + if (ImGui::SliderScalar("##veh_density", ImGuiDataType_Double, g_settings.options["vehicle_density"].get(), &min, &max)) + g_settings.save(); + } + ImGui::EndTabItem(); } } diff --git a/BigBaseV2/src/settings.h b/BigBaseV2/src/settings.h index 7b9903ae..41ba2d1a 100644 --- a/BigBaseV2/src/settings.h +++ b/BigBaseV2/src/settings.h @@ -19,12 +19,16 @@ namespace big "no_bike_fall": false, "no_idle_kick": false, "off_radar": false, + "parked_vehicle_density": 1.0, + "pedestrian_population": 1.0, + "population_modifiers": false, "ragdoll": false, "rank": 6969, "reveal_players": false, "spoof_rank": false, "sticky_tyres": false, - "super_sprint": false + "super_sprint": false, + "vehicle_density": 1.0 })"_json; bool save()