Fix Medic
This commit is contained in:
@@ -99,6 +99,19 @@ namespace ReallifeGamemode.Server.Factions.Medic
|
||||
}
|
||||
}
|
||||
|
||||
public static void CheckHealDecisionDistanc()
|
||||
{
|
||||
foreach(var healAuftrag in HealDecisions)
|
||||
{
|
||||
if (healAuftrag.dMedic.Position.DistanceTo(healAuftrag.dTarget.Position) >= 10)
|
||||
{
|
||||
healAuftrag.dMedic.SendNotification("~r~Die Heal-Anfrage wurde abgebrochen");
|
||||
healAuftrag.dTarget.SendNotification("~r~Die Heal-Anfrage wurde abgebrochen");
|
||||
healAuftrag.dTarget.ResetData("healDecision");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void MakeHealDecision(Player target, bool decision)
|
||||
{
|
||||
var activeDecision = HealDecisions.FirstOrDefault(d => d.dTarget == target);
|
||||
@@ -106,7 +119,6 @@ namespace ReallifeGamemode.Server.Factions.Medic
|
||||
{
|
||||
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~r~abgelehnt",false);
|
||||
activeDecision.dTarget.SendNotification("Du hast den Heal ~r~abgelehnt", false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user