Add improved desync kick protection (#443)

Update GTAV-Classes vendor
This commit is contained in:
maybegreat48
2022-09-12 18:44:47 +00:00
committed by GitHub
parent fccf5c0104
commit db874462c5
43 changed files with 268 additions and 217 deletions

View File

@ -10,22 +10,22 @@ namespace big
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::SliderFloat("##Mass", &g_local_player->m_vehicle->m_handling_data->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;
fCenterOfMass[0] = g_local_player->m_vehicle->m_handling_data->m_centre_of_mass.x;
fCenterOfMass[1] = g_local_player->m_vehicle->m_handling_data->m_centre_of_mass.y;
fCenterOfMass[2] = g_local_player->m_vehicle->m_handling_data->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];
g_local_player->m_vehicle->m_handling_data->m_centre_of_mass.x = fCenterOfMass[0];
g_local_player->m_vehicle->m_handling_data->m_centre_of_mass.y = fCenterOfMass[1];
g_local_player->m_vehicle->m_handling_data->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::SliderFloat("##buoyancy", &g_local_player->m_vehicle->m_handling_data->m_buoyancy, .01f, 99.f);
ImGui::EndTabItem();
}