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

Commit b396c19

Browse files
committed
Merge branch 'development'
2 parents 21a8ad1 + 2f9e995 commit b396c19

File tree

2,229 files changed

+20950
-15813
lines changed

Some content is hidden

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

2,229 files changed

+20950
-15813
lines changed

.github/CODEOWNERS

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
* @administrators
77

88
#Lua Owners
9-
*.lua @scripters
9+
*.lua @lua-script-managers
1010

1111
#INI Owners
12-
*.ini @ini-coders
12+
*.ini @ini-code-managers
1313

1414
#Sprite Owners
15-
*.bmp @spriters
16-
*.png @spriters
15+
*.bmp @sprite-managers
16+
*.png @sprite-managers
1717

1818
#Audio Owners
19-
*.wav @audio-makers
20-
*.ogg @audio-makers
21-
*.flac @audio-makers
22-
*.mp3 @audio-makers
19+
*.wav @audio-managers
20+
*.ogg @audio-managers
21+
*.flac @audio-managers
22+
*.mp3 @audio-managers

.gitignore

+3-4
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@ luac.out
4545
# Manifest files
4646
*.manifest
4747

48+
**/desktop.ini
49+
4850
.vs/
4951
_Screenshots/
5052
Base.rte/Settings.ini
5153
Benchmark.rte/
5254
Scenes.rte/
5355
Metagames.rte/
54-
DedicatedServer.bat
5556
DedicatedServerDebug.bat
5657

57-
Cortex Command Experimental Multiplayer Operations Guide.docx
58-
5958
allegro.log
6059
abortscreen.bmp
6160

@@ -66,4 +65,4 @@ LogLoadingWarning.txt
6665
LogConsole.txt
6766
Console.dump.log
6867
Console.input.log
69-
Base.rte/LoadoutsP1.ini
68+
Base.rte/LoadoutsP1.ini

Base.rte/AI.ini

+9-78
Original file line numberDiff line numberDiff line change
@@ -17,66 +17,19 @@ AddActor = AHuman
1717
Health = 100
1818
AimDistance = 0
1919
Perceptiveness = 0
20-
CharHeight = 0
2120
HUDVisible = 0
2221
Head = Attachable
23-
PresetName = Null Head
24-
Mass = 0
25-
HitsMOs = 0
26-
GetsHitByMOs = 0
27-
SpriteFile = ContentFile
28-
FilePath = Base.rte/Null.png
29-
AtomGroup = AtomGroup
30-
CopyOf = Null AtomGroup
31-
FGArm = Arm
32-
PresetName = Null Arm FG
33-
Mass = 0
34-
HitsMOs = 0
35-
GetsHitByMOs = 0
36-
SpriteFile = ContentFile
37-
FilePath = Base.rte/Null.png
38-
AtomGroup = AtomGroup
39-
CopyOf = Null AtomGroup
40-
Hand = ContentFile
41-
FilePath = Base.rte/Null.png
42-
MaxLength = 0
43-
BGArm = Arm
44-
PresetName = Null Arm BG
45-
Mass = 0
46-
HitsMOs = 0
47-
GetsHitByMOs = 0
48-
SpriteFile = ContentFile
49-
FilePath = Base.rte/Null.png
50-
AtomGroup = AtomGroup
51-
CopyOf = Null AtomGroup
52-
Hand = ContentFile
53-
FilePath = Base.rte/Null.png
54-
MaxLength = 0
22+
CopyOf = Null Attachable
5523
FGLeg = Leg
56-
PresetName = Null Leg FG
57-
Mass = 0
58-
HitsMOs = 0
59-
GetsHitByMOs = 0
60-
SpriteFile = ContentFile
61-
FilePath = Base.rte/Null.png
62-
AtomGroup = AtomGroup
63-
CopyOf = Null AtomGroup
24+
CopyOf = Null Leg
6425
BGLeg = Leg
65-
PresetName = Null Leg BG
66-
Mass = 0
67-
HitsMOs = 0
68-
GetsHitByMOs = 0
69-
SpriteFile = ContentFile
70-
FilePath = Base.rte/Null.png
71-
AtomGroup = AtomGroup
72-
CopyOf = Null AtomGroup
26+
CopyOf = Null Leg
7327
HandGroup = AtomGroup
74-
PresetName = NullGroup
75-
AutoGenerate = 1
28+
CopyOf = Null AtomGroup
7629
FGFootGroup = AtomGroup
77-
CopyOf = NullGroup
30+
CopyOf = Null AtomGroup
7831
BGFootGroup = AtomGroup
79-
CopyOf = NullGroup
32+
CopyOf = Null AtomGroup
8033

8134

8235
AddDevice = TDExplosive
@@ -97,34 +50,12 @@ AddDevice = TDExplosive
9750

9851

9952
AddDevice = TDExplosive
53+
CopyOf = Alert Device 1
10054
PresetName = Alert Device 2
101-
Mass = 0
102-
RestThreshold = -500
103-
AirResistance = 1
104-
GlobalAccScalar = 0
105-
HitsMOs = 0
106-
GetsHitByMOs = 0
107-
SpriteFile = ContentFile
108-
FilePath = Base.rte/Null.png
109-
Buyable = 0
110-
AtomGroup = AtomGroup
111-
CopyOf = Null AtomGroup
11255
TriggerDelay = 450
113-
ActivatesWhenReleased = 1
11456

