mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
35 lines
711 B
Lua
35 lines
711 B
Lua
-- VLL_CURR_FILE is local to each file
|
|
if CLIENT and pac and pace and pacx and not VLL_CURR_FILE and not VLL2_FILEDEF then return end
|
|
|
|
if not pace then
|
|
include("autorun/pac_editor_init.lua")
|
|
end
|
|
|
|
if not pace then
|
|
error("pac extra requires the pac editor")
|
|
end
|
|
|
|
if SERVER then
|
|
local function add_files(dir)
|
|
local files, folders = file.Find(dir .. "*", "LUA")
|
|
|
|
for key, file_name in pairs(files) do
|
|
AddCSLuaFile(dir .. file_name)
|
|
end
|
|
|
|
for key, folder_name in pairs(folders) do
|
|
add_files(dir .. folder_name .. "/")
|
|
end
|
|
end
|
|
|
|
add_files("pac3/extra/client/")
|
|
add_files("pac3/extra/shared/")
|
|
|
|
include("pac3/extra/server/init.lua")
|
|
end
|
|
|
|
if CLIENT then
|
|
include("pac3/extra/client/init.lua")
|
|
end
|
|
|