From bad8ef1d10f68d21c74d6ce5068337a5f8e90f84 Mon Sep 17 00:00:00 2001 From: dongresource Date: Thu, 31 Dec 2020 02:22:07 +0100 Subject: [PATCH] Kill players that fall out of the map --- src/MobManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MobManager.cpp b/src/MobManager.cpp index ca2e31e..2fc1fcb 100644 --- a/src/MobManager.cpp +++ b/src/MobManager.cpp @@ -974,6 +974,10 @@ void MobManager::playerTick(CNServer *serv, time_t currTime) { } } + // check if the player has fallen out of the world + if (plr->z < -30000) + dealGooDamage(sock, PC_MAXHEALTH(36) * 2); + if (transmit) { INITSTRUCT(sP_FE2CL_REP_PC_TICK, pkt);