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

Commit fc5560f

Browse files
committed
Preliminary plantable explosives rework
1 parent b6a8148 commit fc5560f

20 files changed

+303
-333
lines changed

Base.rte/Devices/Explosives/AntiPersonnelMine/AntiPersonnelMine.ini

Lines changed: 80 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AddEffect = MOPixel
66
PresetName = Mine Laser Particle
77
Mass = 1
88
PinStrength = 1000
9-
LifeTime = 200
9+
LifeTime = 100
1010
Sharpness = 0
1111
HitsMOs = 0
1212
GetsHitByMOs = 0
@@ -24,81 +24,49 @@ AddEffect = MOPixel
2424
TrailLength = 1
2525
ScreenEffect = ContentFile
2626
FilePath = Base.rte/Effects/Glows/RedTiny.bmp
27-
EffectStartTime = 0
28-
EffectStopTime = 200
27+
EffectStartTime = 1
28+
EffectStopTime = 100
2929
EffectStopStrength = 0.0
3030
EffectAlwaysShows = 1
3131

3232

3333
AddEffect = MOPixel
3434
CopyOf = Mine Laser Particle
35-
PresetName = Mine Laser Particle 1
36-
EffectStartStrength = 0.1
37-
38-
39-
AddEffect = MOPixel
40-
CopyOf = Mine Laser Particle
41-
PresetName = Mine Laser Particle 2
42-
EffectStartStrength = 0.2
43-
44-
45-
AddEffect = MOPixel
46-
CopyOf = Mine Laser Particle
47-
PresetName = Mine Laser Particle 3
48-
EffectStartStrength = 0.3
49-
50-
51-
AddEffect = MOPixel
52-
CopyOf = Mine Laser Particle
53-
PresetName = Mine Laser Particle 4
54-
EffectStartStrength = 0.4
35+
PresetName = Mine Laser Beam 1
36+
ScreenEffect = ContentFile
37+
FilePath = Base.rte/Devices/Explosives/AntiPersonnelMine/Laser13.bmp
38+
EffectStartStrength = 0.5
5539

5640

5741
AddEffect = MOPixel
5842
CopyOf = Mine Laser Particle
59-
PresetName = Mine Laser Particle 5
43+
PresetName = Mine Laser Beam 2
44+
ScreenEffect = ContentFile
45+
FilePath = Base.rte/Devices/Explosives/AntiPersonnelMine/Laser17.bmp
6046
EffectStartStrength = 0.5
6147

6248

6349
AddEffect = MOPixel
6450
CopyOf = Mine Laser Particle
65-
PresetName = Mine Laser Particle 6
66-
EffectStartStrength = 0.6
51+
PresetName = Mine Laser Beam 3
52+
ScreenEffect = ContentFile
53+
FilePath = Base.rte/Devices/Explosives/AntiPersonnelMine/Laser21.bmp
54+
EffectStartStrength = 0.5
6755

6856

6957
AddEffect = MOPixel
7058
CopyOf = Mine Laser Particle
71-
PresetName = Mine Laser Particle 7
72-
EffectStartStrength = 0.7
73-
74-
75-
AddEffect = AEmitter
76-
PresetName = Mine Sound Detonate
77-
Mass = 0
78-
PinStrength = 4000
79-
LifeTime = 5
80-
HitsMOs = 0
81-
GetsHitByMOs = 0
82-
SpriteFile = ContentFile
83-
FilePath = Base.rte/Null.bmp
84-
AtomGroup = AtomGroup
85-
CopyOf = Null AtomGroup
86-
JointStrength = 10000
87-
JointStiffness = 1
88-
BurstSound = Sound
89-
AddSample = ContentFile
90-
FilePath = Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineDetonate.wav
91-
BurstTriggered = 1
92-
EmissionEnabled = 1
93-
Flash = None
94-
FlashOnlyOnBurst = 0
59+
PresetName = Mine Laser Beam 3
60+
ScreenEffect = ContentFile
61+
FilePath = Base.rte/Devices/Explosives/AntiPersonnelMine/Laser25.bmp
62+
EffectStartStrength = 0.5
9563

9664

