From 3f417e668176ae7e10d1b4102233efade6299852 Mon Sep 17 00:00:00 2001 From: kookroach Date: Wed, 21 Apr 2021 21:42:34 +0200 Subject: [PATCH] Decrease range needed for coppers to get criminals binned after death. From 200 to 100. --- ReallifeGamemode.Server/Events/Death.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Server/Events/Death.cs b/ReallifeGamemode.Server/Events/Death.cs index e935582b..b810a62b 100644 --- a/ReallifeGamemode.Server/Events/Death.cs +++ b/ReallifeGamemode.Server/Events/Death.cs @@ -27,7 +27,6 @@ namespace ReallifeGamemode.Server.Events { private readonly Dictionary lastPlayerDeathTime = new Dictionary(); - [ServerEvent(Event.PlayerDeath)] public void OnPlayerDeath(Player player, Player killer, uint reason) { @@ -114,9 +113,9 @@ namespace ReallifeGamemode.Server.Events }; dbContext.DeathLogs.Add(dead); - bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 200 * 200); + bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 100 * 100); - if (user.Wanteds > 0) + if (user.Wanteds > 0 && player.HasData("GotInsideOfTurf") && !player.GetData("GotInsideOfTurf")) { if (copNearby) {