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

@@ -191,7 +191,8 @@ CUSTOMENV={--gameEnv for cutsom game
--Else
bg="none",
bgm="race"
bgm="race",
noMod=true,
}
FIELD={}--Field(s) for custom game

View File

@@ -50,5 +50,6 @@ return{
target=1e99,dropPiece=NULL,
mindas=0,minarr=0,minsdarr=0,
bg="none",bgm="race"
bg="none",bgm="race",
noMod=false,
}

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)