mirror of
https://github.com/DumbDev69420/EscapeTheBackrooms_Internal.git
synced 2024-12-22 14:37:30 +08:00
Fixed more stuff, and made some unsafe code safe
This commit is contained in:
parent
b8e4ef7c04
commit
be65783af7
@ -1329,7 +1329,6 @@ namespace Cheat {
|
|||||||
RunMainHost();
|
RunMainHost();
|
||||||
|
|
||||||
|
|
||||||
static bool WasCollide = false;
|
|
||||||
static SDK::ABoatPawn* LastBoat = 0x0;
|
static SDK::ABoatPawn* LastBoat = 0x0;
|
||||||
|
|
||||||
if (Settings::BoatFly || Settings::BoatSpeedhack || Settings::BoatEsp) {
|
if (Settings::BoatFly || Settings::BoatSpeedhack || Settings::BoatEsp) {
|
||||||
@ -1360,15 +1359,14 @@ namespace Cheat {
|
|||||||
|
|
||||||
if (BoatPawn->Controller == PlayerController) {
|
if (BoatPawn->Controller == PlayerController) {
|
||||||
|
|
||||||
LastBoat = BoatPawn;
|
|
||||||
|
|
||||||
//BoatPawn->LaunchPawn(SDK::FVector(0, 0, 200.5f), false, false);
|
//BoatPawn->LaunchPawn(SDK::FVector(0, 0, 200.5f), false, false);
|
||||||
if (Settings::BoatFly) {
|
if (Settings::BoatFly) {
|
||||||
|
|
||||||
BoatPawn->RootComponent->ComponentVelocity = { 0.0f, 0.0f, 0.0f };
|
BoatPawn->RootComponent->ComponentVelocity = { 0.0f, 0.0f, 0.0f };
|
||||||
BoatPawn->SceneComponent->ComponentVelocity = { 0.0f, 0.0f, 0.0f };
|
BoatPawn->SceneComponent->ComponentVelocity = { 0.0f, 0.0f, 0.0f };
|
||||||
BoatPawn->bActorEnableCollision = false;
|
BoatPawn->bActorEnableCollision = false;
|
||||||
WasCollide = true;
|
|
||||||
|
Settings::IniShitsLevel[5] = true;
|
||||||
|
|
||||||
if (GetAsyncKeyState(VK_LEFT)) {
|
if (GetAsyncKeyState(VK_LEFT)) {
|
||||||
SDK::FRotator rotation = BoatPawn->K2_GetActorRotation();
|
SDK::FRotator rotation = BoatPawn->K2_GetActorRotation();
|
||||||
@ -1512,11 +1510,27 @@ namespace Cheat {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (WasCollide) {
|
if (Settings::IniShitsLevel[5]) {
|
||||||
if (UsefullFuncs::ShouldUsePtr(LastBoat))
|
|
||||||
LastBoat->SetActorEnableCollision(true);
|
|
||||||
|
|
||||||
WasCollide = false;
|
if (auto BoatClass = SDK::ABP_RowBoat_C::StaticClass(); BoatClass)
|
||||||
|
{
|
||||||
|
|
||||||
|
SDK::TArray<SDK::AActor*> BoatPawns;
|
||||||
|
GPStatics->GetAllActorsOfClass(WorldP, BoatClass, &BoatPawns);
|
||||||
|
|
||||||
|
if (BoatPawns.IsValid()) {
|
||||||
|
for (size_t i = 0; i < BoatPawns.Num(); i++)
|
||||||
|
{
|
||||||
|
auto BoatPawn = (SDK::ABP_RowBoat_C*)BoatPawns[i];
|
||||||
|
|
||||||
|
if (BoatPawn->Controller == PlayerController) {
|
||||||
|
BoatPawn->bActorEnableCollision = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Settings::IniShitsLevel[5] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +339,7 @@ namespace Settings {
|
|||||||
bool InfiniteStamina = false;
|
bool InfiniteStamina = false;
|
||||||
bool AutoRespawnPlayers = true;
|
bool AutoRespawnPlayers = true;
|
||||||
bool wtf_ = false;
|
bool wtf_ = false;
|
||||||
bool IniShitsLevel[5];
|
bool IniShitsLevel[6];
|
||||||
bool IniShitsPlayer[7];
|
bool IniShitsPlayer[7];
|
||||||
|
|
||||||
bool SpawnItem = false;
|
bool SpawnItem = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user