0.4.0 => 0.5.0
This commit is contained in:
@ -48,6 +48,7 @@ namespace CoopClient
|
|||||||
|
|
||||||
public bool IsInVehicle { get; set; }
|
public bool IsInVehicle { get; set; }
|
||||||
public int VehicleModelHash { get; set; }
|
public int VehicleModelHash { get; set; }
|
||||||
|
private int[] LastVehicleColors = new int[] { 0, 0 };
|
||||||
public int[] VehicleColors { get; set; }
|
public int[] VehicleColors { get; set; }
|
||||||
private Dictionary<int, int> LastVehicleMods = new Dictionary<int, int>();
|
private Dictionary<int, int> LastVehicleMods = new Dictionary<int, int>();
|
||||||
public Dictionary<int, int> VehicleMods { get; set; }
|
public Dictionary<int, int> VehicleMods { get; set; }
|
||||||
@ -308,7 +309,12 @@ namespace CoopClient
|
|||||||
MainVehicle.Repair();
|
MainVehicle.Repair();
|
||||||
}
|
}
|
||||||
|
|
||||||
Function.Call(Hash.SET_VEHICLE_COLOURS, MainVehicle, VehicleColors[0], VehicleColors[1]);
|
if (VehicleColors != LastVehicleColors)
|
||||||
|
{
|
||||||
|
Function.Call(Hash.SET_VEHICLE_COLOURS, MainVehicle, VehicleColors[0], VehicleColors[1]);
|
||||||
|
|
||||||
|
LastVehicleColors = VehicleColors;
|
||||||
|
}
|
||||||
|
|
||||||
// Only works for "Pfister Comet Safari"??
|
// Only works for "Pfister Comet Safari"??
|
||||||
if (VehicleMods != LastVehicleMods)
|
if (VehicleMods != LastVehicleMods)
|
||||||
|
@ -17,7 +17,7 @@ namespace CoopClient
|
|||||||
|
|
||||||
private bool GameLoaded = false;
|
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 ShareNpcsWithPlayers = false;
|
||||||
public static bool NpcsAllowed = false;
|
public static bool NpcsAllowed = false;
|
||||||
|
@ -21,7 +21,7 @@ namespace CoopServer
|
|||||||
|
|
||||||
class Server
|
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");
|
public static readonly Settings MainSettings = Util.Read<Settings>("CoopSettings.xml");
|
||||||
private readonly Blocklist MainBlocklist = Util.Read<Blocklist>("Blocklist.xml");
|
private readonly Blocklist MainBlocklist = Util.Read<Blocklist>("Blocklist.xml");
|
||||||
|
Reference in New Issue
Block a user