add: fly and tp to azazel

This commit is contained in:
Jadis0x
2024-05-29 21:43:06 +03:00
parent a5e92125ed
commit 7c151b664f
6 changed files with 51 additions and 15 deletions

View File

@@ -189,6 +189,10 @@ void DrawMapSpecificTab() {
if (ImGui::Button("Instant Win")) {
Misc::InstantWin();
}
if (ImGui::Button("TP To Azazel")) {
Misc::TpToAzazel();
}
}
bool inspector = false;
@@ -314,7 +318,7 @@ void DrawMiscTab() {
*/
ImGui::Checkbox("Fly", &settings::fly);
ImGui::SliderFloat("Speed: ", &settings::fly_speed, 1.f, 10.f);
ImGui::SliderFloat("Speed: ", &settings::fly_speed, 5.f, 15.f);
/*
if (ImGui::Button("Make random noise")) {

View File

@@ -266,8 +266,8 @@ void Misc::FullBright()
if (nb != nullptr) {
app::Light* _flashlight = nb->fields.flashlightSpot;
app::Light_set_intensity(_flashlight, 0.7f, nullptr);
app::Light_set_range(_flashlight, 400.0f, nullptr);
app::Light_set_intensity(_flashlight, 0.8f, nullptr);
app::Light_set_range(_flashlight, 700.0f, nullptr);
app::Light_set_spotAngle(_flashlight, 179.0f, nullptr);
app::Light_set_shadows(_flashlight, app::LightShadows__Enum::None, nullptr);
@@ -438,3 +438,36 @@ void Misc::Kill(bool self) {
}
}
}
void Misc::TpToAzazel()
{
std::string _scene = SceneName();
if (_scene == std::string("Menu")) return;
app::GameObject* go = Player::GetLocalPlayer();
if (go) {
app::NolanBehaviour* nb = Player::GetNolan();
if (nb == nullptr) return;
app::Survival* _survival = UnityCore::Object<app::Survival>::FindObjectOfType("Survival");
if (_survival == nullptr) return;
// get azazel
app::GameObject* azazelGo = GetAzazel(_survival);
if (azazelGo == nullptr) return;
// get transform of azazel
app::Transform* transform = app::GameObject_get_transform(azazelGo, nullptr);
if (transform == nullptr) return;
app::Vector3 v3 = app::Transform_get_position(transform, nullptr);
app::Quaternion rotation = app::Quaternion_get_identity(nullptr);
if (app::NolanBehaviour_TeleportTo != nullptr) {
app::NolanBehaviour_TeleportTo(nb, v3, rotation, false, nullptr);
}
}
}

View File

@@ -18,4 +18,5 @@ namespace Misc {
void Jumpscare();
void Kill(bool self);
void RankSpoofer(int value);
void TpToAzazel();
}

View File

@@ -12,6 +12,7 @@
#include "players/players.h"
#include "UnityCore.h"
#include "ClientHelper.h"
#include "features/misc/misc.h"
#pragma warning(push, 0) //important cuz dx11 throws so much warnings
#include <d3d11.h>
@@ -634,6 +635,12 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval
if (settings::player_esp)
ESP::RunPlayersESP();
if (settings::fly)
Misc::Fly(settings::fly_speed);
if (settings::fullBright)
Misc::FullBright();
ImGui::GetIO().MouseDrawCursor = open_menu;
ImGui::EndFrame();

View File

@@ -115,20 +115,11 @@ void Run()
}
while (true) {
if (GetAsyncKeyState(VK_END) & 0x8000 || should_unhook) {
if (GetAsyncKeyState(VK_END) & 0x8000 || should_unhook)
break;
}
if (settings::fullBright) {
Misc::FullBright();
}
if (settings::fly) {
//Misc::Fly(settings::fly_speed);
}
std::this_thread::sleep_for(std::chrono::milliseconds(500));
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
CreateThread(0, 0, EjectThread, 0, 0, 0);
}

View File

@@ -35,7 +35,7 @@ namespace settings {
bool server_name_spoof = false;
std::string server_name = "Jadis0x";
bool fly = false;
float fly_speed = 1.f;
float fly_speed = 5.f;
bool unlock_all = true;
bool exp_modifier = false;
int new_exp = 2000;