mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
refactor(Features/looped): Resorted files into sub dirs
This commit is contained in:
parent
345116bd71
commit
c627281e4d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -19,7 +19,7 @@ namespace big
|
||||
PED::SET_PED_RAGDOLL_ON_COLLISION(player, !bNoRagdoll);
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
|
||||
bLastNoRagdoll = bNoRagdoll;
|
||||
bLastNoRagdoll = bNoRagdoll;
|
||||
}
|
||||
}
|
||||
}
|
@ -67,7 +67,7 @@ namespace big
|
||||
else if (!bNoclip && bNoclip != bLastNoClip)
|
||||
{
|
||||
functions::take_control_of_entity(ent);
|
||||
|
||||
|
||||
ENTITY::SET_ENTITY_COLLISION(ent, true, true);
|
||||
}
|
||||
|
@ -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);
|
11
BigBaseV2/src/features/looped/tunables/disable_phone.cpp
Normal file
11
BigBaseV2/src/features/looped/tunables/disable_phone.cpp
Normal 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;
|
||||
}
|
||||
}
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user