2 304
static bool CarSize = false;
static float A4 = 1.0f;
if (CarSize) {
auto localPlayer = g_LocalPlayer;
auto Actors = getActors();
for (int i = 0; i < Actors.size(); ++i) {
auto Actor = Actors[i];
if (!Actor || isObjectInvalid(Actor)) continue;
if (Actor->IsA(ASTExtraVehicleBase::StaticClass())) {
auto Vehicle = (ASTExtraVehicleBase*)Actor;
if (!Vehicle->RootComponent) continue;
if (Vehicle == localPlayer->CurrentVehicle) {
Vehicle->SetActorScale3D({A4, A4, A4});
break;
}
}
}
}
ImGui::Checkbox(" Test", &CarSize);
ImGui::SliderFloat("A4", &A4, 0.1f, 5.0f);
Vehicle Size Adjust28 2月, 04:57
