Initial commit
This commit is contained in:
commit
83ecdc1173
|
@ -0,0 +1,2 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
|
@ -0,0 +1,11 @@
|
|||
"benny"
|
||||
{
|
||||
"base" "base"
|
||||
"title" "Your Name Is Benny"
|
||||
"maps" "^benny_"
|
||||
"category" "other"
|
||||
"menusystem" "1"
|
||||
"settings"
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
-- Thing
|
||||
|
||||
include( "shared.lua" )
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
-- Thing
|
||||
|
||||
AddCSLuaFile( "cl_init.lua" )
|
||||
AddCSLuaFile( "shared.lua" )
|
||||
|
||||
include( "shared.lua" )
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
-- Thing
|
||||
|
||||
GM.Name = "Your Name Is Benny"
|
||||
GM.Author = "Fesiug, Oranche"
|
||||
GM.Email = "N/A"
|
||||
GM.Website = "N/A"
|
||||
|
||||
-- Load modules
|
||||
local path = GM.FolderName .. "/gamemode/modules/"
|
||||
local modules, folders = file.Find(path .. "*", "LUA")
|
||||
|
||||
for _, folder in SortedPairs(folders, false) do
|
||||
if folder == "." or folder == ".." then continue end
|
||||
|
||||
-- Shared modules
|
||||
for _, f in SortedPairs(file.Find(path .. folder .. "/sh_*.lua", "LUA"), false) do
|
||||
AddCSLuaFile(path .. folder .. "/" .. f)
|
||||
include(path .. folder .. "/" .. f)
|
||||
end
|
||||
|
||||
-- Server modules
|
||||
if SERVER then
|
||||
for _, f in SortedPairs(file.Find(path .. folder .. "/sv_*.lua", "LUA"), false) do
|
||||
include(path .. folder .. "/" .. f)
|
||||
end
|
||||
end
|
||||
|
||||
-- Client modules
|
||||
for _, f in SortedPairs(file.Find(path .. folder .. "/cl_*.lua", "LUA"), false) do
|
||||
AddCSLuaFile(path .. folder .. "/" .. f)
|
||||
|
||||
if CLIENT then
|
||||
include(path .. folder .. "/" .. f)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue