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

Commit 405c45f

Browse files
committed
Laser Rifle related edits and fixes
1 parent aa78834 commit 405c45f

File tree

5 files changed

+37
-14
lines changed

5 files changed

+37
-14
lines changed
90 Bytes
Loading
85 Bytes
Loading

Techion.rte/Devices/Weapons/LaserRifle/LaserRifle.ini

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -224,32 +224,55 @@ AddDevice = HDFirearm
224224
AddGib = Gib
225225
GibParticle = MOPixel
226226
CopyOf = Spark Yellow 1
227-
Count = 14
228-
Spread = 2.25
229-
MaxVelocity = 20
230-
MinVelocity = 8
227+
Count = 10
228+
MaxVelocity = 18
229+
MinVelocity = 6
231230
AddGib = Gib
232231
GibParticle = MOPixel
233232
CopyOf = Spark Yellow 2
234-
Count = 12
235-
Spread = 2.25
236-
MaxVelocity = 20
237-
MinVelocity = 8
233+
Count = 10
234+
MaxVelocity = 18
235+
MinVelocity = 6
238236
AddGib = Gib
239237
GibParticle = MOSParticle
240-
CopyOf = Gib Metal Rust Micro A
241-
Count = 6
242-
Spread = 2.25
238+
CopyOf = Gib Panel White Micro A
239+
Count = 5
243240
MaxVelocity = 15
244241
MinVelocity = 5
245242
AddGib = Gib
246243
GibParticle = MOSParticle
247244
CopyOf = Gib Metal Grey Micro A
248-
Count = 8
249-
Spread = 2.25
245+
Count = 7
250246
MaxVelocity = 15
251247
MinVelocity = 5
248+
AddGib = Gib
249+
GibParticle = MOSParticle
250+
CopyOf = Gib Panel White Tiny A
251+
AddGib = Gib
252+
GibParticle = MOSParticle
253+
CopyOf = Gib Metal Grey Tiny A
254+
AddGib = Gib
255+
GibParticle = MOSParticle
256+
CopyOf = Gib Glass Micro A
257+
Offset = Vector
258+
X = -5
259+
Y = -1
260+
AddGib = Gib
261+
GibParticle = MOSParticle
262+
CopyOf = Gib Glass Micro A
263+
Offset = Vector
264+
X = 9
265+
Y = -1
252266
AddGib = Gib
253267
GibParticle = MOSRotating
254268
CopyOf = Gib Device Small L
269+
Offset = Vector
270+
X = 5
271+
Y = 0
272+
AddGib = Gib
273+
GibParticle = MOSRotating
274+
CopyOf = Gib Device Small I
275+
Offset = Vector
276+
X = -11
277+
Y = -1
255278
GibWoundLimit = 5

Techion.rte/Devices/Weapons/LaserRifle/LaserRifle.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Update(self)
4747
local moID = SceneMan:GetMOIDPixel(hitPos.X, hitPos.Y);
4848
if moID ~= rte.NoMOID and moID ~= self.ID then
4949
local mo = ToMOSRotating(MovableMan:GetMOFromID(moID));
50-
if self.penetrationStrength/strengthFactor >= mo.Material.StructuralIntegrity then
50+
if self.penetrationStrength/strengthFactor >= mo.Material.StructuralIntegrity or math.random(self.penetrationStrength) > mo.Material.StructuralIntegrity then
5151
local moAngle = -mo.RotAngle * mo.FlipFactor;
5252

5353
local woundName = mo:GetEntryWoundPresetName();
0 Bytes
Loading

0 commit comments

Comments
 (0)