fix wt entlade checkpoint & add waypoints for base
This commit is contained in:
@@ -34,6 +34,16 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
dealPoint.Add(vehicle.GetData<Vector3>("weaponDealPoint"));
|
dealPoint.Add(vehicle.GetData<Vector3>("weaponDealPoint"));
|
||||||
CheckPointHandle.StartCheckPointRoute(client, dealPoint, 5000, 1, 7, 3, true, "loadWeaponTransport");
|
CheckPointHandle.StartCheckPointRoute(client, dealPoint, 5000, 1, 7, 3, true, "loadWeaponTransport");
|
||||||
}
|
}
|
||||||
|
else if ((u.FactionId != null)
|
||||||
|
&& ((VehicleHash)vehicle.Model == VehicleHash.Burrito3 || (VehicleHash)vehicle.Model == VehicleHash.Policet)
|
||||||
|
&& vehicle.HasData("WeaponDealLoad")
|
||||||
|
&& vehicle.GetData<bool>("WeaponDealLoad") == true)
|
||||||
|
{
|
||||||
|
BasePoints basePoints = new BasePoints();
|
||||||
|
basePoints.getbase(u.FactionId, client);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
client.TriggerEvent("destroyCP");
|
client.TriggerEvent("destroyCP");
|
||||||
}
|
}
|
||||||
else if ((u.FactionId != null)
|
else if ((u.FactionId != null)
|
||||||
&& (veh.GetOwners().Contains(u.FactionId ?? 0))
|
|
||||||
&& ((VehicleHash)vehicle.Model == VehicleHash.Burrito3 || (VehicleHash)vehicle.Model == VehicleHash.Policet)
|
&& ((VehicleHash)vehicle.Model == VehicleHash.Burrito3 || (VehicleHash)vehicle.Model == VehicleHash.Policet)
|
||||||
&& vehicle.HasData("WeaponDealLoad")
|
&& vehicle.HasData("WeaponDealLoad")
|
||||||
&& vehicle.GetData<bool>("WeaponDealLoad") == true)
|
&& vehicle.GetData<bool>("WeaponDealLoad") == true)
|
||||||
|
|||||||
57
ReallifeGamemode.Server/Factions/BasePoints.cs
Normal file
57
ReallifeGamemode.Server/Factions/BasePoints.cs
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using GTANetworkAPI;
|
||||||
|
using ReallifeGamemode.Database.Entities;
|
||||||
|
using ReallifeGamemode.Server.Extensions;
|
||||||
|
using ReallifeGamemode.Server.Util;
|
||||||
|
|
||||||
|
|
||||||
|
namespace ReallifeGamemode.Server.WeaponDeal
|
||||||
|
{
|
||||||
|
class BasePoints
|
||||||
|
{
|
||||||
|
|
||||||
|
public void getbase(int? factionID, Player client)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (factionID == 1)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 428.07, -977.88); // LSPD
|
||||||
|
}
|
||||||
|
else if( factionID == 2)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 1157.56, -1518.56); // Sanitäter
|
||||||
|
}
|
||||||
|
else if (factionID == 3)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 88.10, -741.76); // FIB
|
||||||
|
}
|
||||||
|
else if (factionID == 4)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", -394.30, -2785.44); // Trucker
|
||||||
|
}
|
||||||
|
else if (factionID == 5)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 1157.56, -1518.56); // Terror
|
||||||
|
}
|
||||||
|
else if (factionID == 6)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 1157.56, -1518.56); // Hitmen
|
||||||
|
}
|
||||||
|
else if (factionID == 7)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 103.72, -1939.43); // Grove
|
||||||
|
}
|
||||||
|
else if (factionID == 8)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", 1209.42, -1628.65); // Ballas
|
||||||
|
}
|
||||||
|
else if (factionID == 9)
|
||||||
|
{
|
||||||
|
client.TriggerEvent("SERVER:Util_setWaypoint", -604.04, -930.92); // News Reporter
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using GTANetworkAPI;
|
using GTANetworkAPI;
|
||||||
@@ -232,6 +232,8 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
|
|
||||||
ChatService.BroadcastFaction("~y~[WAFFENDEAL] ~w~Der Transporter wurde erfolgreich beladen.", new List<int>() { client.GetUser().Faction.Id });
|
ChatService.BroadcastFaction("~y~[WAFFENDEAL] ~w~Der Transporter wurde erfolgreich beladen.", new List<int>() { client.GetUser().Faction.Id });
|
||||||
client.SendChatMessage("~y~[WAFFENDEAL] ~w~Fahre nun zu deiner Base zurück.");
|
client.SendChatMessage("~y~[WAFFENDEAL] ~w~Fahre nun zu deiner Base zurück.");
|
||||||
|
BasePoints basePoints = new BasePoints();
|
||||||
|
basePoints.getbase(user.FactionId, client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user