mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
feat(self): add no collision(#541)
This commit is contained in:
parent
7c19d0145f
commit
ae8a540730
@ -32,6 +32,7 @@ namespace big
|
||||
looped::self_off_radar();
|
||||
looped::self_police();
|
||||
looped::self_super_run();
|
||||
looped::self_no_collision();
|
||||
|
||||
script::get_current()->yield();
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ namespace big
|
||||
static void self_off_radar();
|
||||
static void self_police();
|
||||
static void self_super_run();
|
||||
static void self_no_collision();
|
||||
|
||||
static void session_local_time();
|
||||
|
||||
|
24
BigBaseV2/src/backend/looped/self/no_collision.cpp
Normal file
24
BigBaseV2/src/backend/looped/self/no_collision.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include "backend/looped/looped.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
static bool bLastNoCollsion = false;
|
||||
|
||||
void looped::self_no_collision()
|
||||
{
|
||||
if (g_local_player == nullptr) return;
|
||||
|
||||
bool bNoCollsion = g->self.no_collision;
|
||||
|
||||
if (bNoCollsion)
|
||||
{
|
||||
g_local_player->m_navigation->m_damp->m_bound_composite->m_bound_capsule_list->m_bound_capsule->m_collision = -1;
|
||||
bLastNoCollsion = bNoCollsion;
|
||||
}
|
||||
else if (bNoCollsion != bLastNoCollsion)
|
||||
{
|
||||
g_local_player->m_navigation->m_damp->m_bound_composite->m_bound_capsule_list->m_bound_capsule->m_collision = 0.25;
|
||||
bLastNoCollsion = bNoCollsion;
|
||||
}
|
||||
}
|
||||
}
|
@ -151,6 +151,7 @@ namespace big
|
||||
bool noclip = false;
|
||||
bool off_radar = false;
|
||||
bool super_run = false;
|
||||
bool no_collision = false;
|
||||
int wanted_level = 0;
|
||||
bool god_mode = false;
|
||||
bool proof_bullet = false;
|
||||
@ -558,6 +559,7 @@ namespace big
|
||||
this->self.no_ragdoll = j["self"]["no_ragdoll"];
|
||||
this->self.off_radar = j["self"]["off_radar"];
|
||||
this->self.super_run = j["self"]["super_run"];
|
||||
this->self.no_collision = j["self"]["no_collision"];
|
||||
|
||||
this->settings.dev_dlc = j["settings"]["dev_dlc"];
|
||||
this->settings.hotkeys.menu_toggle = j["settings"]["hotkeys"]["menu_toggle"];
|
||||
@ -824,6 +826,7 @@ namespace big
|
||||
{ "no_ragdoll", this->self.no_ragdoll },
|
||||
{ "off_radar", this->self.off_radar },
|
||||
{ "super_run", this->self.super_run },
|
||||
{ "no_collision", this->self.no_collision },
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -38,6 +38,12 @@ namespace big
|
||||
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
|
||||
});
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
components::button("Clean Player", [] {
|
||||
entity::clean_ped(self::ped);
|
||||
});
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
components::sub_title("General");
|
||||
@ -69,9 +75,7 @@ namespace big
|
||||
|
||||
ImGui::Checkbox("Keep Player Clean", &g->self.clean_player);
|
||||
|
||||
components::button("Clean Player", [] {
|
||||
entity::clean_ped(self::ped);
|
||||
});
|
||||
ImGui::Checkbox("No Collision", &g->self.no_collision);
|
||||
|
||||
ImGui::EndGroup();
|
||||
|
||||
|
2
vendor/GTAV-Classes
vendored
2
vendor/GTAV-Classes
vendored
@ -1 +1 @@
|
||||
Subproject commit 011018945d7a04ff818bd6961875309c2099709a
|
||||
Subproject commit 37361b421f70cf2a0cce33f2c7d277116474b7cd
|
Loading…
x
Reference in New Issue
Block a user