aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/sh_humannpc.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2019-05-04 16:05:01 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2019-05-04 16:05:01 -0400
commit100342bdd0a979f283f90875663784f20282dd5e (patch)
tree8188ab5f9dd979d552df3d41fb31b1166b01d150 /gamemode/npcsystem/sh_humannpc.lua
parentfaa8312074e6ea8a96efd70d6188ef592f81e579 (diff)
downloadartery-100342bdd0a979f283f90875663784f20282dd5e.tar.gz
artery-100342bdd0a979f283f90875663784f20282dd5e.tar.bz2
artery-100342bdd0a979f283f90875663784f20282dd5e.zip
Started on the NPC overhual
Added some bits to start on the npcs overhaul
Diffstat (limited to 'gamemode/npcsystem/sh_humannpc.lua')
-rw-r--r--gamemode/npcsystem/sh_humannpc.lua4
1 files changed, 3 insertions, 1 deletions
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