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/core/npc/sh_npcsystem.lua | 40 +++++++++++++--------------- gamemode/npcsystem/sh_basenpc.lua | 50 ++++++++++++++++++++++++----------- gamemode/npcsystem/sh_humannpc.lua | 4 ++- gamemode/npcsystem/sh_movingnpc.lua | 9 +++++-- gamemode/npcsystem/sh_shop.lua | 2 ++ gamemode/npcsystem/sh_talkablenpc.lua | 5 ++++ gamemode/npcsystem/sh_townie.lua | 2 +- 7 files changed, 71 insertions(+), 41 deletions(-) (limited to 'gamemode') diff --git a/gamemode/core/npc/sh_npcsystem.lua b/gamemode/core/npc/sh_npcsystem.lua index 501f21c..9b43965 100644 --- a/gamemode/core/npc/sh_npcsystem.lua +++ b/gamemode/core/npc/sh_npcsystem.lua @@ -7,8 +7,15 @@ local f = nrequire("concommands.lua") local log = nrequire("log.lua") local n = {} local npcs = {} --Master table of npcs +local npc_metas = {} local autocompletef +function npc_tostring(npctbl) + return function(self) + return string.format("