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

Commit 07b5e84

Browse files
committed
Missions.rte fixes + disable WIP factions
1 parent 84f7a63 commit 07b5e84

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Missions.rte/Activities/Dummy Assault.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ function DummyAssault:UpdateActivity()
160160

161161
if MovableMan:GetTeamMOIDCount(Activity.TEAM_2) < rte.DefenderMOIDMax then
162162
local actor
163-
if math.random() > 0.05 then
164-
actor = RandomAHuman("Infantry Light", self.CPUTech)
163+
if math.random() > self:GetCrabToHumanSpawnRatio(PresetMan:GetModuleID(self.CPUTech)) then
164+
actor = RandomAHuman("Actors - Light", self.CPUTech)
165165
if math.random() > 0.5 then
166166
actor.AIMode = Actor.AIMODE_BRAINHUNT
167167
if math.random() > 0.5 then
168-
actor:AddInventoryItem(RandomHDFirearm("Diggers", self.CPUTech))
168+
actor:AddInventoryItem(RandomHDFirearm("Tools - Diggers", self.CPUTech))
169169
end
170170
else
171171
actor.AIMode = Actor.AIMODE_GOTO

Missions.rte/Activities/Maginot.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ function MaginotMission:UpdateActivity()
244244
if math.random() > 0.4 then
245245
dummya:AddInventoryItem(RandomTDExplosive("Bombs - Grenades", self.EnemyTech))
246246
else
247-
local digger = RandomHDFirearm("Diggers", self.EnemyTech)
247+
local digger = RandomHDFirearm("Tools - Diggers", self.EnemyTech)
248248
if not digger then
249-
digger = RandomHDFirearm("Diggers", "Base.rte")
249+
digger = RandomHDFirearm("Tools - Diggers", "Base.rte")
250250
end
251251
if digger then
252252
dummya:AddInventoryItem(digger)
@@ -269,9 +269,9 @@ function MaginotMission:UpdateActivity()
269269
if math.random() > 0.4 then
270270
dummyb:AddInventoryItem(RandomTDExplosive("Bombs - Grenades", self.EnemyTech))
271271
else
272-
local digger = RandomHDFirearm("Diggers", self.EnemyTech)
272+
local digger = RandomHDFirearm("Tools - Diggers", self.EnemyTech)
273273
if not digger then
274-
digger = RandomHDFirearm("Diggers", "Base.rte")
274+
digger = RandomHDFirearm("Tools - Diggers", "Base.rte")
275275
end
276276
if digger then
277277
dummyb:AddInventoryItem(digger)
@@ -302,14 +302,14 @@ function MaginotMission:UpdateActivity()
302302
if MovableMan:GetTeamMOIDCount(Activity.TEAM_2) <= rte.DefenderMOIDMax then
303303
local actor
304304
local y = math.random()
305-
if y > 0.05 then
305+
if y > self:GetCrabToHumanSpawnRatio(PresetMan:GetModuleID(self.EnemyTech)) then
306306
actor = RandomAHuman("Actors - Light", self.EnemyTech)
307307
if actor then
308308
actor:AddInventoryItem(RandomHDFirearm("Weapons - Primary", self.EnemyTech))
309309
if math.random() > 0.1 then
310310
actor:AddInventoryItem(RandomTDExplosive("Bombs - Grenades", self.EnemyTech))
311311
else
312-
actor:AddInventoryItem(RandomHDFirearm("Diggers", self.EnemyTech))
312+
actor:AddInventoryItem(RandomHDFirearm("Tools - Diggers", self.EnemyTech))
313313
end
314314
end
315315
else

Missions.rte/Activities/ZombieCave.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function ZombieCaveMission:MakeEnemy(whichMode)
143143
passenger:AddInventoryItem(RandomHDFirearm("Weapons - Primary", self.CPUTechName));
144144
passenger:AddInventoryItem(RandomHDFirearm("Weapons - Secondary", self.CPUTechName));
145145
if PosRand() < 0.25 then
146-
passenger:AddInventoryItem(RandomHDFirearm("Diggers", self.CPUTechName));
146+
passenger:AddInventoryItem(RandomHDFirearm("Tools - Diggers", self.CPUTechName));
147147
end
148148
end
149149

MuIlaak.rte/Index.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DataModule
2-
ModuleName = Mu-Ilaak Tech
2+
ModuleName = Mu-Ilaak
33
IconFile = ContentFile
44
Path = MuIlaak.rte/ModuleIcon.bmp
55
Description = TBA

Uzira.rte/Index.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DataModule
2-
ModuleName = Uzira Tech
2+
ModuleName = Uzira
33
IconFile = ContentFile
44
Path = Uzira.rte/ModuleIcon.bmp
55
Description = TBA

0 commit comments

Comments
 (0)