From 7aed15fd4f5829093d2df56e637e4868a125c212 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sat, 5 Nov 2022 22:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=85=B6=E4=BB=96=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E7=9A=84=E7=BB=93=E6=9D=9F=E6=B8=B8=E6=88=8F=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=A4=84=E7=90=86=E5=A4=AA=E6=97=A9=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BD=95=E5=83=8F=E6=B2=A1=E6=94=BE=E5=AE=8C=E5=87=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/net.lua | 1 - parts/player/player.lua | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/parts/net.lua b/parts/net.lua index 1a8c8b32..b8b48801 100644 --- a/parts/net.lua +++ b/parts/net.lua @@ -704,7 +704,6 @@ function NET.wsCallBack.player_finish(body) if P.uid==body.data.playerId then NETPLY.setPlace(P.uid,#PLY_ALIVE) P.loseTimer=26 - P:lose(true) break end end diff --git a/parts/player/player.lua b/parts/player/player.lua index 05d1c14a..6ce024fe 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -2707,7 +2707,12 @@ function Player:update(dt) end if frameDelta then for _=1, - self.loseTimer and 6 or + self.loseTimer and min(frameDelta, + self.loseTimer>16 and 2 or + self.loseTimer>6.2 and 12 or + self.loseTimer>2.6 and 260 or + 2600 + ) or frameDelta<26 and 1 or frameDelta<50 and 2 or frameDelta<80 and 3 or