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

Commit 1a21d76

Browse files
committed
Base Frag Grenade has a totally cool pin effect now
1 parent c8320a2 commit 1a21d76

12 files changed

+40
-6
lines changed

Base.rte/Devices/Explosives/FragGrenade/FragGrenade.ini

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
///////////////////////////////////////////////////////////////////////
2+
// Frag Grenade Effects
3+
4+
5+
AddAmmo = MOSParticle
6+
PresetName = Frag Grenade Pin
7+
Mass = 0.05
8+
HitsMOs = 0
9+
GetsHitByMOs = 0
10+
RestThreshold = 1000
11+
SpriteFile = ContentFile
12+
FilePath = Base.rte/Devices/Explosives/FragGrenade/FragGrenadePin.bmp
13+
FrameCount = 8
14+
SpriteOffset = Vector
15+
X = -2
16+
Y = -2
17+
AngularVel = 6
18+
Atom = Atom
19+
Material = Material
20+
PresetName = Scrap Metal
21+
TrailLength = 0
22+
Framerate = 10
23+
24+
125
///////////////////////////////////////////////////////////////////////
226
// Frag Grenade
327

@@ -6,16 +30,17 @@ AddDevice = TDExplosive
630
PresetName = Frag Grenade
731
AddToGroup = Bombs - Grenades
832
AddToGroup = Bombs
9-
Mass = 2
33+
Mass = 1
1034
RestThreshold = -500
1135
HitsMOs = 1
1236
GetsHitByMOs = 1
37+
ScriptPath = Base.rte/Devices/Explosives/FragGrenade/FragGrenade.lua
1338
SpriteFile = ContentFile
1439
FilePath = Base.rte/Devices/Explosives/FragGrenade/FragGrenade.bmp
15-
FrameCount = 1
40+
FrameCount = 2
1641
SpriteOffset = Vector
17-
X = -3
18-
Y = -4
42+
X = -2.5
43+
Y = -3.5
1944
EntryWound = AEmitter
2045
CopyOf = Dent Metal
2146
ExitWound = AEmitter
@@ -38,8 +63,6 @@ AddDevice = TDExplosive
3863
JointStiffness = 0.5
3964
DrawAfterParent = 0
4065
DetonationSound = Sound
41-
AddSample = ContentFile
42-
Path = Base.rte/Sounds/Explosions/Explode1.wav
4366
AddSample = ContentFile
4467
Path = Base.rte/Sounds/Explosions/Explode2.wav
4568
ActivationSound = Sound
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function Update(self)
2+
if self:IsActivated() then
3+
if not self.pin then
4+
self.pin = CreateMOSParticle("Frag Grenade Pin");
5+
self.pin.Pos = self.Pos;
6+
self.pin.Vel = self.Vel /2 + Vector(self.Vel.Magnitude /4, 0):RadRotate(6.28 * math.random());
7+
MovableMan:AddParticle(self.pin);
8+
end
9+
self.Frame = 1;
10+
end
11+
end
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)