Restructured the file structure

master
AlmTech 5 years ago
parent b8c4eaa63f
commit 58050567ca
  1. 1
      gamemode/cl_init.lua
  2. 0
      gamemode/engine/core/client/cl_config_vars.lua
  3. 0
      gamemode/engine/core/client/cl_fonts.lua
  4. 0
      gamemode/engine/core/client/cl_hud.lua
  5. 6
      gamemode/engine/core/server/sv_player_character.lua
  6. 0
      gamemode/engine/core/server/sv_player_damage.lua
  7. 0
      gamemode/engine/core/server/sv_player_init.lua
  8. 0
      gamemode/engine/core/server/sv_player_spawning.lua
  9. 0
      gamemode/engine/core/server/sv_player_voice.lua
  10. 0
      gamemode/engine/sh_debug.lua
  11. 4
      gamemode/init.lua
  12. 10
      gamemode/settings/sv_settings.lua
  13. 4
      gamemode/shared.lua

@ -15,7 +15,6 @@ if CLIENT then
function Quantum.Client.Load()
local fol = GM.FolderName .. "/gamemode/core/"
-- Shared files
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do

@ -22,6 +22,8 @@ function Quantum.Server.Char.CreateCharTable( args )
combat = 0,
science = 0
},
licenses = args.licenses || {},
titles = args.titles || {}
}
end
@ -37,8 +39,8 @@ end
function Quantum.Server.Char.Remove( pl, index )
local id = pl:SteamID() .. ":" .. index
if( Quantum.Server.Char.Players[id] ~= nil ) then
Quantum.Server.Char.Players[id] = nil
if( Quantum.Server.Char.Players[ id ] ~= nil ) then
Quantum.Server.Char.Players[ id ] = nil
Quantum.Debug( "Removed character (" .. id .. ")" )
end
end

@ -6,6 +6,7 @@
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
if SERVER then
AddCSLuaFile( "engine/sh_debug.lua" )
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
@ -15,9 +16,8 @@ if SERVER then
include( "settings/sv_settings.lua" ) -- include the settings
-- Add all core files
function Quantum.Server.Load()
local fol = GM.FolderName .. "/gamemode/core/"
local fol = GM.FolderName .. "/gamemode/engine/core/"
-- Shared files
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )

@ -9,6 +9,8 @@
Quantum.Server.Settings.VoiceChatRange = 400
Quantum.Server.Settings.StarterMoney = 0
Quantum.Server.Settings.MaxJobLevel = 250
Quantum.Server.Settings.MaxJobSlots = 2
Quantum.Server.Settings.MaxSkillLevel = 100
@ -22,6 +24,14 @@ Quantum.Server.Settings.SpawnLocations = {
}
Quantum.Server.Settings.Licenses = {
Driving = { title = "Driving License", desc = "This permits you to operate and pilot any motorized vehicle in a public area.", cost = 1000 }
}
Quantum.Server.Settings.Titles = {
dev = "Developer,"
}
Quantum.Server.Settings.DamageScale = { -- The scale of the damage for each hitgroup
[HITGROUP_HEAD] = 10,
[HITGROUP_CHEST] = 4,

@ -10,4 +10,6 @@ GM.Author = "AlmTech"
GM.Email = "elias@almtech.se"
GM.Website = "N/A"
Quantum = {}
Quantum = {}
include( "engine/sh_debug.lua" ) -- add the debug functions and stuff
Loading…
Cancel
Save