Fix range
This commit is contained in:
@@ -363,7 +363,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
if(player.Position.DistanceTo(target.Position) > 3)
|
||||
if(player.Position.DistanceTo(target.Position) > 5)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Der Patient ist zu weit entfernt");
|
||||
return;
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace ReallifeGamemode.Server.Factions.Medic
|
||||
{
|
||||
foreach(var healAuftrag in HealDecisions.ToList())
|
||||
{
|
||||
if (healAuftrag.dMedic.Position.DistanceTo(healAuftrag.dTarget.Position) >= 10)
|
||||
if (healAuftrag.dMedic.Position.DistanceTo(healAuftrag.dTarget.Position) > 5)
|
||||
{
|
||||
healAuftrag.dMedic.SendNotification("~r~Die Heal-Anfrage wurde abgebrochen");
|
||||
healAuftrag.dTarget.SendNotification("~r~Die Heal-Anfrage wurde abgebrochen");
|
||||
|
||||
Reference in New Issue
Block a user