#pragma once #include "common.hpp" #include "looped/looped.hpp" #include "script.hpp" #include "services/context_menu_service.hpp" namespace big { class backend { public: static void loop(); static void self_loop() { LOG(INFO) << "Starting script: Self"; while (g_running) { looped::self_clean_player(); looped::self_free_cam(); looped::self_godmode(); looped::self_invisibility(); looped::self_no_ragdoll(); looped::self_off_radar(); looped::self_police(); looped::self_super_run(); script::get_current()->yield(); } } static void weapons_loop() { LOG(INFO) << "Starting script: Weapons"; while (g_running) { looped::weapons_ammo_special_type(); looped::weapons_cage_gun(); looped::weapons_delete_gun(); looped::weapons_force_crosshairs(); looped::weapons_gravity_gun(); looped::weapons_increased_damage(); looped::weapons_infinite_ammo(); looped::weapons_infinite_mag(); looped::weapons_no_recoil(); looped::weapons_no_spread(); looped::weapons_repair_gun(); looped::weapons_steal_vehicle_gun(); looped::weapons_vehicle_gun(); script::get_current()->yield(); } } static void vehicles_loop() { LOG(INFO) << "Starting script: Vehicles"; while (g_running) { looped::vehicle_auto_drive_to_waypoint(); looped::vehicle_auto_drive_wander(); looped::vehicle_despawn_bypass(); looped::vehicle_drive_on_water(); looped::vehicle_god_mode(); looped::vehicle_horn_boost(); looped::vehicle_instant_brake(); looped::vehicle_is_targetable(); looped::vehicle_rainbow_paint(); looped::vehicle_seatbelt(); looped::vehicle_speedo_meter(); script::get_current()->yield(); } } static void turnsignal_loop() { LOG(INFO) << "Starting script: turnsignal"; while (g_running) { looped::vehicle_turn_signals(); script::get_current()->yield(); } } static void rgbrandomizer_loop() { LOG(INFO) << "Starting script: rgbrandomizer"; while (g_running) { looped::rgb_synced_fade(); looped::rgb_synced_spasm(); script::get_current()->yield(); } } static void misc_loop() { LOG(INFO) << "Starting script: Miscellaneous"; while (g_running) { looped::hud_transition_state(); looped::tunables_disable_phone(); looped::tunables_no_idle_kick(); looped::session_local_time(); script::get_current()->yield(); } } static void remote_loop() { LOG(INFO) << "Starting script: Remote"; while (g_running) { looped::player_never_wanted(); looped::player_spectate(); script::get_current()->yield(); } } static void noclip_loop() { LOG(INFO) << "Starting script: No clip"; while (g_running) { looped::self_noclip(); script::get_current()->yield(); } } static void lscustoms_loop() { LOG(INFO) << "Starting script: Ls customs"; while (g_running) { looped::vehicle_ls_customs(); script::get_current()->yield(); } } static void vehiclefly_loop() { LOG(INFO) << "Starting script: Vehicle fly"; while (g_running) { looped::vehicle_fly(); script::get_current()->yield(); } } static void disable_control_action_loop() { LOG(INFO) << "Starting script: Disable Control Action"; while (g_running) { looped::self_free_cam_disable_control_action(); looped::self_noclip_disable_control_action(); looped::custom_gun_disable_control_action(); context_menu_service::disable_control_action_loop(); script::get_current()->yield(); } } }; }