This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/BigBaseV2/src/features/looped/population_modifiers.cpp

18 lines
579 B
C++
Raw Normal View History

#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
}
}
}