From 5c4ebc932d8c02522802c842d43d863d89aca162 Mon Sep 17 00:00:00 2001 From: Apickx Date: Mon, 28 Dec 2015 19:10:44 -0500 Subject: Initial commit --- gamemode/itemsystem/items/runefire.lua | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 gamemode/itemsystem/items/runefire.lua (limited to 'gamemode/itemsystem/items/runefire.lua') diff --git a/gamemode/itemsystem/items/runefire.lua b/gamemode/itemsystem/items/runefire.lua new file mode 100644 index 0000000..419712e --- /dev/null +++ b/gamemode/itemsystem/items/runefire.lua @@ -0,0 +1,48 @@ + +ITEM.Name = "Fire Rune" +ITEM.Class = "resource" +ITEM.Desc = "A perpetually warm stone" +ITEM.Model = "models/props_combine/breenlight.mdl" +ITEM.Icon = Material("wintersurvival2/hud/ws2_icons/icon_runefire.png") + +ITEM.Structure = { + { + Bone = "ValveBiped.Bip01_R_Hand", + Model = "models/props_junk/rock001a.mdl", + Size = Vector(1,1,1), + Pos = Vector(3,-1.6,0.5), + Ang = Angle(0,0,0), + }, +} + +ITEM.Recipe = { + Resources = { + ["Blank Rune"] = 1, + ["Pitch"] = 1, + }, + Tools = {}, +} + + + +ITEM.Damage = 1 +ITEM.Range = 500 +ITEM.CD = 1 + +function ITEM:OnUse(user) + if(CLIENT) then return end + user:Ignite(1) + user:SetHeat(0) + user:RemoveItem(self.Name,1) +end + +function ITEM:OnPrimary(ply,tr) + if(CLIENT) then + game.AddParticles("particles/particletest.pcf") + else + if(tr.Hit && tr.Entity && tr.Entity:IsPlayer()) then + tr.Entity:Ignite(5) + end + end + +end -- cgit v1.2.3-70-g09d2