mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
41
lua/autorun/pac_core_init.lua
Normal file
41
lua/autorun/pac_core_init.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
--[[
|
||||
| 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 not VLL_CURR_FILE and not VLL2_FILEDEF then return 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/core/client/")
|
||||
add_files("pac3/core/shared/")
|
||||
add_files("pac3/libraries/")
|
||||
|
||||
include("pac3/core/server/init.lua")
|
||||
end
|
||||
|
||||
if CLIENT then
|
||||
if pac and pac.Panic then
|
||||
ProtectedCall(pac.Panic)
|
||||
end
|
||||
|
||||
include("pac3/core/client/init.lua")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user