Skip to content

Instantly share code, notes, and snippets.

@luastoned
Created October 2, 2014 12:40
Show Gist options
  • Save luastoned/c42f2a5481528b387248 to your computer and use it in GitHub Desktop.
Save luastoned/c42f2a5481528b387248 to your computer and use it in GitHub Desktop.
LuaCraft Boom
function boom(ply, cmd, tbl)
local size = math.min(500, #tbl > 0 and tbl[1] or 5)
local trace = ply:GetEyeTrace()
ply:Msg("Boom: " .. size)
World(0):AddExplosion(trace.HitPos, size, false, true)
end
command.Add("boom", boom)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment