aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/pac
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/pac')
-rw-r--r--gamemode/core/pac/sv_pac.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/gamemode/core/pac/sv_pac.lua b/gamemode/core/pac/sv_pac.lua
index 30d2ef7..ad54106 100644
--- a/gamemode/core/pac/sv_pac.lua
+++ b/gamemode/core/pac/sv_pac.lua
@@ -70,11 +70,15 @@ local function loadhashes()
end
loadhashes()
concommand.Add("artery_reload_pac_hashes",loadhashes)
+concommand.Add("artery_print_pac_hashes",function(ply,cmd,args)
+ PrintTable(pachashes)
+end)
local appliedpacs = {}
function p3.ApplyPac(what, name)
print("Applying pac", name, "to",what)
+ assert(pachashes[name],string.format("Tried to apply pac %s which didn't have a hash. Pac hashes are:%s",name,table.ToString(pachashes,"pachashes",true)))
appliedpacs[what] = appliedpacs[what] or {}
appliedpacs[what][name] = pachashes[name]
net.Start("artery_applypac")