feat(Features): Added no bike fall looped feature

This commit is contained in:
Yimura 2020-12-26 21:56:22 +01:00
parent 40f320046f
commit 7876b48bee
5 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@ namespace big
god_mode();
never_wanted();
no_bike_fall();
no_idle_kick();
no_ragdoll();
off_radar();

View File

@ -25,6 +25,7 @@ namespace big
void god_mode();
void never_wanted();
void no_bike_fall();
void no_idle_kick();
void no_ragdoll();
void off_radar();

View File

@ -0,0 +1,11 @@
#include "features.hpp"
namespace big
{
void features::no_bike_fall()
{
bool bNoBikeFall = g_settings.options["no_bike_fall"].get<bool>();
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall);
}
}

View File

@ -7,6 +7,8 @@ namespace big
{
if (ImGui::BeginTabItem("Vehicle"))
{
ImGui::Checkbox("No Bike Fall", g_settings.options["no_bike_fall"].get<bool*>());
if (ImGui::Button("Repair Vehicle"))
{
QUEUE_JOB_BEGIN_CLAUSE()

View File

@ -15,6 +15,7 @@ namespace big
R"({
"god_mode": false,
"never_wanted": false,
"no_bike_fall": false,
"no_idle_kick": false,
"off_radar": false,
"ragdoll": false,