Skip to content

Commit f042ba3

Browse files
committed
Likho hides singularity corona better
1 parent df9c58e commit f042ba3

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

LuaUI/Configs/lupsUnitFXs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ effectUnitDefs = {
206206

207207
-- portable singularity
208208
{class='Bursts', options=MergeTable(energysinguBursts,{piece="ball", noIconDraw = true, size=5, pos={0,0,0}})},
209-
{class='StaticParticles', options=MergeTable(energysinguCorona,{piece="ball", noIconDraw = true, size=18, pos={0,0,0}})},
209+
{class='StaticParticles', options=MergeTable(energysinguCorona,{piece="ball", onUnitRulesParam="ballHalo", noIconDraw = true, size=18})},
210210

211211
-- blinky lights
212212
{class='StaticParticles', options=MergeTable(blinkyLightRed, {piece="extra_L"}) },

scripts/bomberheavy.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include "constants.lua"
22
include "bombers.lua"
33
include "fixedwingTakeOff.lua"
44

5+
local spSetUnitRulesParam = Spring.SetUnitRulesParam
56

67
local base = piece 'base'
78
local wing_L = piece 'wing_L'
@@ -29,8 +30,7 @@ local takeoffHeight = UnitDefNames["bomberheavy"].cruiseAltitude
2930

3031
local function ShowBall()
3132
Show(ball)
32-
Move(ball, y_axis, 0)
33-
Move(ball, z_axis, 0)
33+
spSetUnitRulesParam(unitID, "ballHalo", 1, INLOS) -- show halo
3434

3535
Move(radiator_L, z_axis, 0, 2)
3636
Move(radiator_R, z_axis, 0, 2)
@@ -53,13 +53,10 @@ end
5353

5454
local function HideBall()
5555
Hide(ball)
56+
spSetUnitRulesParam(unitID, "ballHalo", 0, INLOS) -- hide halo
5657
Scale(ball, 0)
5758
Turn(ball_emit, y_axis, 0)
5859
Spin(ball_emit, y_axis, 0)
59-
60-
-- apparently to hide the LUPS glow
61-
Move(ball, y_axis, 27)
62-
Move(ball, z_axis, 1)
6360

6461
Show(radiator_L)
6562
Show(radiator_R)
@@ -197,6 +194,7 @@ function script.Create()
197194

198195
WingStart()
199196
Hide(ball)
197+
spSetUnitRulesParam(unitID, "ballHalo", 0, INLOS) -- hide halo
200198
Hide(radiator_L)
201199
Hide(radiator_R)
202200

0 commit comments

Comments
 (0)