按键禁用加入模式环境变量
This commit is contained in:
@@ -48,6 +48,7 @@ local gameEnv0={
|
|||||||
freshLimit=1e99,easyFresh=true,
|
freshLimit=1e99,easyFresh=true,
|
||||||
|
|
||||||
Fkey=NULL,
|
Fkey=NULL,
|
||||||
|
keyCancel={},
|
||||||
fine=false,fineKill=false,
|
fine=false,fineKill=false,
|
||||||
missionKill=false,
|
missionKill=false,
|
||||||
target=1e99,dropPiece=NULL,
|
target=1e99,dropPiece=NULL,
|
||||||
@@ -1169,12 +1170,17 @@ local function applyGameEnv(P)--Finish gameEnv processing
|
|||||||
|
|
||||||
P.keyAvailable={true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true}
|
P.keyAvailable={true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true}
|
||||||
if ENV.noTele then
|
if ENV.noTele then
|
||||||
local L={11,12,13,15,16,17,18,19,20}
|
for i=11,20 do
|
||||||
for i=1,#L do
|
if i~=14 then
|
||||||
P.keyAvailable[L[i]]=false
|
P.keyAvailable[i]=false
|
||||||
virtualkey[L[i]].ava=false
|
virtualkey[i].ava=false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
for _,v in next,ENV.keyCancel do
|
||||||
|
P.keyAvailable[v]=false
|
||||||
|
virtualkey[v].ava=false
|
||||||
|
end
|
||||||
|
|
||||||
if type(ENV.mission)=="table"then
|
if type(ENV.mission)=="table"then
|
||||||
P.curMission=1
|
P.curMission=1
|
||||||
@@ -3150,6 +3156,8 @@ function PLY.newDemoPlayer(id,x,y,size)
|
|||||||
noTele=false,
|
noTele=false,
|
||||||
visible="show",
|
visible="show",
|
||||||
freshLimit=1e99,easyFresh=true,
|
freshLimit=1e99,easyFresh=true,
|
||||||
|
|
||||||
|
keyCancel={},
|
||||||
mindas=0,minarr=0,minsdarr=0,
|
mindas=0,minarr=0,minsdarr=0,
|
||||||
}
|
}
|
||||||
applyGameEnv(P)
|
applyGameEnv(P)
|
||||||
|
|||||||
Reference in New Issue
Block a user