All pastes #740217 Raw Edit

Untitled

public lua v1 · immutable
·published 2007-10-17 19:45 UTC
rendered paste body
	local Ents = { }		function Breakable.CreateEntitySmokeTrail(Entity)				table.insert( Ents, Entity )		end		function LolBreakableSmokeThingyThink( )			for k, v in pairs ( Ents ) do					if v and v:IsValid( ) then						if not (v.Breakable.Smoke) then				local Low, High = v:WorldSpaceAABB()				local Center = High - (( High - Low ) * 0.5)				local vPos = Vector( math.Rand(Low.x,High.x), math.Rand(Low.y,High.y), math.Rand(Low.z,High.z) )							local effectdata = EffectData()				effectdata:SetOrigin(vPos)				effectdata:SetStart(vPos)				effectdata:SetScale( 10 )				effectdata:SetRadius( 100 )				util.Effect( "spark_death", effectdata )							end				end		end		hook.Add( "Think", "lolol", LolBreakableSmokeThingyThink )