add route in pilot and add other plane other route
This commit is contained in:
@@ -57,6 +57,18 @@ namespace ReallifeGamemode.Server.Job
|
||||
new Vector3(2028.63, 4842.29, 437.01),
|
||||
}.AsReadOnly();
|
||||
|
||||
private readonly IReadOnlyCollection<Vector3> Route4 = new List<Vector3>
|
||||
{
|
||||
new Vector3(893.99, -3091.43, 326.67),
|
||||
new Vector3(1712.6, -1676.47, 384.2),
|
||||
new Vector3(2501.18, -446.15, 339.48),
|
||||
new Vector3(2706.43, 1408.93, 251.08),
|
||||
new Vector3(3568.08, 3644.51, 326.06),
|
||||
new Vector3(314.92, 2877.15, 173.73),
|
||||
new Vector3(-2044.89, 3141.58, 378.07),
|
||||
new Vector3(-2333.96, 510.26, 660.64),
|
||||
}.AsReadOnly();
|
||||
|
||||
|
||||
|
||||
public PilotJob()
|
||||
@@ -67,11 +79,26 @@ namespace ReallifeGamemode.Server.Job
|
||||
private void PilotJob_JobStart(Client player)
|
||||
{
|
||||
List<String> listRouteTexts = new List<string>();
|
||||
listRouteTexts.Add("Route 1");
|
||||
listRouteTexts.Add("Route 2");
|
||||
listRouteTexts.Add("Route 3");
|
||||
List<String> listRouteTexts2 = new List<string>();
|
||||
|
||||
player.TriggerEvent("showPilotRouteMenu", JsonConvert.SerializeObject(listRouteTexts));
|
||||
Vehicle veh = player.Vehicle;
|
||||
|
||||
if (veh.DisplayName == "Velum")
|
||||
{
|
||||
|
||||
listRouteTexts2.Add("Route 4");
|
||||
|
||||
player.TriggerEvent("showPilotRouteMenu", JsonConvert.SerializeObject(listRouteTexts2));
|
||||
}
|
||||
else
|
||||
{
|
||||
listRouteTexts.Add("Route 1");
|
||||
listRouteTexts.Add("Route 2");
|
||||
listRouteTexts.Add("Route 3");
|
||||
|
||||
player.TriggerEvent("showPilotRouteMenu", JsonConvert.SerializeObject(listRouteTexts));
|
||||
}
|
||||
|
||||
}
|
||||
[RemoteEvent("startPilotRoute")]
|
||||
public void StartPilotRoute(Client player, string type)
|
||||
@@ -88,6 +115,10 @@ namespace ReallifeGamemode.Server.Job
|
||||
{
|
||||
CheckPointHandle.StartCheckPointRoute(player, Route3, 0, 6, "");
|
||||
}
|
||||
else if (type == "Route 4")
|
||||
{
|
||||
CheckPointHandle.StartCheckPointRoute(player, Route4, 0, 6, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user