Initial commit

This commit is contained in:
Fesiug 2023-09-03 09:31:16 -04:00
commit 83ecdc1173
6 changed files with 63 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# benny
Your Name Is Benny

11
gamemodes/benny/benny.txt Normal file
View File

@ -0,0 +1,11 @@
"benny"
{
"base" "base"
"title" "Your Name Is Benny"
"maps" "^benny_"
"category" "other"
"menusystem" "1"
"settings"
{
}
}

View File

@ -0,0 +1,4 @@
-- Thing
include( "shared.lua" )

View File

@ -0,0 +1,7 @@
-- Thing
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )

View File

@ -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