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

Commit 9186baf

Browse files
authored
Merge pull request #165 from cortex-command-community/4zk-content
5.2 additions v2: Electric Boogaloo
2 parents c9e7867 + 3633e87 commit 9186baf

File tree

71 files changed

+664
-677
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+664
-677
lines changed

Data/Base.rte/Actors/Shared/Scripts/SelfHeal.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ function Update(self)
1111
if self.healing.wound then
1212
if self.healing.timer:IsPastSimMS(self.healing.delay) then
1313
self.healing.timer:Reset();
14-
self.Health = math.min(self.Health + self.healing.wound.BurstDamage * math.sqrt(self.healing.part.DamageMultiplier), self.MaxHealth);
14+
if self.healing.part.DamageMultiplier > 1 then
15+
self.Health = math.min(self.Health + self.healing.wound.BurstDamage * math.sqrt(self.healing.part.DamageMultiplier), self.MaxHealth);
16+
else
17+
self.Health = math.min(self.Health + self.healing.wound.BurstDamage * self.healing.part.DamageMultiplier, self.MaxHealth);
18+
end
1519
self.healing.wound.ToDelete = true;
1620
self.healing.wound = nil;
1721
for wound in self.healing.part.Wounds do

Data/Base.rte/Constants.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ rte.PxTravelledPerFrame = GetPPM() * TimerMan.DeltaTimeSecs;
1414
--Materials
1515
rte.airID = 0;
1616
rte.goldID = 2;
17-
rte.doorID = 4; --Xenocronium
18-
rte.grassID = 128;
17+
rte.grassID = 128;
18+
rte.doorID = 181;

Data/Base.rte/Devices/Explosives/NapalmBomb/NapalmBomb.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ AddDevice = TDExplosive
241241
MaxVelocity = 25
242242
InheritsVel = 0
243243
LifeVariation = 0.20
244+
SpreadMode = 1
244245
AddGib = Gib
245246
GibParticle = PEmitter
246247
CopyOf = Flame Hurt Short
@@ -249,7 +250,6 @@ AddDevice = TDExplosive
249250
MaxVelocity = 40
250251
InheritsVel = 0
251252
LifeVariation = 0.20
252-
SpreadMode = 1
253253
AddGib = Gib
254254
GibParticle = PEmitter
255255
CopyOf = Ground Flame

Data/Base.rte/Devices/Explosives/RemoteExplosive/RemoteExplosive.ini

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ AddDevice = HDFirearm
6565
X = -2
6666
Y = -5
6767
EntryWound = AEmitter
68-
CopyOf = Dent Metal
68+
CopyOf = Dent Metal No Spark
6969
ExitWound = AEmitter
70-
CopyOf = Dent Metal
71-
GoldValue = 10
70+
CopyOf = Dent Metal No Spark
71+
GoldValue = 5
7272
AtomGroup = AtomGroup
7373
AutoGenerate = 1
7474
Material = Material
@@ -105,14 +105,30 @@ AddDevice = HDFirearm
105105
Y = 1
106106
RateOfFire = 60
107107
ReloadTime = 400
108+
AddGib = Gib
109+
GibParticle = MOPixel
110+
CopyOf = Spark Yellow 1
111+
MinVelocity = 10
112+
MaxVelocity = 15
113+
AddGib = Gib
114+
GibParticle = MOPixel
115+
CopyOf = Spark Yellow 2
116+
MinVelocity = 10
117+
MaxVelocity = 15
108118
AddGib = Gib
109119
GibParticle = MOSParticle
110120
CopyOf = Gib Metal Dark Micro A
121+
MinVelocity = 0
122+
MaxVelocity = 5
111123
AddGib = Gib
112124
GibParticle = MOSParticle
113125
CopyOf = Gib Metal Dark Tiny A
114-
GibWoundLimit = 3
115-
GibImpulseLimit = 30
126+
MinVelocity = 0
127+
MaxVelocity = 5
128+
GibWoundLimit = 1
129+
GibImpulseLimit = 10
130+
GibSound = SoundContainer
131+
CopyOf = Device Impact
116132

117133

118134
///////////////////////////////////////////////////////////////////////

Data/Base.rte/Devices/Explosives/RemoteExplosive/RemoteExplosiveDetonator.lua

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,24 @@ function Update(self)
1818
end
1919
if self.Magazine then
2020
if self:IsActivated() then
21-
if self.fireOn == false then
22-
if self.delayTimer:IsPastSimMS(self.detonateDelay) then
23-
self.delayTimer:Reset();
24-
self.actionPhase = self.actionPhase + 1;
25-
self.blink = false;
26-
else
27-
self.Magazine.RoundCount = math.ceil(100 * (1 - 1 * self.delayTimer.ElapsedSimTimeMS/self.detonateDelay));
28-
end
29-
if self.actionPhase >= 1 then
21+
if self.delayTimer:IsPastSimMS(self.detonateDelay) then
22+
self.delayTimer:Reset();
23+
self.actionPhase = self.actionPhase + 1;
24+
self.blink = false;
25+
else
26+
self.Magazine.RoundCount = math.ceil(100 * (1 - 1 * self.delayTimer.ElapsedSimTimeMS/self.detonateDelay));
27+
end
28+
if self.actionPhase >= 1 then
3029

