Änderung Busfahrer/Pilot Bugs fix siehe Forenbeitrag
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using ReallifeGamemode.Server.Services;
|
||||
using GTANetworkAPI;
|
||||
using System.Linq;
|
||||
@@ -87,7 +87,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
NAPI.Task.Run(() =>
|
||||
{
|
||||
BusCheckpoint(user);
|
||||
}, delayTime: 3850);
|
||||
}, delayTime: 3250);
|
||||
}
|
||||
if (!(veh.GetData<IndicatorData>("indicatorData") is IndicatorData data)) data = new IndicatorData();
|
||||
data.Left = false;
|
||||
@@ -135,13 +135,13 @@ namespace ReallifeGamemode.Server.Util
|
||||
if ((VehicleHash)veh.Model == VehicleHash.Tourbus)
|
||||
{
|
||||
user.TriggerEvent("CLIENT:PlaySound", "jobs/busfahrer/AbfahrtHaltestelleTourbus", "wav", 25);
|
||||
user.TriggerEvent("CLIENT:SetDoorShutDelayed", 3, false, 2100);
|
||||
user.TriggerEvent("CLIENT:SetDoorShutDelayed", 2, false, 2100);
|
||||
user.TriggerEvent("CLIENT:SetDoorShutDelayed", 3, false, 2100);
|
||||
user.TriggerEvent("CLIENT:SetDoorShutDelayed", 3, false, 2600);
|
||||
user.TriggerEvent("CLIENT:SetDoorShutDelayed", 2, false, 2600);
|
||||
user.TriggerEvent("CLIENT:SetDoorShutDelayed", 3, false, 2600);
|
||||
NAPI.Task.Run(() =>
|
||||
{
|
||||
user.TriggerEvent("CLIENT:UnFreezeVehicle", veh);
|
||||
}, delayTime: 2100);
|
||||
}, delayTime: 2600);
|
||||
}
|
||||
//user.TriggerEvent("CLIENT:UnFreezeVehicle", veh);
|
||||
}
|
||||
@@ -225,7 +225,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
{
|
||||
LastCheckpoint = 0;
|
||||
Vector3 nextCp = list.ElementAt(checkPointsDone);
|
||||
this.player.TriggerEvent("setCheckPoint", nextCp, player, this.checkPointsDone, delay, this.markerID, this.markerSize, this.markerDist, this.eventInCheckpoint);
|
||||
this.player.TriggerEvent("setCheckPoint", nextCp, player, this.checkPointsDone, delay, this.markerID, this.markerSize, this.markerDist, this.useVehicle, this.eventInCheckpoint);
|
||||
}
|
||||
if (checkPointsDone == this.list.Count()-1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user