From 100342bdd0a979f283f90875663784f20282dd5e Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 4 May 2019 16:05:01 -0400 Subject: Started on the NPC overhual Added some bits to start on the npcs overhaul --- gamemode/npcsystem/sh_humannpc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gamemode/npcsystem/sh_humannpc.lua') diff --git a/gamemode/npcsystem/sh_humannpc.lua b/gamemode/npcsystem/sh_humannpc.lua index b4a2b15..5cd31f8 100644 --- a/gamemode/npcsystem/sh_humannpc.lua +++ b/gamemode/npcsystem/sh_humannpc.lua @@ -18,7 +18,7 @@ setmetatable(npc,{__index = function(self,key) if key == "Model" then return human_models[math.random(#human_models)] else - return base1.key or base2.key + return base1[key] or base2[key] end end}) @@ -65,3 +65,5 @@ for k,v in pairs(learnable) do end reg.RegisterNPC(npc, "Human NPC Base") + +return npc -- cgit v1.2.3-70-g09d2