11557

11658
AddDevice = TDExplosive
59+
CopyOf = Alert Device 1
11760
PresetName = Alert Device 3
118-
Mass = 0
119-
RestThreshold = -500
120-
AirResistance = 1
121-
GlobalAccScalar = 0
122-
HitsMOs = 0
123-
GetsHitByMOs = 0
124-
SpriteFile = ContentFile
125-
FilePath = Base.rte/Null.png
126-
Buyable = 0
127-
AtomGroup = AtomGroup
128-
CopyOf = Null AtomGroup
129-
TriggerDelay = 600
130-
ActivatesWhenReleased = 1
61+
TriggerDelay = 600

Base.rte/AI/CrabBehaviors.lua

+7-6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function CrabBehaviors.LookForTargets(AI, Owner)
4444
FoundMO = ToACRocket(FoundMO)
4545
elseif FoundMO.ClassName == "ACDropShip" then
4646
FoundMO = ToACDropShip(FoundMO)
47-
elseif FoundMO.ClassName == "ADoor" and HumanBehaviors.GetProjectileData(Owner).pen * 0.9 > ToADoor(FoundMO).Door.Material.StructuralIntegrity then
47+
elseif FoundMO.ClassName == "ADoor" and FoundMO.Team ~= Activity.NOTEAM and Owner.AIMode ~= Actor.AIMODE_SENTRY and ToADoor(FoundMO).Door and ToADoor(FoundMO).Door:IsAttached() and HumanBehaviors.GetProjectileData(Owner).pen * 0.9 > ToADoor(FoundMO).Door.Material.StructuralIntegrity then
4848
FoundMO = ToADoor(FoundMO)
4949
elseif FoundMO.ClassName == "Actor" then
5050
FoundMO = ToActor(FoundMO)
@@ -79,7 +79,7 @@ function CrabBehaviors.LookForTargets(AI, Owner)
7979
if AI.ReloadTimer:IsPastSimMS(8000) then -- check if we need to reload
8080
AI.ReloadTimer:Reset()
8181
if Owner.FirearmNeedsReload then
82-
Owner:ReloadFirearm()
82+
Owner:ReloadFirearms()
8383
end
8484
end
8585
end
@@ -89,8 +89,9 @@ end
8989
function CrabBehaviors.Sentry(AI, Owner, Abort)
9090
local sweepUp = true
9191
local sweepDone = false
92-
local maxAng = Owner.AimRange
93-
local minAng = -maxAng
92+
-- to-do: refer to upper/lower limits!
93+
local maxAng = Owner.AimRange--Owner.AimRangeUpperLimit
94+
local minAng = -maxAng--Owner.AimRangeLowerLimit
9495
local aim
9596

9697
if AI.OldTargetPos then -- try to reacquire an old target
@@ -535,7 +536,7 @@ function CrabBehaviors.ShootTarget(AI, Owner, Abort)
535536

536537
ShootTimer:Reset()
537538
if Owner.FirearmIsEmpty then
538-
Owner:ReloadFirearm()
539+
Owner:ReloadFirearms()
539540
aimError = RangeRand(-0.14, 0.14) * AI.aimSkill
540541
aimTime = RangeRand(220, 330) * AI.aimSpeed + 50
541542
if Owner.FirearmActivationDelay > 0 then
@@ -680,7 +681,7 @@ function CrabBehaviors.ShootArea(AI, Owner, Abort)
680681
AI.fire = false
681682

682683
if Owner.FirearmIsEmpty then
683-
Owner:ReloadFirearm()
684+
Owner:ReloadFirearms()
684685
end
685686

686687
break -- stop this behavior when the mag is empty

Base.rte/AI/DropShipAI.lua

-10
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,4 @@ end
99

1010
function UpdateAI(self)
1111
self.AI:Update(self)
12-
end
13-
14-
function Update(self)
15-
--Re-orient the craft at 180 degrees to help rotational AI
16-
if self.RotAngle > math.pi then
17-
self.RotAngle = self.RotAngle - (math.pi * 2);
18-
end
19-
if self.RotAngle < -math.pi then
20-
self.RotAngle = self.RotAngle + (math.pi * 2);
21-
end
2212
end

Base.rte/AI/HumanAI.lua

-22
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
dofile("Base.rte/Constants.lua")
22
require("AI/NativeHumanAI")
3-
require("AI/HumanFunctions")
43

54
function Create(self)
65
self.AI = NativeHumanAI:Create(self);
7-
--You can turn features on and off here
8-
self.armSway = true;
9-
self.automaticEquip = true;
10-
self.alternativeGib = true;
11-
self.visibleInventory = true;
12-
end
13-
function Update(self)
14-
self.controller = self:GetController();
15-
16-
if self.alternativeGib then
17-
HumanFunctions.DoAlternativeGib(self);
18-
end
19-
if self.automaticEquip then
20-
HumanFunctions.DoAutomaticEquip(self);
21-
end
22-
if self.armSway then
23-
HumanFunctions.DoArmSway(self, (self.Health/self.MaxHealth)); --Argument: shove strength
24-
end
25-
if self.visibleInventory then
26-
HumanFunctions.DoVisibleInventory(self, false); --Argument: whether to show all items
27-
end
286
end
297
function UpdateAI(self)
308
self.AI:Update(self);

0 commit comments

Comments
 (0)