Ped animations interface (#1668)

This commit is contained in:
DayibBaba
2023-08-04 14:43:35 +02:00
committed by GitHub
parent 7b11122e83
commit a1daa92665
17 changed files with 671 additions and 113 deletions

View File

@ -7,6 +7,7 @@
#include "services/context_menu/context_menu_service.hpp"
#include "services/custom_teleport/custom_teleport_service.hpp"
#include "services/orbital_drone/orbital_drone.hpp"
#include "services/ped_animations/ped_animations_service.hpp"
#include "services/script_connection/script_connection_service.hpp"
#include "services/squad_spawner/squad_spawner.hpp"
#include "services/tunables/tunables_service.hpp"
@ -27,6 +28,7 @@ namespace big
g_squad_spawner_service.fetch_squads();
g_xml_vehicles_service->fetch_xml_files();
g_custom_teleport_service.fetch_saved_locations();
g_ped_animation_service.fetch_saved_animations();
while (g_running)
{
@ -59,6 +61,16 @@ namespace big
}
}
void backend::ambient_animations_loop()
{
while (g_running)
{
g_ped_animation_service.ambient_animations_prompt_tick();
script::get_current()->yield();
}
}
void backend::weapons_loop()
{
LOG(INFO) << "Starting script: Weapons";