From cda70b47f13623d086188f686c005a017ccc5b25 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Thu, 24 Aug 2017 18:08:43 -0400 Subject: Vairious updates --- lua/autorun/town.lua | 8 ++++++++ lua/autorun/zone_huntingground.lua | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'lua/autorun') diff --git a/lua/autorun/town.lua b/lua/autorun/town.lua index 40131df..0d36f41 100644 --- a/lua/autorun/town.lua +++ b/lua/autorun/town.lua @@ -80,6 +80,14 @@ local fakes = { GetItemByName = function(string) return {} end + }, + ["sv_huntingspawner.lua"] = { + CreateSpawnNode = function(tbl) + local pos = tbl.Position + local e = ents.Create("info_edit_huntablespawn") + e:SetPos(pos) + e:Spawn() + end } } fakes["core/npc/sv_npcsystem.lua"] = fakes["sv_npcsystem.lua"] diff --git a/lua/autorun/zone_huntingground.lua b/lua/autorun/zone_huntingground.lua index 57847ca..b2b76e0 100644 --- a/lua/autorun/zone_huntingground.lua +++ b/lua/autorun/zone_huntingground.lua @@ -77,7 +77,7 @@ hook.Add("ShowZoneOptions","artery_huntingground",function(zone,class,DPanel,zon monsterlb:SizeToContents() local freqlb = vgui.Create("DLabel",headerbar) freqlb:Dock(RIGHT) - freqlb:SetText("Spawn frequency (0-100) : Health") + freqlb:SetText("Health : Spawn frequency (0-100)") freqlb:SetDark(true) freqlb:SizeToContents() @@ -114,6 +114,7 @@ hook.Add("ShowZoneOptions","artery_huntingground",function(zone,class,DPanel,zon local monstertype = vgui.Create("DComboBox",thisbar) monstertype:Dock(LEFT) + if not monsters then find_monsters() end for i,j in pairs(monsters) do monstertype:AddChoice(j) end -- cgit v1.2.3-70-g09d2