summaryrefslogtreecommitdiff
path: root/gamemode/server
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/server')
-rw-r--r--gamemode/server/entity_functions.lua19
1 files changed, 0 insertions, 19 deletions
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
---------------------------------------------------------------------------------------------------- */