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

Commit ae1e2d5

Browse files
GacyrGacyr
authored andcommitted
Merge branch 'development' into pawnis-door-sounds
2 parents 0fbfed7 + 02175a6 commit ae1e2d5

File tree

12 files changed

+14
-38
lines changed

12 files changed

+14
-38
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Scenes.rte/
4949
Metagames.rte/
5050
Microsoft.VC90.CRT.manifest
5151
DedicatedServer.bat
52+
DedicatedServerDebug.bat
5253

5354
Cortex Command Experimental Multiplayer Operations Guide.docx
5455

Base.rte/AI/NativeCrabAI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function NativeCrabAI:Create(Owner)
2323
Members.AlarmTimer:SetSimTimeLimitMS(500)
2424

2525
-- check if this team is controlled by a human
26-
if ActivityMan:GetActivity():IsPlayerTeam(Owner.Team) then
26+
if ActivityMan:GetActivity():IsHumanTeam(Owner.Team) then
2727
Members.isPlayerOwned = true
2828
Members.PlayerInterferedTimer = Timer()
2929
Members.PlayerInterferedTimer:SetSimTimeLimitMS(500)

Base.rte/AI/NativeDropShipAI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function NativeDropShipAI:Create(Owner)
3636

3737
-- Check if this team is controlled by a human
3838
if Owner.AIMode == Actor.AIMODE_DELIVER and Owner:IsInventoryEmpty() and
39-
ActivityMan:GetActivity():IsPlayerTeam(Owner.Team)
39+
ActivityMan:GetActivity():IsHumanTeam(Owner.Team)
4040
then
4141
Owner.AIMode = Actor.AIMODE_STAY -- Stop the craft from returning to orbit immediately
4242
end

Base.rte/AI/NativeHumanAI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function NativeHumanAI:Create(Owner)
4444
end
4545

4646
-- check if this team is controlled by a human
47-
if ActivityMan:GetActivity():IsPlayerTeam(Owner.Team) then
47+
if ActivityMan:GetActivity():IsHumanTeam(Owner.Team) then
4848
Members.isPlayerOwned = true
4949
Members.PlayerInterferedTimer = Timer()
5050
Members.PlayerInterferedTimer:SetSimTimeLimitMS(500)

Base.rte/AI/NativeTurretAI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function NativeTurretAI:Create(Owner)
2121
Members.AlarmTimer:SetSimTimeLimitMS(500)
2222

2323
-- check if this team is controlled by a human
24-
if ActivityMan:GetActivity():IsPlayerTeam(Owner.Team) then
24+
if ActivityMan:GetActivity():IsHumanTeam(Owner.Team) then
2525
Members.isPlayerOwned = true
2626
Members.PlayerInterferedTimer = Timer()
2727
Members.PlayerInterferedTimer:SetSimTimeLimitMS(500)

Base.rte/AI/RocketAI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Create(self)
5353

5454
-- Check if this team is controlled by a human
5555
if self.AIMode == Actor.AIMODE_DELIVER and self:IsInventoryEmpty() and
56-
ActivityMan:GetActivity():IsPlayerTeam(self.Team)
56+
ActivityMan:GetActivity():IsHumanTeam(self.Team)
5757
then
5858
self.AIMode = Actor.AIMODE_STAY; -- Stop the craft from returning to orbit immediately
5959
end

Base.rte/Activities.ini

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ AddActivity = GATutorial
66
PresetName = Tutorial Mission
77
SceneName = Tutorial Bunker
88
InCampaignStage = 1
9-
PlayerCount = 1
109
TeamOfPlayer1 = 0
1110
TeamOfPlayer2 = 1
12-
FundsOfTeam1 = 1500
11+
Team1Funds = 1500
1312
CPUTeam = 1
1413
MaxPlayerSupport = 1
1514

