aboutsummaryrefslogtreecommitdiff
path: root/gamemode/ents/art_chest/sh_art_chest.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-01-14 15:38:14 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2018-01-14 15:38:14 -0500
commit5e4b759e6b4fd8af9e66f76090ee868368bee467 (patch)
tree0f8eded6108928bf0c5b080201af04ed330bb3a5 /gamemode/ents/art_chest/sh_art_chest.lua
parentdadd9486581d217c0482ddd639a13b95428e6366 (diff)
downloadartery-5e4b759e6b4fd8af9e66f76090ee868368bee467.tar.gz
artery-5e4b759e6b4fd8af9e66f76090ee868368bee467.tar.bz2
artery-5e4b759e6b4fd8af9e66f76090ee868368bee467.zip
Moved art_chest entity into gamemode folder
Moved the art_chest entity to use the unusual artery system instead of the default entity system.
Diffstat (limited to 'gamemode/ents/art_chest/sh_art_chest.lua')
-rw-r--r--gamemode/ents/art_chest/sh_art_chest.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/gamemode/ents/art_chest/sh_art_chest.lua b/gamemode/ents/art_chest/sh_art_chest.lua
new file mode 100644
index 0000000..1cfd103
--- /dev/null
+++ b/gamemode/ents/art_chest/sh_art_chest.lua
@@ -0,0 +1,11 @@
+local ENT = {}
+
+ENT.Type = "anim"
+ENT.Base = "base_anim"
+
+hook.Add("artery_core_loaded","load_ent_art_chest",function()
+ local e = scripted_ents.Get("base_anim")
+ setmetatable(ENT,e)
+end)
+
+return ENT