|
|
@ -5,22 +5,24 @@ |
|
|
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
|
|
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
|
|
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
|
|
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if SERVER then |
|
|
|
AddCSLuaFile( "cl_init.lua" ) |
|
|
|
AddCSLuaFile( "cl_init.lua" ) |
|
|
|
AddCSLuaFile( "shared.lua" ) |
|
|
|
AddCSLuaFile( "shared.lua" ) |
|
|
|
|
|
|
|
|
|
|
|
include( "shared.lua" ) |
|
|
|
include( "shared.lua" ) |
|
|
|
|
|
|
|
|
|
|
|
GM.Server = {} |
|
|
|
Quantum.Server = {} |
|
|
|
|
|
|
|
|
|
|
|
-- Add all core files |
|
|
|
-- Add all core files |
|
|
|
|
|
|
|
|
|
|
|
function GM.Server.Load() |
|
|
|
function Quantum.Server.Load() |
|
|
|
local fol = GM.FolderName .. "/gamemode/core/" |
|
|
|
local fol = GM.FolderName .. "/gamemode/core/" |
|
|
|
|
|
|
|
|
|
|
|
-- Server files |
|
|
|
-- Shared files |
|
|
|
local cFiles = file.Find( fol .. "/server/sv_*.lua", "LUA" ) |
|
|
|
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" ) |
|
|
|
for _, file in pairs( cFiles ) do |
|
|
|
for _, file in pairs( shFiles ) do |
|
|
|
include( fol .. "server/" .. file ) |
|
|
|
AddCSLuaFile( fol .. file ) |
|
|
|
|
|
|
|
include( fol .. file ) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
-- CLient files |
|
|
|
-- CLient files |
|
|
@ -29,11 +31,12 @@ function GM.Server.Load() |
|
|
|
AddCSLuaFile( fol .. "client/" .. file ) |
|
|
|
AddCSLuaFile( fol .. "client/" .. file ) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
-- Shared files |
|
|
|
-- Server files |
|
|
|
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" ) |
|
|
|
local cFiles = file.Find( fol .. "/server/sv_*.lua", "LUA" ) |
|
|
|
for _, file in pairs( shFiles ) do |
|
|
|
for _, file in pairs( cFiles ) do |
|
|
|
AddCSLuaFile( fol .. file ) |
|
|
|
include( fol .. "server/" .. file ) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
GM.Server.Load() |
|
|
|
Quantum.Server.Load() |
|
|
|
|
|
|
|
end |