31-
if RemoteExplosiveTableA and RemoteExplosiveTableB then
32-
for i = 1, #RemoteExplosiveTableA do
33-
if MovableMan:IsParticle(RemoteExplosiveTableA[i]) and RemoteExplosiveTableB[i] == self.alliedTeam then
34-
RemoteExplosiveTableA[i].Sharpness = 2;
35-
end
30+
if RemoteExplosiveTableA and RemoteExplosiveTableB then
31+
for i = 1, #RemoteExplosiveTableA do
32+
if MovableMan:IsParticle(RemoteExplosiveTableA[i]) and RemoteExplosiveTableB[i] == self.alliedTeam then
33+
RemoteExplosiveTableA[i].Sharpness = 2;
3634
end
3735
end
38-
self.detonateSound:Play(self.Pos);
39-
self.fireOn = true;
40-
self:Reload();
4136
end
37+
self.detonateSound:Play(self.Pos);
38+
self:Reload();
4239
end
4340
else
4441
self.delayTimer:Reset();

Data/Base.rte/Devices/Special/Medikit/Medikit.lua

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function Create(self)
2-
self.baseStrength = 8;
3-
self.maxStrength = self.baseStrength * 5;
2+
self.baseStrength = 40;
3+
self.maxStrength = self.baseStrength * 2;
44

55
self.confirmSound = CreateSoundContainer("Confirm", "Base.rte");
66
self.confirmSound.Immobile = false;
@@ -21,12 +21,8 @@ function OnFire(self)
2121
target = ToActor(ToMOSRotating(mo):GetRootParent());
2222
end
2323
if target and (target.Health < target.MaxHealth or target.WoundCount > 0) then
24-
local targetToughnessCoefficient = 1/(math.sqrt(math.abs(target.Mass - target.InventoryMass)) * 0.1 + target.Material.StructuralIntegrity * 0.01);
25-
local strength = self.baseStrength + (self.maxStrength - self.baseStrength) * targetToughnessCoefficient;
26-
local wounds = {};
27-
if target.WoundCount > 0 then
28-
strength = math.max(strength - target:RemoveWounds(math.ceil(strength), true, false, false), self.baseStrength);
29-
end
24+
local targetToughnessCoefficient = 1/(math.sqrt(math.abs(target.Mass - target.InventoryMass) * 0.01) + math.sqrt(target.Material.StructuralIntegrity * 0.01));
25+
local strength = math.max(self.maxStrength - target:RemoveWounds(math.ceil(self.maxStrength * targetToughnessCoefficient), true, false, false), self.baseStrength) * targetToughnessCoefficient;
3026
target.Health = math.min(target.Health + strength, target.MaxHealth);
3127

3228
target:FlashWhite(50);

Data/Base.rte/Devices/Tools/Constructor/Constructor.ini

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
////////////////////////////////////////////////////////////////////////
22
// Constructor
33

4+
45
AddPieMenu = PieMenu
56
PresetName = Constructor Pie Menu
67
AddPieSlice = PieSlice
@@ -227,13 +228,9 @@ AddTerrainObject = TerrainObject
227228
AddEffect = MOPixel
228229
PresetName = Particle Constructor Gather Material
229230
Mass = 1
230-
RestThreshold = -1
231-
PinStrength = 1
232-
LifeTime = 1000
231+
RestThreshold = 1000
232+
LifeTime = 150
233233
Sharpness = 0
234-
HitsMOs = 0
235-
GetsHitByMOs = 0
236-
ScriptPath = Base.rte/Devices/Tools/Constructor/ConstructorCollect.lua
237234
IgnoreTerrain = 1
238235
Color = Color
239236
R = 255
@@ -242,51 +239,21 @@ AddEffect = MOPixel
242239
Atom = Atom
243240
Material = Material
244241
CopyOf = Air
245-
TrailColor = Color
246-
R = 69
247-
G = 241
248-
B = 255
249-
TrailLength = 1
250242
ScreenEffect = ContentFile
251-
FilePath = Base.rte/Effects/Glows/BlueTiny.png
243+
FilePath = Base.rte/Effects/Glows/LightBlueTiny.png
252244
EffectStartTime = 0
253-
EffectStopTime = 1000
245+
EffectStopTime = 100
254246
EffectStartStrength = 1
255-
EffectStopStrength = 0.5
247+
EffectStopStrength = 0
256248

257249

258250
AddEffect = MOPixel
259251
CopyOf = Particle Constructor Gather Material
260252
PresetName = Particle Constructor Gather Material Big
261253
ScreenEffect = ContentFile
262254
FilePath = Base.rte/Effects/Glows/LightBlueSmaller3.png
263-
264-
265-
AddEffect = MOPixel
266-
CopyOf = Particle Constructor Gather Material
267-
PresetName = Particle Constructor Gather Material Gold
268-
RestThreshold = 500
269-
PinStrength = 0
270-
LifeTime = 0
271-
HitsMOs = 1
272-
Color = Color
273-
R = 249
274-
G = 243
275-
B = 56
276-
Atom = Atom
277-
Material = Material
278-
CopyOf = Gold
279-
TrailColor = Color
280-
R = 248
281-
G = 227
282-
B = 90
283-
TrailLength = 1
284-
ScreenEffect = ContentFile
285-
FilePath = Base.rte/Effects/Glows/YellowTiny.png
286-
EffectStartTime = 0
287-
EffectStopTime = 5000
288-
EffectStartStrength = 1
289-
EffectStopStrength = 0.5
255+
LifeTime = 150
256+
EffectStopTime = 150
290257

291258

292259
AddAmmo = Magazine
@@ -418,7 +385,7 @@ AddDevice = HDFirearm
418385
SubPieMenu = PieMenu
419386
CopyOf = Constructor Pie Menu
420387
MuzzleOffset = Vector
421-
X = 12
388+
X = 11
422389
Y = -1
423390
AddGib = Gib
424391
GibParticle = MOPixel

0 commit comments

Comments
 (0)