From e84d85263c6ef55af98cb213c5462107a0170506 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 22 May 2016 15:30:54 -0400 Subject: Since the new item system, the old way of createing camp fires will no longer work --- gamemode/server/entity_functions.lua | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'gamemode/server/entity_functions.lua') diff --git a/gamemode/server/entity_functions.lua b/gamemode/server/entity_functions.lua index 4894ad1..564d6f6 100644 --- a/gamemode/server/entity_functions.lua +++ b/gamemode/server/entity_functions.lua @@ -57,25 +57,6 @@ function EntityMeta:IsLootableNPC() return table.HasValue( GMS.LootableNPCs, self:GetClass() ) end -function EntityMeta:MakeCampfire() - if ( GetConVarNumber( "gms_campfire" ) <= 0 ) then return end - - local min, max = self:OBBMins(), self:OBBMaxs() - local vol = math.abs( max.x - min.x ) * math.abs( max.y - min.y ) * math.abs( max.z - min.z ) - local mul = math.min( math.sqrt( vol ) / 200, 1 ) - - if ( !self.CampFire ) then self:SetHealth( 1337 ) end - self.CampFire = true - - timer.Create( "gms_removecampfire_" .. self:EntIndex(), 480 * mul, 1, function() if ( IsValid( self ) ) then self:Fadeout() end end ) - - if ( GetConVarNumber( "gms_SpreadFire" ) >= 1 ) then - self:Ignite( 360, ( self:OBBMins() - self:OBBMaxs() ):Length() + 10 ) - else - self:Ignite( 360, 0.001 ) - end -end - /* ---------------------------------------------------------------------------------------------------- Entity Fading ---------------------------------------------------------------------------------------------------- */ -- cgit v1.2.3-70-g09d2