feat(TabWorld): Added population and vehicle density modifiers
This commit is contained in:
parent
c7e6621e1b
commit
d3bb862700
@ -18,6 +18,7 @@ namespace big
|
||||
no_idle_kick();
|
||||
no_ragdoll();
|
||||
off_radar();
|
||||
population_modifiers();
|
||||
reveal_players();
|
||||
spoof_rank();
|
||||
sticky_tyres();
|
||||
|
@ -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();
|
||||
|
18
BigBaseV2/src/features/population_modifiers.cpp
Normal file
18
BigBaseV2/src/features/population_modifiers.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include "features.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void features::population_modifiers()
|
||||
{
|
||||
if (g_settings.options["population_modifiers"].get<bool>())
|
||||
{
|
||||
QUEUE_JOB_BEGIN_CLAUSE()
|
||||
{
|
||||
PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["pedestrian_population"].get<double>());
|
||||
|
||||
VEHICLE::SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["parked_vehicle_density"].get<double>());
|
||||
VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["vehicle_density"].get<double>());
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
}
|
||||
}
|
||||
}
|
@ -39,6 +39,28 @@ namespace big
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::Checkbox("Population Modifiers", g_settings.options["population_modifiers"].get<bool*>()))
|
||||
g_settings.save();
|
||||
|
||||
if (g_settings.options["population_modifiers"].get<bool>())
|
||||
{
|
||||
const double min = 0., max = 2.;
|
||||
|
||||
ImGui::Text("Pedestrian Population");
|
||||
if (ImGui::SliderScalar("##ped_pop", ImGuiDataType_Double, g_settings.options["pedestrian_population"].get<double*>(), &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<double*>(), &min, &max))
|
||||
g_settings.save();
|
||||
|
||||
ImGui::Text("Vehicle Density:");
|
||||
if (ImGui::SliderScalar("##veh_density", ImGuiDataType_Double, g_settings.options["vehicle_density"].get<double*>(), &min, &max))
|
||||
g_settings.save();
|
||||
}
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user