@@ -19,12 +18,10 @@ AddActivity = GAScripted
1918
Description = Survive waves of AI-controlled enemies until they run out of gold, skirmish against human players, or both! Adjust the Difficulty to change AI funds and spawn frequency.
2019
SceneName = Ketanot Hills
2120
ScriptFile = Base.rte/Activities/SkirmishDefense.lua
22-
PlayerCount = 3
2321
TeamOfPlayer1 = 0
2422
TeamOfPlayer2 = 1
2523
TeamOfPlayer3 = 2
2624
TeamOfPlayer4 = 3
27-
TeamCount = 4
2825
MinTeamsRequired = 2
2926
LuaClassName = SkirmishDefense
3027
DeployUnitsSwitchEnabled = 1
@@ -36,12 +33,10 @@ AddActivity = GAScripted
3633
Description = Build a bunker and defend it against increasingly longer waves of AI-controlled enemies, with time to repair in between! Adjust the Difficulty to change wave difficulty.
3734
SceneName = Ketanot Hills
3835
ScriptFile = Base.rte/Activities/WaveDefense.lua
39-
PlayerCount = 4
4036
TeamOfPlayer1 = 0
4137
TeamOfPlayer2 = 0
4238
TeamOfPlayer3 = 0
4339
TeamOfPlayer4 = 0
44-
TeamCount = 2
4540
CPUTeam = 1
4641
MinTeamsRequired = 2
4742
LuaClassName = WaveDefense
@@ -54,9 +49,7 @@ AddActivity = GAScripted
5449
Description = Survive with only one actor and no backups!
5550
SceneName = Ketanot Hills
5651
ScriptFile = Base.rte/Activities/OneManArmy.lua
57-
PlayerCount = 1
5852
TeamOfPlayer1 = 0
59-
TeamCount = 2
6053
CPUTeam = 1
6154
MaxPlayerSupport = 1
6255
LuaClassName = OneManArmy
@@ -69,9 +62,7 @@ AddActivity = GAScripted
6962
Description = Build a base, then kill all the enemies!
7063
SceneName = Ketanot Hills
7164
ScriptFile = Base.rte/Activities/Massacre.lua
72-
PlayerCount = 1
7365
TeamOfPlayer1 = 0
74-
TeamCount = 2
7566
CPUTeam = 1
7667
LuaClassName = Massacre
7768
DeployUnitsSwitchEnabled = 1
@@ -83,9 +74,7 @@ AddActivity = GAScripted
8374
Description = Build a base, then survive until the time is up!
8475
SceneName = Ketanot Hills
8576
ScriptFile = Base.rte/Activities/Survival.lua
86-
PlayerCount = 1
8777
TeamOfPlayer1 = 0
88-
TeamCount = 2
8978
CPUTeam = 1
9079
LuaClassName = Survival
9180
DeployUnitsSwitchEnabled = 1
@@ -99,7 +88,6 @@ AddActivity = GAScripted
9988
ScriptFile = Base.rte/Activities/BrainVsBrain.lua
10089
InCampaignStage = 1
10190
LuaClassName = BrainvsBrain
102-
TeamCount = 2
10391
Team1Name = Red Team
10492
Team2Name = Green Team
10593
MinTeamsRequired = 1
@@ -110,9 +98,7 @@ AddActivity = GAScripted
11098
Description = Build a base, then dig up as much gold as you can!
11199
SceneName = Ketanot Hills
112100
ScriptFile = Base.rte/Activities/Harvester.lua
113-
PlayerCount = 1
114101
TeamOfPlayer1 = 0
115-
TeamCount = 2
116102
CPUTeam = 1
117103
LuaClassName = Harvester
118104
DeployUnitsSwitchEnabled = 1
@@ -127,7 +113,6 @@ AddActivity = GAScripted
127113
InCampaignStage = 1
128114
LuaClassName = BunkerBreach
129115
CPUTeam = 1
130-
TeamCount = 1
131116
Team1Name = Players
132117
Team2Name = AI
133118
MinTeamsRequired = 1
@@ -149,7 +134,6 @@ AddActivity = GAScripted
149134
InCampaignStage = 1
150135
LuaClassName = Siege
151136
CPUTeam = 0
152-
TeamCount = 2
153137
Team1Name = AI
154138
Team2Name = Players
155139
MinTeamsRequired = 1
@@ -169,9 +153,7 @@ AddActivity = GAScripted
169153
Description = Keep your rocket alive until time is up!
170154
SceneName = Ketanot Hills
171155
ScriptFile = Base.rte/Activities/KeepieUppie.lua
172-
PlayerCount = 1
173156
TeamOfPlayer1 = 0
174-
TeamCount = 2
175157
CPUTeam = 1
176158
MaxPlayerSupport = 1
177159
LuaClassName = KeepieUppie
@@ -184,9 +166,7 @@ AddActivity = GAScripted
184166
Description = Survive with only one actor and no backups! Enemy will only use diggers, but the harder the difficulty the less potent weaponry you start out with and the longer you have to survive.
185167
SceneName = Fredeleig Plains
186168
ScriptFile = Base.rte/Activities/OneManArmyDiggers.lua
187-
PlayerCount = 1
188169
TeamOfPlayer1 = 0
189-
TeamCount = 2
190170
CPUTeam = 1
191171
MaxPlayerSupport = 1
192172
LuaClassName = OneManArmy
@@ -205,7 +185,6 @@ AddActivity = GAScripted
205185
TeamOfPlayer2 = 0
206186
TeamOfPlayer3 = 0
207187
TeamOfPlayer4 = 0
208-
TeamCount = 1
209188
MinTeamsRequired = 1
210189
Team1Funds = 100000
211190
DeployUnitsSwitchEnabled = 1
@@ -220,7 +199,6 @@ AddActivity = GAScripted
220199
TeamOfPlayer2 = 0
221200
TeamOfPlayer3 = 0
222201
TeamOfPlayer4 = 0
223-
TeamCount = 1
224202
MinTeamsRequired = 1
225203
Team1Funds = 100000
226204
DeployUnitsSwitchEnabled = 1

