Vagos WT FIX

This commit is contained in:
hydrant
2021-04-19 02:11:26 +02:00
parent 2ce107eff5
commit 4805a198f9

View File

@@ -240,7 +240,7 @@ namespace ReallifeGamemode.Server.Events
if (user?.FactionId != null)
{
BehindVehiclePoint nearestBehindVehiclePoint = MarkerBehinVehicle.behindVehiclePoints.Find(s => s.marker.Position.DistanceTo(player.Position) <= 3 && (user.FactionId == 8 || user.FactionId == 7 || user.FactionId == 1 || user.FactionId == 3));
BehindVehiclePoint nearestBehindVehiclePoint = MarkerBehinVehicle.behindVehiclePoints.Find(s => s.marker.Position.DistanceTo(player.Position) <= 3 && WeaponDealManager.WEAPON_DEAL_FACTIONS.Contains(user.FactionId ?? 0));
if (nearestBehindVehiclePoint != null)
{
if (player.HasAttachment("ammobox")) return;