chore: Rename handling to current_profile
This commit is contained in:
parent
1ba3e75cc3
commit
e808b23c93
@ -1,23 +1,23 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_brakes()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Brakes"))
|
||||
{
|
||||
ImGui::Text("Brake Force");
|
||||
ImGui::DragFloat("##brake force", &g_local_player->m_vehicle->m_handling->m_brake_force, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Brake Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
|
||||
float fBrakeBias = g_local_player->m_vehicle->m_handling->m_brake_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##brake bias front", &fBrakeBias, 0.f, 1.f))
|
||||
g_local_player->m_vehicle->m_handling->m_brake_bias_front = fBrakeBias * 2;
|
||||
|
||||
ImGui::Text("Hand Brake Force");
|
||||
ImGui::DragFloat("##hand brake force", &g_local_player->m_vehicle->m_handling->m_handbrake_force, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_brakes()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Brakes"))
|
||||
{
|
||||
ImGui::Text("Brake Force");
|
||||
ImGui::DragFloat("##brake force", &g_local_player->m_vehicle->m_handling->m_brake_force, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Brake Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
|
||||
float fBrakeBias = g_local_player->m_vehicle->m_handling->m_brake_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##brake bias front", &fBrakeBias, 0.f, 1.f))
|
||||
g_local_player->m_vehicle->m_handling->m_brake_bias_front = fBrakeBias * 2;
|
||||
|
||||
ImGui::Text("Hand Brake Force");
|
||||
ImGui::DragFloat("##hand brake force", &g_local_player->m_vehicle->m_handling->m_handbrake_force, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,23 +1,23 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_gearing()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Gearing"))
|
||||
{
|
||||
ImGui::Text("Initial Drive Gears");
|
||||
int initial_drive_gears = g_local_player->m_vehicle->m_handling->m_initial_drive_gears;
|
||||
if (ImGui::DragInt("###handling_drive_gears", &initial_drive_gears, .1f, 1, 16))
|
||||
g_local_player->m_vehicle->m_handling->m_initial_drive_gears = initial_drive_gears;
|
||||
|
||||
ImGui::Text("Upshift Multiplier");
|
||||
ImGui::DragFloat("###handling_upshift", &g_local_player->m_vehicle->m_handling->m_upshift, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Downshift Multiplier");
|
||||
ImGui::DragFloat("###handling_downshift", &g_local_player->m_vehicle->m_handling->m_downshift, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_gearing()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Gearing"))
|
||||
{
|
||||
ImGui::Text("Initial Drive Gears");
|
||||
int initial_drive_gears = g_local_player->m_vehicle->m_handling->m_initial_drive_gears;
|
||||
if (ImGui::DragInt("###handling_drive_gears", &initial_drive_gears, .1f, 1, 16))
|
||||
g_local_player->m_vehicle->m_handling->m_initial_drive_gears = initial_drive_gears;
|
||||
|
||||
ImGui::Text("Upshift Multiplier");
|
||||
ImGui::DragFloat("###handling_upshift", &g_local_player->m_vehicle->m_handling->m_upshift, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Downshift Multiplier");
|
||||
ImGui::DragFloat("###handling_downshift", &g_local_player->m_vehicle->m_handling->m_downshift, .01f, 0.f, 10.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
};
|
@ -1,33 +1,33 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_general()
|
||||
{
|
||||
if (ImGui::BeginTabItem("General"))
|
||||
{
|
||||
ImGui::Text("Gravity");
|
||||
ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f);
|
||||
|
||||
ImGui::Text("Mass");
|
||||
ImGui::SliderFloat("##Mass", &g_local_player->m_vehicle->m_handling->m_mass, 0.f, 50000.f);
|
||||
|
||||
ImGui::Text("Centre of mass");
|
||||
float fCenterOfMass[3];
|
||||
fCenterOfMass[0] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.x;
|
||||
fCenterOfMass[1] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.y;
|
||||
fCenterOfMass[2] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.z;
|
||||
if (ImGui::SliderFloat3("##centre_of_mass", fCenterOfMass, -10.f, 10.f))
|
||||
{
|
||||
g_local_player->m_vehicle->m_handling->m_centre_of_mass.x = fCenterOfMass[0];
|
||||
g_local_player->m_vehicle->m_handling->m_centre_of_mass.y = fCenterOfMass[1];
|
||||
g_local_player->m_vehicle->m_handling->m_centre_of_mass.z = fCenterOfMass[2];
|
||||
}
|
||||
|
||||
ImGui::Text("Buoyancy");
|
||||
ImGui::SliderFloat("##buoyancy", &g_local_player->m_vehicle->m_handling->m_buoyancy, .01f, 99.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_general()
|
||||
{
|
||||
if (ImGui::BeginTabItem("General"))
|
||||
{
|
||||
ImGui::Text("Gravity");
|
||||
ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f);
|
||||
|
||||
ImGui::Text("Mass");
|
||||
ImGui::SliderFloat("##Mass", &g_local_player->m_vehicle->m_handling->m_mass, 0.f, 50000.f);
|
||||
|
||||
ImGui::Text("Centre of mass");
|
||||
float fCenterOfMass[3];
|
||||
fCenterOfMass[0] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.x;
|
||||
fCenterOfMass[1] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.y;
|
||||
fCenterOfMass[2] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.z;
|
||||
if (ImGui::SliderFloat3("##centre_of_mass", fCenterOfMass, -10.f, 10.f))
|
||||
{
|
||||
g_local_player->m_vehicle->m_handling->m_centre_of_mass.x = fCenterOfMass[0];
|
||||
g_local_player->m_vehicle->m_handling->m_centre_of_mass.y = fCenterOfMass[1];
|
||||
g_local_player->m_vehicle->m_handling->m_centre_of_mass.z = fCenterOfMass[2];
|
||||
}
|
||||
|
||||
ImGui::Text("Buoyancy");
|
||||
ImGui::SliderFloat("##buoyancy", &g_local_player->m_vehicle->m_handling->m_buoyancy, .01f, 99.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,30 +1,30 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_other()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Other"))
|
||||
{
|
||||
ImGui::Text("Acceleration Multiplier");
|
||||
ImGui::DragFloat("###handling_acceleration", &g_local_player->m_vehicle->m_handling->m_acceleration, 1.f, .01f, 10.f);
|
||||
|
||||
ImGui::Text("Downforce Multiplier");
|
||||
ImGui::DragFloat("###handling_downforce", &g_local_player->m_vehicle->m_handling->m_downforce_multiplier, 1.f, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Inertia Multiplier");
|
||||
float fInertiaMult[3];
|
||||
fInertiaMult[0] = g_local_player->m_vehicle->m_handling->m_inertia_mult.x;
|
||||
fInertiaMult[1] = g_local_player->m_vehicle->m_handling->m_inertia_mult.y;
|
||||
fInertiaMult[2] = g_local_player->m_vehicle->m_handling->m_inertia_mult.z;
|
||||
if (ImGui::SliderFloat3("##inertia_multiplier", fInertiaMult, -10.f, 10.f))
|
||||
{
|
||||
g_local_player->m_vehicle->m_handling->m_inertia_mult.x = fInertiaMult[0];
|
||||
g_local_player->m_vehicle->m_handling->m_inertia_mult.y = fInertiaMult[1];
|
||||
g_local_player->m_vehicle->m_handling->m_inertia_mult.z = fInertiaMult[2];
|
||||
}
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_other()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Other"))
|
||||
{
|
||||
ImGui::Text("Acceleration Multiplier");
|
||||
ImGui::DragFloat("###handling_acceleration", &g_local_player->m_vehicle->m_handling->m_acceleration, 1.f, .01f, 10.f);
|
||||
|
||||
ImGui::Text("Downforce Multiplier");
|
||||
ImGui::DragFloat("###handling_downforce", &g_local_player->m_vehicle->m_handling->m_downforce_multiplier, 1.f, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Inertia Multiplier");
|
||||
float fInertiaMult[3];
|
||||
fInertiaMult[0] = g_local_player->m_vehicle->m_handling->m_inertia_mult.x;
|
||||
fInertiaMult[1] = g_local_player->m_vehicle->m_handling->m_inertia_mult.y;
|
||||
fInertiaMult[2] = g_local_player->m_vehicle->m_handling->m_inertia_mult.z;
|
||||
if (ImGui::SliderFloat3("##inertia_multiplier", fInertiaMult, -10.f, 10.f))
|
||||
{
|
||||
g_local_player->m_vehicle->m_handling->m_inertia_mult.x = fInertiaMult[0];
|
||||
g_local_player->m_vehicle->m_handling->m_inertia_mult.y = fInertiaMult[1];
|
||||
g_local_player->m_vehicle->m_handling->m_inertia_mult.z = fInertiaMult[2];
|
||||
}
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
};
|
@ -1,22 +1,22 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_roll_centre_height()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Roll Centre Height"))
|
||||
{
|
||||
ImGui::Text("The point in the transverse vertical plane through any pair of wheel centres\nat which lateral forces apply to the sprung mass without producing suspension roll.");
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::Text("Roll Centre Height Front");
|
||||
ImGui::SliderFloat("##roll centre height front", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_front, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Roll Centre Height Back");
|
||||
ImGui::SliderFloat("##roll centre height back", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_rear, -1.f, 1.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_roll_centre_height()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Roll Centre Height"))
|
||||
{
|
||||
ImGui::Text("The point in the transverse vertical plane through any pair of wheel centres\nat which lateral forces apply to the sprung mass without producing suspension roll.");
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::Text("Roll Centre Height Front");
|
||||
ImGui::SliderFloat("##roll centre height front", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_front, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Roll Centre Height Back");
|
||||
ImGui::SliderFloat("##roll centre height back", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_rear, -1.f, 1.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
};
|
@ -1,20 +1,20 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_rollbars()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Rollbars"))
|
||||
{
|
||||
ImGui::Text("Anti-Roll Bar force");
|
||||
ImGui::SliderFloat("##anti rollbar force", &g_local_player->m_vehicle->m_handling->m_anti_rollbar_force, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Anti-Roll Bar Bias front (0 = front, 1 = rear)");
|
||||
float fAntiRollBarBiasFront = g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##anti rollbar bias", &fAntiRollBarBiasFront, 0.f, 1.f))
|
||||
g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front = fAntiRollBarBiasFront * 2;
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_rollbars()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Rollbars"))
|
||||
{
|
||||
ImGui::Text("Anti-Roll Bar force");
|
||||
ImGui::SliderFloat("##anti rollbar force", &g_local_player->m_vehicle->m_handling->m_anti_rollbar_force, 0.f, 10.f);
|
||||
|
||||
ImGui::Text("Anti-Roll Bar Bias front (0 = front, 1 = rear)");
|
||||
float fAntiRollBarBiasFront = g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##anti rollbar bias", &fAntiRollBarBiasFront, 0.f, 1.f))
|
||||
g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front = fAntiRollBarBiasFront * 2;
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
};
|
@ -1,15 +1,15 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_steering()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Steering"))
|
||||
{
|
||||
ImGui::Text("Steering Lock (degrees)");
|
||||
ImGui::SliderAngle("##steering lock", &g_local_player->m_vehicle->m_handling->m_steering_lock, -90.f, 90.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_steering()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Steering"))
|
||||
{
|
||||
ImGui::Text("Steering Lock (degrees)");
|
||||
ImGui::SliderAngle("##steering lock", &g_local_player->m_vehicle->m_handling->m_steering_lock, -90.f, 90.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,35 +1,35 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_suspension()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Suspension"))
|
||||
{
|
||||
ImGui::Text("Suspension Force (General Suspension Strength)");
|
||||
ImGui::SliderFloat("##suspension force", &g_local_player->m_vehicle->m_handling->m_suspension_force, 0.f, 5.f);
|
||||
|
||||
ImGui::Text("Suspension Compression Damp (Higher = Less Compression)");
|
||||
ImGui::SliderFloat("##suspension comp", &g_local_player->m_vehicle->m_handling->m_suspension_comp_damp, 0.f, 5.f);
|
||||
|
||||
ImGui::Text("Suspension Rebound Damp (Higher = Less Decompression)");
|
||||
ImGui::SliderFloat("##suspension rebound", &g_local_player->m_vehicle->m_handling->m_suspension_rebound_damp, 0.f, 5.f);
|
||||
|
||||
ImGui::Text("Suspension Upper Limit (mostly visual)");
|
||||
ImGui::SliderFloat("##suspension upper", &g_local_player->m_vehicle->m_handling->m_suspension_upper_limit, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Suspension Lower Limit (mostly visual)");
|
||||
ImGui::SliderFloat("##suspension lower", &g_local_player->m_vehicle->m_handling->m_suspension_lower_limit, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Suspension Raise (Ride Height)");
|
||||
ImGui::SliderFloat("##suspension raise", &g_local_player->m_vehicle->m_handling->m_suspension_raise, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Suspension Bias Front (Strength Bias, 1 = front, 0 = rear)");
|
||||
float fSuspensionBiasFront = g_local_player->m_vehicle->m_handling->m_suspension_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##suspension bias", &fSuspensionBiasFront, 0.f, 1.f))
|
||||
g_local_player->m_vehicle->m_handling->m_suspension_bias_front = fSuspensionBiasFront * 2;
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_suspension()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Suspension"))
|
||||
{
|
||||
ImGui::Text("Suspension Force (General Suspension Strength)");
|
||||
ImGui::SliderFloat("##suspension force", &g_local_player->m_vehicle->m_handling->m_suspension_force, 0.f, 5.f);
|
||||
|
||||
ImGui::Text("Suspension Compression Damp (Higher = Less Compression)");
|
||||
ImGui::SliderFloat("##suspension comp", &g_local_player->m_vehicle->m_handling->m_suspension_comp_damp, 0.f, 5.f);
|
||||
|
||||
ImGui::Text("Suspension Rebound Damp (Higher = Less Decompression)");
|
||||
ImGui::SliderFloat("##suspension rebound", &g_local_player->m_vehicle->m_handling->m_suspension_rebound_damp, 0.f, 5.f);
|
||||
|
||||
ImGui::Text("Suspension Upper Limit (mostly visual)");
|
||||
ImGui::SliderFloat("##suspension upper", &g_local_player->m_vehicle->m_handling->m_suspension_upper_limit, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Suspension Lower Limit (mostly visual)");
|
||||
ImGui::SliderFloat("##suspension lower", &g_local_player->m_vehicle->m_handling->m_suspension_lower_limit, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Suspension Raise (Ride Height)");
|
||||
ImGui::SliderFloat("##suspension raise", &g_local_player->m_vehicle->m_handling->m_suspension_raise, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Suspension Bias Front (Strength Bias, 1 = front, 0 = rear)");
|
||||
float fSuspensionBiasFront = g_local_player->m_vehicle->m_handling->m_suspension_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##suspension bias", &fSuspensionBiasFront, 0.f, 1.f))
|
||||
g_local_player->m_vehicle->m_handling->m_suspension_bias_front = fSuspensionBiasFront * 2;
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,27 +1,27 @@
|
||||
#pragma once
|
||||
#include "common.hpp"
|
||||
#include "imgui.h"
|
||||
|
||||
namespace big
|
||||
{
|
||||
class tab_handling
|
||||
{
|
||||
public:
|
||||
static void tab_brakes();
|
||||
static void tab_gearing();
|
||||
static void tab_general();
|
||||
static void tab_other();
|
||||
static void tab_rollbars();
|
||||
static void tab_roll_centre_height();
|
||||
static void tab_suspension();
|
||||
static void tab_steering();
|
||||
static void tab_traction();
|
||||
static void tab_transmission();
|
||||
};
|
||||
|
||||
class modal_handling
|
||||
{
|
||||
public:
|
||||
static void modal_save_handling();
|
||||
};
|
||||
#pragma once
|
||||
#include "common.hpp"
|
||||
#include "imgui.h"
|
||||
|
||||
namespace big
|
||||
{
|
||||
class tab_handling
|
||||
{
|
||||
public:
|
||||
static void tab_brakes();
|
||||
static void tab_gearing();
|
||||
static void tab_general();
|
||||
static void tab_other();
|
||||
static void tab_rollbars();
|
||||
static void tab_roll_centre_height();
|
||||
static void tab_suspension();
|
||||
static void tab_steering();
|
||||
static void tab_traction();
|
||||
static void tab_transmission();
|
||||
};
|
||||
|
||||
class modal_handling
|
||||
{
|
||||
public:
|
||||
static void modal_save_handling();
|
||||
};
|
||||
}
|
@ -1,38 +1,38 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_traction()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Traction"))
|
||||
{
|
||||
ImGui::Text("Minimum Traction");
|
||||
ImGui::SliderFloat("##traction curve min", &g_local_player->m_vehicle->m_handling->m_traction_curve_min, 0.f, 7.f);
|
||||
|
||||
ImGui::Text("Peak Traction before grip is lost");
|
||||
ImGui::SliderFloat("##traction curve max", &g_local_player->m_vehicle->m_handling->m_traction_curve_max, 0.f, 7.f);
|
||||
|
||||
ImGui::Text("Traction Curve (point of grip loss)");
|
||||
ImGui::SliderAngle("##traction curve lateral", &g_local_player->m_vehicle->m_handling->m_traction_curve_lateral);
|
||||
|
||||
ImGui::Text("Traction Height Loss (distance ground and tires)");
|
||||
ImGui::SliderFloat("##traction spring delta max", &g_local_player->m_vehicle->m_handling->m_traction_spring_delta_max, 0.f, 2.f);
|
||||
|
||||
ImGui::Text("Burnout Multiplier");
|
||||
ImGui::SliderFloat("##low speed traction loss mult", &g_local_player->m_vehicle->m_handling->m_low_speed_traction_loss_mult, 0.f, 10.f);
|
||||
|
||||
//ImGui::Text("Camber Stiffness (grip when drifting)");
|
||||
//ImGui::SliderFloat("##camber stiffness", &g_local_player->m_vehicle->m_handling->m_camber_stiffness, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Traction Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
|
||||
float fTractionBiasFront = g_local_player->m_vehicle->m_handling->m_traction_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##traction bias front", &fTractionBiasFront, 0.01f, .99f))
|
||||
g_local_player->m_vehicle->m_handling->m_traction_bias_front = fTractionBiasFront * 2;
|
||||
|
||||
ImGui::Text("Off-Road Traction Loss (1.0 = normal, lower = better)");
|
||||
ImGui::SliderFloat("##traction loss mult", &g_local_player->m_vehicle->m_handling->m_traction_loss_mult, 0.f, 5.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_traction()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Traction"))
|
||||
{
|
||||
ImGui::Text("Minimum Traction");
|
||||
ImGui::SliderFloat("##traction curve min", &g_local_player->m_vehicle->m_handling->m_traction_curve_min, 0.f, 7.f);
|
||||
|
||||
ImGui::Text("Peak Traction before grip is lost");
|
||||
ImGui::SliderFloat("##traction curve max", &g_local_player->m_vehicle->m_handling->m_traction_curve_max, 0.f, 7.f);
|
||||
|
||||
ImGui::Text("Traction Curve (point of grip loss)");
|
||||
ImGui::SliderAngle("##traction curve lateral", &g_local_player->m_vehicle->m_handling->m_traction_curve_lateral);
|
||||
|
||||
ImGui::Text("Traction Height Loss (distance ground and tires)");
|
||||
ImGui::SliderFloat("##traction spring delta max", &g_local_player->m_vehicle->m_handling->m_traction_spring_delta_max, 0.f, 2.f);
|
||||
|
||||
ImGui::Text("Burnout Multiplier");
|
||||
ImGui::SliderFloat("##low speed traction loss mult", &g_local_player->m_vehicle->m_handling->m_low_speed_traction_loss_mult, 0.f, 10.f);
|
||||
|
||||
//ImGui::Text("Camber Stiffness (grip when drifting)");
|
||||
//ImGui::SliderFloat("##camber stiffness", &g_local_player->m_vehicle->m_handling->m_camber_stiffness, -1.f, 1.f);
|
||||
|
||||
ImGui::Text("Traction Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
|
||||
float fTractionBiasFront = g_local_player->m_vehicle->m_handling->m_traction_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##traction bias front", &fTractionBiasFront, 0.01f, .99f))
|
||||
g_local_player->m_vehicle->m_handling->m_traction_bias_front = fTractionBiasFront * 2;
|
||||
|
||||
ImGui::Text("Off-Road Traction Loss (1.0 = normal, lower = better)");
|
||||
ImGui::SliderFloat("##traction loss mult", &g_local_player->m_vehicle->m_handling->m_traction_loss_mult, 0.f, 5.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,25 +1,25 @@
|
||||
#include "handling_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_transmission()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Transmission"))
|
||||
{
|
||||
ImGui::Text("Drive Bias (1.0 = front, 0.0 = rear, 0.5 = balanced 4WD)");
|
||||
float fDriveBiasFront = g_local_player->m_vehicle->m_handling->m_drive_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##drive_bias_front", &fDriveBiasFront, 0.f, 1.0f))
|
||||
g_local_player->m_vehicle->m_handling->m_drive_bias_front = fDriveBiasFront * 2;
|
||||
|
||||
ImGui::Text("Drive Bias (1.0 = rear, 0.0 = front, 0.5 = balanced 4WD)");
|
||||
float fDriveBiasRear = g_local_player->m_vehicle->m_handling->m_drive_bias_rear / 2;
|
||||
if (ImGui::SliderFloat("##drive_bias_rear", &fDriveBiasRear, 0.f, 1.0f))
|
||||
g_local_player->m_vehicle->m_handling->m_drive_bias_rear = fDriveBiasRear * 2;
|
||||
|
||||
ImGui::Text("Transmission Output (force)");
|
||||
ImGui::SliderFloat("##initial drive force", &g_local_player->m_vehicle->m_handling->m_initial_drive_force, 0.01f, 2.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
#include "current_profile_tabs.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void tab_handling::tab_transmission()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Transmission"))
|
||||
{
|
||||
ImGui::Text("Drive Bias (1.0 = front, 0.0 = rear, 0.5 = balanced 4WD)");
|
||||
float fDriveBiasFront = g_local_player->m_vehicle->m_handling->m_drive_bias_front / 2;
|
||||
if (ImGui::SliderFloat("##drive_bias_front", &fDriveBiasFront, 0.f, 1.0f))
|
||||
g_local_player->m_vehicle->m_handling->m_drive_bias_front = fDriveBiasFront * 2;
|
||||
|
||||
ImGui::Text("Drive Bias (1.0 = rear, 0.0 = front, 0.5 = balanced 4WD)");
|
||||
float fDriveBiasRear = g_local_player->m_vehicle->m_handling->m_drive_bias_rear / 2;
|
||||
if (ImGui::SliderFloat("##drive_bias_rear", &fDriveBiasRear, 0.f, 1.0f))
|
||||
g_local_player->m_vehicle->m_handling->m_drive_bias_rear = fDriveBiasRear * 2;
|
||||
|
||||
ImGui::Text("Transmission Output (force)");
|
||||
ImGui::SliderFloat("##initial drive force", &g_local_player->m_vehicle->m_handling->m_initial_drive_force, 0.01f, 2.f);
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
#include "../handling_tabs.hpp"
|
||||
#include "../current_profile/current_profile_tabs.hpp"
|
||||
#include "fiber_pool.hpp"
|
||||
#include "natives.hpp"
|
||||
#include "script.hpp"
|
||||
|
Reference in New Issue
Block a user