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.

175 lines
3.1 KiB
C++
Raw Normal View History

2021-05-19 14:35:30 +02:00
#pragma once
#include "common.hpp"
2022-05-22 16:43:09 +02:00
#include "looped/looped.hpp"
#include "script.hpp"
2021-05-19 14:35:30 +02:00
namespace big
{
class backend {
public:
static void loop();
2022-05-22 16:43:09 +02:00
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();
2022-05-22 16:43:09 +02:00
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();
2022-05-22 16:43:09 +02:00
script::get_current()->yield();
}
}
static void turnsignal_loop() {
LOG(INFO) << "Starting script: turnsignal";
while (g_running) {
looped::vehicle_turn_signals();
script::get_current()->yield();
}
}
2022-05-22 16:43:09 +02:00
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) {
2022-05-22 16:43:09 +02:00
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();
}
}
2021-05-19 14:35:30 +02:00
};
}