You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
5 years ago
|
-- __ _ _______ _ __
|
||
|
-- / / /\ | | |__ __| | | \ \
|
||
|
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \
|
||
|
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > >
|
||
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / /
|
||
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
|
||
|
|
||
|
AddCSLuaFile( "cl_init.lua" )
|
||
|
AddCSLuaFile( "shared.lua" )
|
||
|
|
||
|
include( "shared.lua" )
|
||
|
|
||
|
GM.Server = {}
|
||
|
|
||
|
-- Add all core files
|
||
|
|
||
|
function GM.Server.Load()
|
||
|
local fol = GM.FolderName .. "/gamemode/core/"
|
||
|
|
||
|
-- Server files
|
||
|
local cFiles = file.Find( fol .. "/server/sv_*.lua", "LUA" )
|
||
|
for _, file in pairs( cFiles ) do
|
||
|
include( fol .. "server/" .. file )
|
||
|
end
|
||
|
|
||
|
-- CLient files
|
||
|
local clFiles = file.Find( fol .. "/client/cl_*.lua", "LUA" )
|
||
|
for _, file in pairs( clFiles ) do
|
||
|
AddCSLuaFile( fol .. "client/" .. file )
|
||
|
end
|
||
|
|
||
|
-- Shared files
|
||
|
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
|
||
|
for _, file in pairs( shFiles ) do
|
||
|
AddCSLuaFile( fol .. file )
|
||
|
end
|
||
|
end
|
||
|
|
||
|
GM.Server.Load()
|