refactor(Features/looped): Resorted files into sub dirs

This commit is contained in:
Yimura 2021-01-15 22:56:58 +01:00
parent 345116bd71
commit c627281e4d
16 changed files with 17 additions and 6 deletions

View File

@ -15,7 +15,7 @@ namespace big
ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId), bGodMode);
}QUEUE_JOB_END_CLAUSE
bLastGodMode = bGodMode;
bLastGodMode = bGodMode;
}
}
}

View File

@ -19,7 +19,7 @@ namespace big
PED::SET_PED_RAGDOLL_ON_COLLISION(player, !bNoRagdoll);
}QUEUE_JOB_END_CLAUSE
bLastNoRagdoll = bNoRagdoll;
bLastNoRagdoll = bNoRagdoll;
}
}
}

View File

@ -67,7 +67,7 @@ namespace big
else if (!bNoclip && bNoclip != bLastNoClip)
{
functions::take_control_of_entity(ent);
ENTITY::SET_ENTITY_COLLISION(ent, true, true);
}

View File

@ -12,7 +12,7 @@ namespace big
if (PED::IS_PED_IN_ANY_VEHICLE(player, true)) return;
bool bSuperSprint = g_settings.options["super_sprint"].get<bool>();
if (bSuperSprint)
{
float height = ENTITY::GET_ENTITY_HEIGHT_ABOVE_GROUND(player);

View File

@ -0,0 +1,11 @@
#include "features.hpp"
#include "script_global.hpp"
namespace big
{
void features::disable_phone()
{
if (g_settings.options["disable_phone"])
*script_global(19664).as<int*>() = 1;
}
}

View File

@ -6,7 +6,7 @@ namespace big
{
bool bNoBikeFall = g_settings.options["no_bike_fall"].get<bool>();
QUEUE_JOB_BEGIN_CLAUSE(=)
QUEUE_JOB_BEGIN_CLAUSE(= )
{
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall);
}QUEUE_JOB_END_CLAUSE

View File

@ -9,7 +9,7 @@ namespace big
QUEUE_JOB_BEGIN_CLAUSE()
{
PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["pedestrian_population"].get<double>());
VEHICLE::SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["parked_vehicle_density"].get<double>());
VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["vehicle_density"].get<double>());
}QUEUE_JOB_END_CLAUSE