Skip to content

Commit 4a48885

Browse files
committed
Merge branch 'development' into data-restructure
2 parents bb8f721 + 6ee616a commit 4a48885

File tree

17 files changed

+113
-62
lines changed

17 files changed

+113
-62
lines changed

Data/Base.rte/AI/HumanBehaviors.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,7 @@ function HumanBehaviors.GetProjectileData(Owner)
21282128
PrjDat.vel = 100;
21292129
PrjDat.rng = math.huge;
21302130
PrjDat.pen = math.huge;
2131+
PrjData.blast = 0;
21312132
else
21322133
-- find muzzle velocity
21332134
PrjDat.vel = Weapon:GetAIFireVel();

Data/Base.rte/Activities.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ AddActivity = GAScripted
134134
CPUTeam = 1
135135
MaxPlayerSupport = 1
136136
LuaClassName = OneManArmyZeroG
137+
SceneName = Zero-G Battle
137138
DeployUnitsSwitchEnabled = 1
138139
DefaultDeployUnits = 0
139140
@@ -147,6 +148,7 @@ AddActivity = GAScripted
147148
CPUTeam = 1
148149
MaxPlayerSupport = 1
149150
LuaClassName = OneManArmyZeroG
151+
SceneName = Zero-G Battle
150152
DeployUnitsSwitchEnabled = 1
151153
DefaultDeployUnits = 0
152154

Data/Base.rte/Activities/SiteScan.lua

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ end
1111
function SiteScan:StartActivity()
1212
print("START! -- SiteScan:StartActivity()!");
1313

14+
self.GameOverPeriod = 0;
15+
1416
-- Orbit Scene Scanning vars
1517
self.ScanStage = { PRESCAN = 0, SCANNING = 1, POSTSCAN = 2, SCANSTAGECOUNT = 3 };
1618
self.CurrentScanStage = self.ScanStage.PRESCAN;
@@ -57,6 +59,13 @@ end
5759

5860
function SiteScan:EndActivity()
5961
print("END! -- SiteScan:EndActivity()!");
62+
for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do
63+
if self:PlayerActive(player) and self:PlayerHuman(player) then
64+
FrameMan:ClearScreenText(self:ScreenOfPlayer(player));
65+
self:GetBanner(GUIBanner.RED, player):ClearText();
66+
self:GetBanner(GUIBanner.YELLOW, player):ClearText();
67+
end
68+
end
6069
end
6170

6271
-----------------------------------------------------------------------------------------
@@ -86,7 +95,7 @@ function SiteScan:UpdateActivity()
8695
for team = Activity.TEAM_1, Activity.MAXTEAMCOUNT - 1 do
8796
if self:TeamActive(team) then
8897
-- Time to do a scan step?
89-
if self.ScanTimer[team]:IsPastRealMS(SceneMan:GetUnseenResolution(team).X * 2) then
98+
if self.ScanTimer[team]:IsPastRealMS(SceneMan:GetUnseenResolution(team).X) then
9099
-- Scan the column, find the end where the ray is blocked
91100
SceneMan:CastSeeRay(team, Vector(self.ScanPosX[team], 0), Vector(0, SceneMan.Scene.Height), self.ScanEndPos, 50, SceneMan:GetUnseenResolution(team).Y / 2);
92101
-- Adjust up a bit so one sees more of the sky than blackness
@@ -130,11 +139,8 @@ function SiteScan:UpdateActivity()
130139
for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do
131140
if self:PlayerActive(player) and self:PlayerHuman(player) then
132141
FrameMan:ClearScreenText(self:ScreenOfPlayer(player));
133-
--[[
134-
-- Create the landing crew and add to the override purchase list
135-
self:SetOverridePurchaseList("Infantry Brain", player);
136-
self:SetViewState(Activity.LZSELECT, player);
137-
--]]
142+
self:GetBanner(GUIBanner.RED, player):ClearText();
143+
self:GetBanner(GUIBanner.YELLOW, player):ClearText();
138144
end
139145
end
140146
self.WinnerTeam = self.ScanTeam;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ AddDevice = HDFirearm
5454
AddToGroup = Tools
5555
AddToGroup = Bombs
5656
Description = Detonates all Remote Explosives that have been placed by your team.
57-
Mass = 1.5
57+
Mass = 0.5
5858
HitsMOs = 0
5959
GetsHitByMOs = 1
6060
ScriptPath = Base.rte/Devices/Explosives/RemoteExplosive/RemoteExplosiveDetonator.lua
@@ -122,7 +122,7 @@ AddDevice = HDFirearm
122122
AddMOSRotating = MOSRotating
123123
PresetName = Remote Explosive Active
124124
Sharpness = 0
125-
Mass = 2
125+
Mass = 1
126126
HitsMOs = 0
127127
GetsHitByMOs = 0
128128
OrientToVel = 0.8
@@ -224,7 +224,7 @@ AddDevice = TDExplosive
224224
AddToGroup = Bombs
225225
AddToGroup = Tools - Breaching
226226
Description = Manually placed C4 explosives that are automatically set to operate on your team's frequency. Place the explosive against the target surface and detonate using the detonator tool. Excellent for destroying doors!
227-
Mass = 2
227+
Mass = 1
228228
HitsMOs = 1
229229
GetsHitByMOs = 1
230230
ScriptPath = Base.rte/Devices/Shared/Scripts/TrajectoryGuide.lua
@@ -326,7 +326,7 @@ AddDevice = TDExplosive
326326
AddToGroup = Bombs
327327
AddToGroup = Tools - Breaching
328328
Description = A pair of manually placed C4 explosives that are automatically set to operate on your team's frequency. Place an explosive against the target surface, then detonate it using the detonator tool. Excellent for destroying doors!
329-
Mass = 6
329+
Mass = 4
330330
HitsMOs = 1
331331
GetsHitByMOs = 1
332332
ScriptPath = Base.rte/Devices/Shared/Scripts/GrenadeBandolier.lua

