Try to fix sigas kacka - add another wt waypoint - danke an balbo

This commit is contained in:
CroniX
2021-05-08 23:53:07 +02:00
parent 7658812e51
commit c10fae6f77

View File

@@ -17,7 +17,6 @@ namespace ReallifeGamemode.Server.WeaponDeal
new Vector3(-2174.734, 4269.301, 46.95574), //Army Base
new Vector3(2530.14, 2617.15, 35.76),
new Vector3(-3179.78, 820.08, 1.59),
new Vector3(-1889.91, 2045.6, 138.68)
}.AsReadOnly();
public static readonly IReadOnlyCollection<Vector3> StaatsFrakWT_Route = new List<Vector3>
@@ -34,16 +33,16 @@ namespace ReallifeGamemode.Server.WeaponDeal
if (factionID == 1 | factionID == 3)
{
Random rnd = new Random();
factionWeaponDeal[factionID] = rnd.Next(0, StaatsFrakWT_Route.Count - 1);
factionWeaponDeal[factionID] = rnd.Next(0, StaatsFrakWT_Route.Count);
return StaatsFrakWT_Route.ElementAt(factionWeaponDeal[factionID]);
}
else
{
Random rnd = new Random();
factionWeaponDeal[factionID] = rnd.Next(0, WT_Route.Count - 1);
factionWeaponDeal[factionID] = rnd.Next(0, WT_Route.Count);
return WT_Route.ElementAt(factionWeaponDeal[factionID]);
}
/* if (factionWeaponDeal[factionID] == -1)
{
Random rnd = new Random();