Initial commit - RefoselBots

This commit is contained in:
Refosel
2026-03-28 14:49:46 +03:00
commit 4ee71d6bcb
16 changed files with 1577 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
--if game.SinglePlayer() or SERVER then return end
-- Modules
local _, dir = file.Find("refoselbots/modules/*", "LUA")
for k, v in pairs(dir) do
local f = table.Add(file.Find("refoselbots/modules/" .. v .. "/cl_*.lua", "LUA"), file.Find("refoselbots/modules/" .. v .. "/sh_*.lua", "LUA"))
for i, o in pairs(f) do
local file = "refoselbots/modules/" .. v .. "/" .. o
include(file)
end
end

View File

@@ -0,0 +1,59 @@
--if game.SinglePlayer() or CLIENT then return end
LeadBot = {}
LeadBot.NoNavMesh = {}
LeadBot.Models = {} -- Models, leave as {} if random is desired
--[[-----
CONFIG START CONFIG START
CONFIG START CONFIG START
CONFIG START CONFIG START
--]]-----
-- Name Prefix
LeadBot.Prefix = ""
--[[-----
CONFIG END CONFIG END
CONFIG END CONFIG END
CONFIG END CONFIG END
--]]-----
include("refoselbots/base.lua")
-- Modules
local _, dir = file.Find("refoselbots/modules/*", "LUA")
for k, v in pairs(dir) do
local f = table.Add(file.Find("refoselbots/modules/" .. v .. "/sv_*.lua", "LUA"), file.Find("refoselbots/modules/" .. v .. "/sh_*.lua", "LUA"))
f = table.Add(f, file.Find("refoselbots/modules/" .. v .. "/cl_*.lua", "LUA"))
for i, o in pairs(f) do
local file = "refoselbots/modules/" .. v .. "/" .. o
if string.StartWith(o, "cl_") then
AddCSLuaFile(file)
else
include(file)
if string.StartWith(o, "sh_") then
AddCSLuaFile(file)
end
end
end
end
-- Configs
local map = game.GetMap()
local gamemode = engine.ActiveGamemode()
if file.Find("refoselbots/gamemodes/" .. map .. ".lua", "LUA")[1] then
include("refoselbots/gamemodes/" .. map .. ".lua")
elseif file.Find("refoselbots/gamemodes/" .. gamemode .. ".lua", "LUA")[1] then
include("refoselbots/gamemodes/" .. gamemode .. ".lua")
end