9765
AddEffect = MOSRotating
98-
PresetName = Particle Mine
66+
PresetName = Anti Personnel Mine Active
9967
Mass = 3
10068
HitsMOs = 0
101-
GetsHitByMOs = 0
69+
GetsHitByMOs = 1
10270
Sharpness = -1
10371
ScriptPath = Base.rte/Devices/Explosives/AntiPersonnelMine/MineSet.lua
10472
SpriteFile = ContentFile
@@ -107,6 +75,10 @@ AddEffect = MOSRotating
10775
SpriteOffset = Vector
10876
X = -4
10977
Y = -3
78+
EntryWound = AEmitter
79+
CopyOf = Dent Metal No Spark
80+
ExitWound = AEmitter
81+
CopyOf = Dent Metal No Spark
11082
AtomGroup = AtomGroup
11183
AutoGenerate = 1
11284
Material = Material
@@ -121,68 +93,68 @@ AddEffect = MOSRotating
12193
Depth = 10
12294
DeepCheck = 0
12395
GibSound = Sound
124-
AddSample = ContentFile
125-
Path = Base.rte/Sounds/Explosions/Explode1.wav
12696
AddSample = ContentFile
12797
Path = Base.rte/Sounds/Explosions/Explode2.wav
128-
AddGib = Gib
129-
GibParticle = MOPixel
130-
CopyOf = Glow Explosion Huge
131-
Count = 1
132-
Spread = 2.25
133-
MaxVelocity = 0.1
134-
MinVelocity = 0
135-
InheritsVel = 0
13698
AddGib = Gib
13799
GibParticle = MOSParticle
138-
CopyOf = Side Thruster Blast Ball 1
100+
CopyOf = Side Thruster Blast Ball 1 Glow
139101
Count = 10
140-
MinVelocity = 50
141-
MaxVelocity = 75
102+
Spread = 3.14
103+
MaxVelocity = 10
104+
MinVelocity = 5
105+
LifeVariation = 0.30
106+
AddGib = Gib
107+
GibParticle = MOSParticle
108+
CopyOf = Gib Metal Dark Micro A
109+
Count = 3
110+
Spread = 3.14
111+
MaxVelocity = 10
112+
MinVelocity = 1
113+
AddGib = Gib
114+
GibParticle = MOSParticle
115+
CopyOf = Grenade Smoke 1
116+
Count = 20
117+
Spread = 3.14
118+
MaxVelocity = 80
119+
MinVelocity = 40
120+
LifeVariation = 0.50
121+
AddGib = Gib
122+
GibParticle = MOSParticle
123+
CopyOf = Grenade Smoke 2
124+
Count = 20
125+
Spread = 3.14
126+
MaxVelocity = 80
127+
MinVelocity = 40
128+
LifeVariation = 0.50
142129
AddGib = Gib
143130
GibParticle = MOPixel
144131
CopyOf = Grenade Fragment Gray
145-
Count = 32
146-
Spread = 3.1
147-
MinVelocity = 50
148-
MaxVelocity = 60
132+
Count = 20
133+
Spread = 3.14
134+
MaxVelocity = 80
135+
MinVelocity = 60
149136
AddGib = Gib
150137
GibParticle = MOPixel
151138
CopyOf = Grenade Fragment Yellow
152-
Count = 28
153-
Spread = 3.1
154-
MinVelocity = 50
155-
MaxVelocity = 60
139+
Count = 20
140+
Spread = 3.14
141+
MaxVelocity = 80
142+
MinVelocity = 60
156143
AddGib = Gib
157144
GibParticle = MOPixel
158-
CopyOf = Air Blast
159-
Count = 50
160-
MinVelocity = 50
161-
MaxVelocity = 75
162-
AddGib = Gib
163-
GibParticle = MOSParticle
164-
CopyOf = Explosion Smoke 1
165-
Count = 15
166-
Spread = 3.1
167-
MaxVelocity = 10
168-
MinVelocity = 0
169-
LifeVariation = 0.50
170-
InheritsVel = 1
171-
AddGib = Gib
172-
GibParticle = MOSParticle
173-
CopyOf = Explosion Smoke 2
174-
Count = 10
175-
Spread = 3.1
176-
MaxVelocity = 12
177-
MinVelocity = 0
178-
LifeVariation = 0.50
179-
InheritsVel = 1
145+
CopyOf = Air Blast Scripted
146+
Spread = 0
147+
MaxVelocity = 80
148+
MinVelocity = 80
149+
InheritsVel = 0
150+
GibImpulseLimit = 1000
151+
GibWoundLimit = 10
180152

181153

182154
AddDevice = TDExplosive
183155
PresetName = Anti Personnel Mine
184156
AddToGroup = Bombs
185-
Description = A plantable mine that detonates when enemy units interrupt its laser. Disarm with the Mine Disarmer. This mine must be placed by an actor before it detects enemies!
157+
Description = A plantable mine that detonates when enemy movement interrupts its laser. Disarm with the Disarmer. This mine must be activated before it can detect enemies!
186158
Mass = 3
187159
RestThreshold = -500
188160
HitsMOs = 0
@@ -216,15 +188,15 @@ AddDevice = TDExplosive
216188
JointStiffness = 0.5
217189
DrawAfterParent = 1
218190
StanceOffset = Vector
219-
X = -12
220-
Y = -5
191+
X = 4
192+
Y = 4
221193
StartThrowOffset = Vector
222-
X = -12
223-
Y = -5
194+
X = 7
195+
Y = 2
224196
EndThrowOffset = Vector
225-
X = -12
226-
Y = -5
227-
MinThrowVel = 0
197+
X = 4
198+
Y = 4
199+
MinThrowVel = 1
228200
MaxThrowVel = 10
229201
TriggerDelay = 10000000
230202
ActivatesWhenReleased = 0
@@ -244,17 +216,17 @@ AddDevice = TDExplosive
244216
MinVelocity = 8
245217
AddGib = Gib
246218
GibParticle = MOSParticle
247-
CopyOf = Gib Metal Rust Micro A
248-
Count = 10
219+
CopyOf = Gib Metal Grey Tiny A
220+
Count = 6
249221
Spread = 2.25
250222
MaxVelocity = 15
251223
MinVelocity = 5
252224
AddGib = Gib
253225
GibParticle = MOSParticle
254-
CopyOf = Gib Metal Grey Micro A
255-
Count = 6
226+
CopyOf = Gib Metal Dark Micro A
227+
Count = 4
256228
Spread = 2.25
257229
MaxVelocity = 15
258230
MinVelocity = 5
259231
GibImpulseLimit = 10000
260-
GibWoundLimit = 3
232+
GibWoundLimit = 5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Base.rte/Devices/Explosives/AntiPersonnelMine/MineDeploy.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ function Update(self)
1515

1616
if self:IsActivated() and self.ID == self.RootID then
1717

18-
local mine = CreateMOSRotating("Particle Mine");
18+
local mine = CreateMOSRotating("Anti Personnel Mine Active");
1919
mine.Pos = self.Pos;
2020
mine.Vel = self.Vel;
2121
mine.Sharpness = self.alliedTeam;
2222
MovableMan:AddParticle(mine);
2323

2424
self.ToDelete = true;
25-
2625
end
27-
2826
end

0 commit comments

Comments
 (0)