feat(Vehicle): Added despawn bypass

This commit is contained in:
Yimura 2021-12-15 20:15:21 +01:00
parent e0e6840d28
commit b31b472fed
3 changed files with 17 additions and 4 deletions

View File

@ -70,6 +70,7 @@ namespace big
QUEUE_JOB_BEGIN_CLAUSE()
{
looped::vehicle_despawn_bypass();
looped::vehicle_god_mode();
looped::vehicle_horn_boost();
looped::vehicle_speedo_meter();

View File

@ -26,15 +26,16 @@ namespace big
static void system_update_pointers();
static void system_screen_size();
static void vehicle_despawn_bypass();
static void vehicle_god_mode();
static void vehicle_horn_boost();
static void vehicle_speedo_meter();
static void weapons_cage_gun();
static void weapons_delete_gun();
static void weapons_gravity_gun();
static void weapons_repair_gun();
static void weapons_steal_vehicle_gun();
static void weapons_vehicle_gun();
static void vehicle_god_mode();
static void vehicle_horn_boost();
static void vehicle_speedo_meter();
};
}

View File

@ -0,0 +1,11 @@
#include "backend/looped/looped.hpp"
#include "script_global.hpp"
namespace big
{
// allows for spawning unreleased vehicles in online and online vehicles in single player
void looped::vehicle_despawn_bypass()
{
*script_global(4533757).as<bool*>() = true;
}
}