Data/Base.rte/Effects/Pyro/Flame/Flame.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
function Create(self)
2-
2+
if self.PresetName:find("Short") then
3+
self.isShort = true;
4+
end
5+
if self.Throttle == nil then
6+
self.Throttle = 0;
7+
end
38
end
49

510
function Update(self)
@@ -46,7 +51,6 @@ function Update(self)
4651
particle.Lifetime = self.Lifetime * RangeRand(0.6, 0.9);
4752
particle.Vel = self.Vel + Vector(0, -3) + Vector(math.random(), 0):RadRotate(math.random() * math.pi * 2);
4853
particle.Pos = Vector(self.Pos.X, self.Pos.Y - 1);
49-
particle.isShort = true;
5054
MovableMan:AddParticle(particle);
5155
end
5256
end

Data/Base.rte/Scenes/ZeroGBattle.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ AddScene = Scene
66
PresetName = Zero-G Battle
77
Description = Float freely in the void.
88
LocationOnPlanet = Vector
9-
X = 99
10-
Y = 99
9+
X = 999999
10+
Y = 999999
1111
MetagamePlayable = 0
1212
Terrain = SLTerrain
1313
CopyOf = Null Terrain

Data/Coalition.rte/Devices/Explosives/TimedExplosive/TimedExplosive.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AddSoundContainer = SoundContainer
1616
AddEffect = MOSRotating
1717
PresetName = Timed Explosive Active
1818
Sharpness = 0
19-
Mass = 3
19+
Mass = 1.5
2020
HitsMOs = 0
2121
GetsHitByMOs = 0
2222
OrientToVel = 0.8
@@ -122,7 +122,7 @@ AddDevice = TDExplosive
122122
AddToGroup = Bombs
123123
AddToGroup = Tools - Breaching
124124
Description = Destructive plantable explosive charge. After planting, run for your life, as it explodes after 10 seconds. Excellent for destroying doors!
125-
Mass = 3
125+
Mass = 1.5
126126
RestThreshold = -1
127127
HitsMOs = 1
128128
GetsHitByMOs = 1
@@ -212,7 +212,7 @@ AddDevice = TDExplosive
212212
AddToGroup = Bombs
213213
AddToGroup = Tools - Breaching
214214
Description = A pair of destructive plantable explosive charges. After planting, run for your life, as they explode after 10 seconds. Excellent for destroying doors!
215-
Mass = 9
215+
Mass = 5
216216
HitsMOs = 1
217217
GetsHitByMOs = 1
218218
ScriptPath = Base.rte/Devices/Shared/Scripts/GrenadeBandolier.lua
@@ -225,7 +225,7 @@ AddDevice = TDExplosive
225225
AddCustomValue = NumberValue
226226
ReplenishDelay = 0
227227
AddCustomValue = NumberValue
228-
BandolierMass = 3
228+
BandolierMass = 2
229229
SpriteFile = ContentFile
230230
FilePath = Coalition.rte/Devices/Explosives/TimedExplosive/TimedExplosive.png
231231
IconFile = ContentFile

0 commit comments

Comments
 (0)