Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnapalm committed Apr 14, 2024
1 parent a309a23 commit bf21c29
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 29 deletions.
3 changes: 1 addition & 2 deletions Client/NativeData.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using ProtoBuf;

namespace GTACoOp
Expand Down
1 change: 0 additions & 1 deletion Client/PedThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using GTA;
using System.Drawing;

namespace GTACoOp
{
Expand Down
7 changes: 1 addition & 6 deletions Client/PlayerList.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using GTA;
using GTA.Math;
using GTA.Native;

namespace GTACoOp
Expand Down
5 changes: 0 additions & 5 deletions Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Linq;
using System.Runtime.InteropServices;
using System.Xml.Serialization;
using GTA;
using GTA.Native;
using Lidgren.Network;
using ProtoBuf;

Expand Down
7 changes: 3 additions & 4 deletions Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand All @@ -10,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GTACoOp")]
[assembly: AssemblyCopyright("Copyright © 2016-2023")]
[assembly: AssemblyCopyright("Copyright © 2016-2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.4.6")]
[assembly: AssemblyFileVersion("0.9.4.6")]
[assembly: AssemblyVersion("0.9.4.7")]
[assembly: AssemblyFileVersion("0.9.4.7")]
17 changes: 6 additions & 11 deletions Client/SyncPed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,20 +285,15 @@ public void DisplayLocally()
{
if (MainVehicle != null && Util.IsVehicleEmpty(MainVehicle))
{
MainVehicle.Position = MainVehicle.GetOffsetPosition(new Vector3(0, 0, -100));
MainVehicle.MarkAsNoLongerNeeded();
MainVehicle.Delete();
}

var vehs = World.GetAllVehicles().OrderBy(v =>
var model = new Model(VehicleHash);
var veh = World.GetClosestVehicle(Character.Position, 3f, model);
if (veh != null)
{
if (v == null) return float.MaxValue;
return (v.Position - Character.Position).Length();
}).ToList();


if (vehs.Any() && vehs[0].Model.Hash == VehicleHash && vehs[0].IsInRange(gPos, 3f))
{
MainVehicle = vehs[0];
MainVehicle = veh;
/*if (Game.Player.Character.IsInVehicle(MainVehicle) &&
VehicleSeat == Util.GetPedSeat(Game.Player.Character))
{
Expand All @@ -308,7 +303,7 @@ public void DisplayLocally()
}
else
{
MainVehicle = World.CreateVehicle(new Model(VehicleHash), gPos, 0);
MainVehicle = World.CreateVehicle(model, gPos);
}

if (MainVehicle != null)
Expand Down

0 comments on commit bf21c29

Please sign in to comment.