Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 82b976f

Browse files
committed
Bottle doesn't seem to break :/
1 parent af18246 commit 82b976f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Ronin.rte/Devices/Misc/Bottle/Bottle.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,5 @@ AddDevice = TDExplosive
140140
AddGib = Gib
141141
GibParticle = MOSParticle
142142
CopyOf = Oil Spray Particle
143-
GibImpulseLimit = 50
143+
GibImpulseLimit = 40
144144
GibWoundLimit = 0

Ronin.rte/Devices/Shared/Throwable.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
function Create(self)
22
self.origMass = self.Mass;
3+
self.origGibImpulseLimit = self.GibImpulseLimit;
34
self.thrownMassMultiplier = self:NumberValueExists("ThrownMassMultiplier") and self:GetNumberValue("ThrownMassMultiplier") or 5;
45
end
56
function Update(self)
67
if self.ID == self.RootID then
78
if not self.thrown then
89
self.AngularVel = self.AngularVel - self.Vel.Magnitude * self.FlipFactor * math.random();
910
self.Mass = self.origMass * self.thrownMassMultiplier;
10-
self.GibImpulseLimit = self.GibImpulseLimit * self.thrownMassMultiplier;
11+
self.GibImpulseLimit = self.origGibImpulseLimit * self.thrownMassMultiplier;
1112
self.thrown = true;
1213
end
1314
else

0 commit comments

Comments
 (0)