diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-11-03 18:23:45 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-11-03 18:23:45 -0400 |
| commit | 28affa22541b9ef251707793f6b1c1a26d663592 (patch) | |
| tree | 622754894d75c74dc5e8516ccf184ad4bf328fef /gamemode/npcsystem/sh_townie.lua | |
| parent | c639e7c7c6ab1595fdce39f56312e3d6a886bbe8 (diff) | |
| download | artery-28affa22541b9ef251707793f6b1c1a26d663592.tar.gz artery-28affa22541b9ef251707793f6b1c1a26d663592.tar.bz2 artery-28affa22541b9ef251707793f6b1c1a26d663592.zip | |
Started on new npc system
Started work on the new npc system
Diffstat (limited to 'gamemode/npcsystem/sh_townie.lua')
| -rw-r--r-- | gamemode/npcsystem/sh_townie.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gamemode/npcsystem/sh_townie.lua b/gamemode/npcsystem/sh_townie.lua new file mode 100644 index 0000000..3b693c5 --- /dev/null +++ b/gamemode/npcsystem/sh_townie.lua @@ -0,0 +1,17 @@ +local reg = nrequire("sh_npcsystem.lua") + +local base1 = nrequire("sh_talkablenpc.lua") +local base2 = nrequire("sh_moveingnpc.lua") +local npc = {} + +local npc_m = {__index = function(self,key) + return base1[key] or base2[key] +end} + +setmetatable(npc,npc_m) + +npc.Name = "Townie" + +reg.RegisterNPC(npc) + +return npc |
