From 89a5a718daaaba496f1d0758227ae28578e43c67 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Thu, 3 Nov 2022 22:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=88=BF=E9=97=B4=E5=86=85?= =?UTF-8?q?=E6=8E=92=E5=90=8D=EF=BC=88=E6=96=B9=E6=B3=95=E6=9C=89=E7=82=B9?= =?UTF-8?q?=E5=B0=8F=E7=A5=9E=E7=A7=98=20=E4=B8=8D=E8=BF=87=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E8=83=BD=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/net.lua | 1 + parts/scenes/net_game.lua | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/parts/net.lua b/parts/net.lua index cf66896f..4b99bdf4 100644 --- a/parts/net.lua +++ b/parts/net.lua @@ -701,6 +701,7 @@ function NET.wsCallBack.player_finish(body) if SCN.cur~='net_game' then return end for _,P in next,PLY_ALIVE do if P.uid==body.data.playerId then + NETPLY.setPlace(P.uid,#PLY_ALIVE) P.loseTimer=26 P:lose(true) break diff --git a/parts/scenes/net_game.lua b/parts/scenes/net_game.lua index 59041744..f7202fca 100644 --- a/parts/scenes/net_game.lua +++ b/parts/scenes/net_game.lua @@ -261,7 +261,13 @@ function scene.update(dt) NETPLY.mouseMove(0,0) for i=1,#NETPLY.list do - NETPLY.list[i].readyMode='Playing' + local p=NETPLY.list[i] + if p.playMode=='Gamer' then + p.readyMode='Playing' + p.place=1 + else + p.place=1e99 + end end NET.spectate=PLAYERS[1].uid~=USER.uid if NET.storedStream then