Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !bombstrike then
- hook.Add("Think", "lulz_bombstrike", function()
- local explode = ents.Create( "env_explosion" )
- local ps = Vector(math.random(-8000, 8000), math.random(-8000, 8000), math.random(-5000, 5000))
- local trc = {}
- trc.start = ps
- trc.endpos = ps + Vector( 0, 0, -99999)
- local tr = util.TraceLine(trc)
- if !tr.Hit then return end
- explode:SetPos( tr.HitPos )
- explode:Spawn()
- explode:SetKeyValue( "iMagnitude", "400" )
- explode:Fire( "Explode", 0, 0 )
- end)
- bombstrike = true
- else
- hook.Remove("Think", "lulz_bombstrike")
- bombstrike = false
- end
Advertisement
Add Comment
Please, Sign In to add comment