diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-22 15:30:54 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-22 15:30:54 -0400 |
| commit | e84d85263c6ef55af98cb213c5462107a0170506 (patch) | |
| tree | af6e8e48478734a6d270ebdde9c587023dae3664 /gamemode/server | |
| parent | 83e1d1f833f036e0c7bc205bc2d39f0e9f083f54 (diff) | |
| download | gmstranded-e84d85263c6ef55af98cb213c5462107a0170506.tar.gz gmstranded-e84d85263c6ef55af98cb213c5462107a0170506.tar.bz2 gmstranded-e84d85263c6ef55af98cb213c5462107a0170506.zip | |
Since the new item system, the old way of createing camp fires will no longer work
Diffstat (limited to 'gamemode/server')
| -rw-r--r-- | gamemode/server/entity_functions.lua | 19 |
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 ---------------------------------------------------------------------------------------------------- */ |
