41 lines
869 B
Lua
41 lines
869 B
Lua
|
|
BennyGame = {}
|
|
|
|
|
|
BG_GTYPE_CAMPAIGN = 0
|
|
BG_GTYPE_MP = 1
|
|
|
|
function BennyGame:GetType()
|
|
return BG_GTYPE_MP
|
|
end
|
|
|
|
BennyGame.TeamsInPlay = {
|
|
[4] = 1,
|
|
[3] = 2,
|
|
}
|
|
BennyGame.TeamToFaction = table.Flip( BennyGame.TeamsInPlay )
|
|
BennyGame.TeamCount = table.Count(BennyGame.TeamsInPlay)
|
|
|
|
BG_GMODE_TDM = 0
|
|
BG_GMODE_FFA = 1
|
|
BG_GMODE_DOMINATION = 2
|
|
BG_GMODE_CTF = 3
|
|
BG_GMODE_BOMB = 4
|
|
BG_GMODE_HARDPOINT = 5
|
|
BG_GMODE_DEMOLITION = 6
|
|
|
|
function BennyGame:GetMode()
|
|
return BG_GMODE_TDM
|
|
end
|
|
|
|
hook.Add("Initialize", "Benny_Initialize", function()
|
|
-- local mapscript = "benny_maps/" .. game.GetMap() .. "_init.lua"
|
|
-- AddCSLuaFile(mapscript)
|
|
-- include(mapscript)
|
|
end)
|
|
|
|
hook.Add("InitPostEntity", "Benny_InitPostEntity", function()
|
|
-- local mapscript = "benny_maps/" .. game.GetMap() .. "_initpostentity.lua"
|
|
-- AddCSLuaFile(mapscript)
|
|
-- include(mapscript)
|
|
end) |