Alpha V0.6.5

This commit is contained in:
MrZ_26
2020-02-04 19:28:33 +08:00
parent 31fd2c0e72
commit d8cbfa72ac
9 changed files with 66 additions and 32 deletions

View File

@@ -13,7 +13,7 @@ function sysSFX(s,v)
end
end
function SFX(s,v)
if setting.sfx then
if setting.sfx and not P.ai then
local n=1
while sfx[s][n]:isPlaying()do
n=n+1
@@ -23,10 +23,6 @@ function SFX(s,v)
break
end
end
if P.id>1 then
v=1/(#players.alive-1)
-- if v<.02 then return nil end
end
sfx[s][n]:setVolume(v or 1)
sfx[s][n]:play()
end