Base.rte/Scripts/Examples/MetaFightBehaviorExample.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ function MetaScript:PauseScript()
6565
end
6666
end
6767

68-
function MetaScript:CraftEnteredOrbit()
68+
function MetaScript:CraftEnteredOrbit(orbitedCraft)
6969
if SettingsMan.PrintDebugInfo then
7070
print (self.PresetName.." Orbited")
71-
print (self.OrbitedCraft)
71+
print (orbitedCraft)
7272
end
7373
end

Base.rte/Scripts/Global/ConstantGoldIncome.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function ConstantGoldIncomeScript:UpdateScript()
88
for team = Activity.TEAM_1, Activity.MAXTEAMCOUNT - 1 do
99
local activity = ActivityMan:GetActivity();
1010
if activity then
11-
if activity:IsPlayerTeam(team) then
11+
if activity:IsHumanTeam(team) then
1212
activity:SetTeamFunds(activity:GetTeamFunds(team) + (self.updateInterval / 1000 * self.goldPerSecond), team);
1313
end
1414
end

Missions.rte/Activities/Maginot.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ end
377377
-- Craft Entered Orbit
378378
-----------------------------------------------------------------------------------------
379379

380-
function MaginotMission:CraftEnteredOrbit()
380+
function MaginotMission:CraftEnteredOrbit(orbitedCraft)
381381
--If a craft leaves with the brain robot...
382-
if self.OrbitedCraft:HasObjectInGroup("Brains") then
382+
if orbitedCraft:HasObjectInGroup("Brains") then
383383
--Team 1 wins!
384384
self.WinnerTeam = Activity.TEAM_1
385385
ActivityMan:EndActivity()

0 commit comments

Comments
 (0)