2020-12-02 16:19:16 -05:00
|
|
|
#include "NeonAPI.h"
|
|
|
|
#include "Paint.h"
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
class Vehicle : NeonAPI, Paint
|
|
|
|
{
|
|
|
|
private:
|
2020-12-05 16:34:27 -05:00
|
|
|
static bool bike_fly;
|
2020-12-02 16:19:16 -05:00
|
|
|
static bool dont_fall_bike;
|
|
|
|
static bool veh_heavy;
|
|
|
|
static bool veh_watertight;
|
2020-12-21 15:24:07 -05:00
|
|
|
static bool veh_nodmg;
|
2020-12-02 16:19:16 -05:00
|
|
|
static int door_menu_button;
|
|
|
|
static std::string door_names[6];
|
2021-01-03 06:48:07 -05:00
|
|
|
static int veh_remove_radius;
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
static bool lock_speed;
|
|
|
|
static float lock_speed_val;
|
|
|
|
|
|
|
|
static std::map<int, std::string> vehicle_ide;
|
|
|
|
static std::vector<std::vector<float>> carcols_color_values;
|
|
|
|
static std::map<std::string, std::vector<int>> carcols_car_data;
|
|
|
|
|
|
|
|
struct color
|
|
|
|
{
|
|
|
|
static bool material_filter;
|
|
|
|
static int radio_btn;
|
|
|
|
static bool show_all;
|
|
|
|
static float color_picker[3];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct neon
|
|
|
|
{
|
|
|
|
static float color_picker[3];
|
|
|
|
static bool rainbow;
|
|
|
|
static uint rainbow_timer;
|
|
|
|
static bool traffic;
|
|
|
|
static uint traffic_timer;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct spawner
|
|
|
|
{
|
|
|
|
static ImGuiTextFilter filter;
|
|
|
|
static std::string selected_item;
|
|
|
|
static std::vector<std::string> search_categories;
|
|
|
|
static std::vector<std::unique_ptr<TextureStructure>> image_vec;
|
|
|
|
static bool spawn_inside;
|
|
|
|
static bool spawn_in_air;
|
|
|
|
static char license_text[9];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct texture9
|
|
|
|
{
|
|
|
|
static ImGuiTextFilter filter;
|
|
|
|
static std::string selected_item;
|
|
|
|
static std::vector<std::string> search_categories;
|
|
|
|
static std::vector<std::unique_ptr<TextureStructure>> image_vec;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct tune
|
|
|
|
{
|
|
|
|
static ImGuiTextFilter filter;
|
|
|
|
static std::string selected_item;
|
|
|
|
static std::vector<std::string> search_categories;
|
|
|
|
static std::vector<std::unique_ptr<TextureStructure>> image_vec;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct unlimited_nitro
|
|
|
|
{
|
|
|
|
static bool enabled;
|
|
|
|
static bool comp_added;
|
|
|
|
};
|
2021-01-03 06:48:07 -05:00
|
|
|
public:
|
2020-12-02 16:19:16 -05:00
|
|
|
static void AddComponent(const std::string& component, const bool display_message = true);
|
|
|
|
static void RemoveComponent(const std::string& component, const bool display_message = true);
|
|
|
|
static std::string GetNameFromModel(int model);
|
2021-01-05 01:29:26 -05:00
|
|
|
static int GetModelFromName(const char* name);
|
2020-12-02 16:19:16 -05:00
|
|
|
static void SpawnVehicle(std::string &name);
|
|
|
|
static int GetRandomTrainIdForModel(int model);
|
|
|
|
static void ParseVehiclesIDE();
|
|
|
|
static void ParseCarcolsDAT();
|
|
|
|
static void GenerateHandlingDataFile(int phandling);
|
|
|
|
Vehicle();
|
|
|
|
~Vehicle();
|
|
|
|
static void Main();
|
|
|
|
};
|
|
|
|
|