增加联网游戏击杀对手判定和音效

This commit is contained in:
MrZ626
2021-04-08 01:42:58 +08:00
parent 52e9dac9ee
commit 194bd8085f

View File

@@ -1683,9 +1683,15 @@ function Player:die()--Called both when win/lose!
self.visTime[i][j]=min(self.visTime[i][j],20)
end
end
if GAME.NET and self.id==1 then
ins(GAME.rep,GAME.frame+260)
ins(GAME.rep,0)
if GAME.NET then
if self.id==1 then
ins(GAME.rep,GAME.frame+260)
ins(GAME.rep,0)
else
if self.lastRecv and self.lastRecv.id==1 then
SFX.play("collect")
end
end
end
end
function Player:win(result)