mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
Upload
This commit is contained in:
44
lua/autorun/pac_extra_init.lua
Normal file
44
lua/autorun/pac_extra_init.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
-- 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
|
||||
|
||||
Reference in New Issue
Block a user