From c938d041633104340f866a5906f6dbaffaf1f459 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 18 Oct 2016 18:22:54 -0400 Subject: Bugfixes in spells and misc linting --- gamemode/itemsystem/items/runefire.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gamemode/itemsystem/items/runefire.lua') diff --git a/gamemode/itemsystem/items/runefire.lua b/gamemode/itemsystem/items/runefire.lua index d91e7a5..b71e7cc 100644 --- a/gamemode/itemsystem/items/runefire.lua +++ b/gamemode/itemsystem/items/runefire.lua @@ -2,7 +2,7 @@ ITEM.Name = "Fire Rune" ITEM.Class = "resource" ITEM.Desc = "A perpetually warm stone" -ITEM.Model = "models/props_combine/breenlight.mdl" +ITEM.Model = "models/props_junk/Rock001a.mdl" ITEM.Icon = Material("wintersurvival2/hud/ws2_icons/icon_runefire.png") game.AddParticles("particles/particletest.pcf") @@ -31,18 +31,18 @@ ITEM.Range = 500 ITEM.CD = 1 function ITEM:OnUse(user) - if(CLIENT) then return end + if CLIENT then return end user:Ignite(1) - user:SetHeat(0) + user:SetHeat(0) user:RemoveItem(self.Name,1) end function ITEM:OnPrimary(ply,tr) ParticleEffect("firetest",ply:GetPos()+Vector(0,0,72),ply:GetAngles(),ply) - if(CLIENT) then - + if CLIENT then + --Do a cool fire breathing animation else - if(tr.Hit && tr.Entity && tr.Entity:IsPlayer()) then + if(tr.Hit && tr.Entity && tr.Entity:IsPlayer()) then tr.Entity:Ignite(5) user.RemoveItem(self.Name,1) end -- cgit v1.2.3-70-g09d2