force change level, enforce race mode
This commit is contained in:
parent
14645dbc90
commit
07dca46c92
@ -1152,12 +1152,14 @@ local function getGamer()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function think()
|
local function changeMap()
|
||||||
if nextMap then
|
COM_BufInsertText(server, "map " + nextMap + " -force -gametype race")
|
||||||
COM_BufInsertText(server, "map " + nextMap)
|
|
||||||
nextMap = nil
|
nextMap = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function think()
|
||||||
|
if nextMap then changeMap() end
|
||||||
|
|
||||||
if disable then
|
if disable then
|
||||||
if AntiAFK then
|
if AntiAFK then
|
||||||
if ingame() > 1 then
|
if ingame() > 1 then
|
||||||
@ -1309,10 +1311,7 @@ end
|
|||||||
addHook("ThinkFrame", think)
|
addHook("ThinkFrame", think)
|
||||||
|
|
||||||
local function interThink()
|
local function interThink()
|
||||||
if nextMap then
|
if nextMap then changeMap() end
|
||||||
COM_BufInsertText(server, "map " + nextMap)
|
|
||||||
nextMap = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
if not cv_teamchange then
|
if not cv_teamchange then
|
||||||
cv_teamchange = CV_FindVar("allowteamchange")
|
cv_teamchange = CV_FindVar("allowteamchange")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user