demo玩家不使用mod

This commit is contained in:
MrZ626
2020-11-21 21:46:43 +08:00
parent 538c3b90ea
commit e78dc5d333
3 changed files with 10 additions and 5 deletions

View File

@@ -214,9 +214,11 @@ local function loadGameEnv(P)--Load gameEnv
ENV[k]=copyTable(v)
end
end
for _,M in next,MODOPT do
if M.sel>0 then
M.func(P,M)
if not ENV.noMod then
for _,M in next,MODOPT do
if M.sel>0 then
M.func(P,M)
end
end
end
end
@@ -310,6 +312,7 @@ local DemoEnv={
wait=10,fall=20,
highCam=false,
life=1e99,
noMod=true,
}
function PLY.newDemoPlayer(id,x,y,size)
local P=newEmptyPlayer(id,x,y,size)