From 461a29d8fdb2fd6c86a77912e9c2232e1f101ca8 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 19 Jun 2017 00:07:01 -0400 Subject: Massive updates Lots of stuff was updated, mostly to support addons. Inventory tracking is also updated a little and a bug fixed in inventory. Nrequire now probably won't crash the client, no matter how many times it's used. --- gamemode/core/pac/sv_pac.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gamemode/core/pac/sv_pac.lua') 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") -- cgit v1.2.3-70-g09d2