Fix unintended carjacking

This commit is contained in:
sardelka9515 2022-08-21 14:12:44 +08:00
parent 0352bfa328
commit 54977c79f1
3 changed files with 18 additions and 5 deletions

View File

@ -309,7 +309,20 @@ namespace RageCoop.Client
if (V!=null)
{
var seat = P.GetNearestSeat(V);
P.Task.EnterVehicle(V, seat);
var p = V.GetPedOnSeat(seat);
if (p != null && !p.IsDead)
{
for(int i = -1; i < V.PassengerCapacity; i++)
{
seat = (VehicleSeat)i;
p = V.GetPedOnSeat(seat);
if (p == null || p.IsDead)
{
break;
}
}
}
P.Task.EnterVehicle(V, seat,-1,5,EnterVehicleFlags.None);
}
}
}

View File

@ -16,7 +16,7 @@ using System.Resources;
// Version informationr(
[assembly: AssemblyVersion("1.5.1.31")]
[assembly: AssemblyFileVersion("1.5.1.31")]
[assembly: AssemblyVersion("1.5.1.36")]
[assembly: AssemblyFileVersion("1.5.1.36")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]

View File

@ -15,7 +15,7 @@ using System.Resources;
[assembly: AssemblyCulture("")]
// Version informationr(
[assembly: AssemblyVersion("1.5.1.30")]
[assembly: AssemblyFileVersion("1.5.1.30")]
[assembly: AssemblyVersion("1.5.1.31")]
[assembly: AssemblyFileVersion("1.5.1.31")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]