Merge branch '1.6-pre-alpha' of https://github.com/RAGECOOP/RAGECOOP-V into 1.6-pre-alpha
This commit is contained in:
@ -30,6 +30,7 @@ namespace RageCoop.Client
|
||||
internal byte RadioStation = 255;
|
||||
internal string LicensePlate { get; set; }
|
||||
internal int Livery { get; set; } = -1;
|
||||
internal byte HeadlightColor { get; set; } = 255;
|
||||
internal VehicleDataFlags Flags { get; set; }
|
||||
internal ushort ExtrasMask;
|
||||
internal byte ToggleModsMask;
|
||||
@ -75,6 +76,7 @@ namespace RageCoop.Client
|
||||
private bool _lastHornActive;
|
||||
private bool _lastTransformed;
|
||||
private int _lastLivery = -1;
|
||||
private byte _lastHeadlightColor = 255;
|
||||
private Vector3 _predictedPosition;
|
||||
#endregion
|
||||
|
||||
|
@ -3,6 +3,7 @@ using System.Linq;
|
||||
using GTA;
|
||||
using GTA.Math;
|
||||
using GTA.Native;
|
||||
using GTA.UI;
|
||||
using RageCoop.Core;
|
||||
using static ICSharpCode.SharpZipLib.Zip.ExtendedUnixData;
|
||||
|
||||
@ -159,6 +160,11 @@ namespace RageCoop.Client
|
||||
_lastLivery = Livery;
|
||||
}
|
||||
|
||||
if (_lastHeadlightColor != HeadlightColor)
|
||||
{
|
||||
Call(SET_VEHICLE_XENON_LIGHT_COLOR_INDEX, MainVehicle.Handle, HeadlightColor);
|
||||
_lastHeadlightColor = HeadlightColor;
|
||||
}
|
||||
MainVehicle.SetDamageModel(DamageModel);
|
||||
|
||||
if (MainVehicle.Handle == V?.Handle && Util.GetPlayerRadioIndex() != RadioStation)
|
||||
|
Reference in New Issue
Block a user