0.4.0 => 0.5.0

This commit is contained in:
EntenKoeniq
2021-08-15 13:17:57 +02:00
parent 1e52d75607
commit ec96878340
3 changed files with 9 additions and 3 deletions

View File

@ -48,6 +48,7 @@ namespace CoopClient
public bool IsInVehicle { get; set; }
public int VehicleModelHash { get; set; }
private int[] LastVehicleColors = new int[] { 0, 0 };
public int[] VehicleColors { get; set; }
private Dictionary<int, int> LastVehicleMods = new Dictionary<int, int>();
public Dictionary<int, int> VehicleMods { get; set; }
@ -308,8 +309,13 @@ namespace CoopClient
MainVehicle.Repair();
}
if (VehicleColors != LastVehicleColors)
{
Function.Call(Hash.SET_VEHICLE_COLOURS, MainVehicle, VehicleColors[0], VehicleColors[1]);
LastVehicleColors = VehicleColors;
}
// Only works for "Pfister Comet Safari"??
if (VehicleMods != LastVehicleMods)
{

View File

@ -17,7 +17,7 @@ namespace CoopClient
private bool GameLoaded = false;
public static readonly string CurrentModVersion = "V0_4_0";
public static readonly string CurrentModVersion = "V0_5_0";
public static bool ShareNpcsWithPlayers = false;
public static bool NpcsAllowed = false;

View File

@ -21,7 +21,7 @@ namespace CoopServer
class Server
{
public static readonly string CurrentModVersion = "V0_4_0";
public static readonly string CurrentModVersion = "V0_5_0";
public static readonly Settings MainSettings = Util.Read<Settings>("CoopSettings.xml");
private readonly Blocklist MainBlocklist = Util.Read<Blocklist>("Blocklist.xml");