Add a setting to pause the shellmap.

This commit is contained in:
Paul Chote
2020-12-30 14:54:28 +00:00
committed by reaperrr
parent aeab9a8116
commit 16d0f8a5a6
6 changed files with 26 additions and 4 deletions

View File

@@ -147,8 +147,10 @@ speed = 5
Tick = function()
ticks = ticks + 1
local t = (ticks + 45) % (360 * speed) * (math.pi / 180) / speed;
Camera.Position = viewportOrigin + WVec.New(19200 * math.sin(t), 28800 * math.cos(t), 0)
if ticks > 1 or not Map.IsPausedShellmap then
local t = (ticks + 45) % (360 * speed) * (math.pi / 180) / speed;
Camera.Position = viewportOrigin + WVec.New(19200 * math.sin(t), 28800 * math.cos(t), 0)
end
end
WorldLoaded = function()