Skip to content

Commit 57f54b9

Browse files
committed
Flame script fixes - fixed a silly lua issue, and made it so the mosparticle flame 1 hurt isn't broken
1 parent 32251a5 commit 57f54b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Base.rte/Effects/Pyro/Flame/Flame.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
function Create(self)
2-
2+
if self.PresetName:find("Short") then
3+
self.isShort = true;
4+
end
5+
if self.Throttle == nil then
6+
self.Throttle = 0;
7+
end
38
end
49

510
function Update(self)
@@ -46,7 +51,6 @@ function Update(self)
4651
particle.Lifetime = self.Lifetime * RangeRand(0.6, 0.9);
4752
particle.Vel = self.Vel + Vector(0, -3) + Vector(math.random(), 0):RadRotate(math.random() * math.pi * 2);
4853
particle.Pos = Vector(self.Pos.X, self.Pos.Y - 1);
49-
particle.isShort = true;
5054
MovableMan:AddParticle(particle);
5155
end
5256
end

0 commit comments

Comments
 (0)