Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/stormfox2/framework/sh_thunder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ if SERVER then
if tr.AllSolid or tr.Fraction == 0 then -- This is inside solid and should instead be done in the skybox.
return THUNDER_MAKE_SKYBOX, SkyPos
end
SkyPos.z = math.min( SkyPos.z, tr.HitPos.z + 8000 )
SkyPos.z = math.min( SkyPos.z, tr.HitPos.z + 8000 )
local pos = SkyPos - vector_up * 5
local line = {}
table.insert(line,pos)
-- Create a line down
local olddir = Vector(0,0,-1)
local m_dis = math.max(1, ( SkyPos.z - StormFox2.Map.MinSize().z ) / 20000)
local pos = SkyPos - vector_up * 5
local _n = nTraceSize / 40
for i = 20, 1, -1 do
-- Random sway
Expand Down Expand Up @@ -522,4 +522,4 @@ else
table.remove(lightningStrikes, r[i])
end
end)
end
end