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

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
garethyr committed Mar 1, 2022
2 parents 21a8ad1 + 2f9e995 commit b396c19
Show file tree
Hide file tree
Showing 2,229 changed files with 20,950 additions and 15,813 deletions.
16 changes: 8 additions & 8 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
* @administrators

#Lua Owners
*.lua @scripters
*.lua @lua-script-managers

#INI Owners
*.ini @ini-coders
*.ini @ini-code-managers

#Sprite Owners
*.bmp @spriters
*.png @spriters
*.bmp @sprite-managers
*.png @sprite-managers

#Audio Owners
*.wav @audio-makers
*.ogg @audio-makers
*.flac @audio-makers
*.mp3 @audio-makers
*.wav @audio-managers
*.ogg @audio-managers
*.flac @audio-managers
*.mp3 @audio-managers
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ luac.out
# Manifest files
*.manifest

**/desktop.ini

.vs/
_Screenshots/
Base.rte/Settings.ini
Benchmark.rte/
Scenes.rte/
Metagames.rte/
DedicatedServer.bat
DedicatedServerDebug.bat

Cortex Command Experimental Multiplayer Operations Guide.docx

allegro.log
abortscreen.bmp

Expand All @@ -66,4 +65,4 @@ LogLoadingWarning.txt
LogConsole.txt
Console.dump.log
Console.input.log
Base.rte/LoadoutsP1.ini
Base.rte/LoadoutsP1.ini
87 changes: 9 additions & 78 deletions Base.rte/AI.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,66 +17,19 @@ AddActor = AHuman
Health = 100
AimDistance = 0
Perceptiveness = 0
CharHeight = 0
HUDVisible = 0
Head = Attachable
PresetName = Null Head
Mass = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
FGArm = Arm
PresetName = Null Arm FG
Mass = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
Hand = ContentFile
FilePath = Base.rte/Null.png
MaxLength = 0
BGArm = Arm
PresetName = Null Arm BG
Mass = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
Hand = ContentFile
FilePath = Base.rte/Null.png
MaxLength = 0
CopyOf = Null Attachable
FGLeg = Leg
PresetName = Null Leg FG
Mass = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
CopyOf = Null Leg
BGLeg = Leg
PresetName = Null Leg BG
Mass = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
CopyOf = Null Leg
HandGroup = AtomGroup
PresetName = NullGroup
AutoGenerate = 1
CopyOf = Null AtomGroup
FGFootGroup = AtomGroup
CopyOf = NullGroup
CopyOf = Null AtomGroup
BGFootGroup = AtomGroup
CopyOf = NullGroup
CopyOf = Null AtomGroup


AddDevice = TDExplosive
Expand All @@ -97,34 +50,12 @@ AddDevice = TDExplosive


AddDevice = TDExplosive
CopyOf = Alert Device 1
PresetName = Alert Device 2
Mass = 0
RestThreshold = -500
AirResistance = 1
GlobalAccScalar = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
Buyable = 0
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
TriggerDelay = 450
ActivatesWhenReleased = 1


AddDevice = TDExplosive
CopyOf = Alert Device 1
PresetName = Alert Device 3
Mass = 0
RestThreshold = -500
AirResistance = 1
GlobalAccScalar = 0
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Null.png
Buyable = 0
AtomGroup = AtomGroup
CopyOf = Null AtomGroup
TriggerDelay = 600
ActivatesWhenReleased = 1
TriggerDelay = 600
13 changes: 7 additions & 6 deletions Base.rte/AI/CrabBehaviors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function CrabBehaviors.LookForTargets(AI, Owner)
FoundMO = ToACRocket(FoundMO)
elseif FoundMO.ClassName == "ACDropShip" then
FoundMO = ToACDropShip(FoundMO)
elseif FoundMO.ClassName == "ADoor" and HumanBehaviors.GetProjectileData(Owner).pen * 0.9 > ToADoor(FoundMO).Door.Material.StructuralIntegrity then
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
FoundMO = ToADoor(FoundMO)
elseif FoundMO.ClassName == "Actor" then
FoundMO = ToActor(FoundMO)
Expand Down Expand Up @@ -79,7 +79,7 @@ function CrabBehaviors.LookForTargets(AI, Owner)
if AI.ReloadTimer:IsPastSimMS(8000) then -- check if we need to reload
AI.ReloadTimer:Reset()
if Owner.FirearmNeedsReload then
Owner:ReloadFirearm()
Owner:ReloadFirearms()
end
end
end
Expand All @@ -89,8 +89,9 @@ end
function CrabBehaviors.Sentry(AI, Owner, Abort)
local sweepUp = true
local sweepDone = false
local maxAng = Owner.AimRange
local minAng = -maxAng
-- to-do: refer to upper/lower limits!
local maxAng = Owner.AimRange--Owner.AimRangeUpperLimit
local minAng = -maxAng--Owner.AimRangeLowerLimit
local aim

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

ShootTimer:Reset()
if Owner.FirearmIsEmpty then
Owner:ReloadFirearm()
Owner:ReloadFirearms()
aimError = RangeRand(-0.14, 0.14) * AI.aimSkill
aimTime = RangeRand(220, 330) * AI.aimSpeed + 50
if Owner.FirearmActivationDelay > 0 then
Expand Down Expand Up @@ -680,7 +681,7 @@ function CrabBehaviors.ShootArea(AI, Owner, Abort)
AI.fire = false

if Owner.FirearmIsEmpty then
Owner:ReloadFirearm()
Owner:ReloadFirearms()
end

break -- stop this behavior when the mag is empty
Expand Down
10 changes: 0 additions & 10 deletions Base.rte/AI/DropShipAI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,4 @@ end

function UpdateAI(self)
self.AI:Update(self)
end

function Update(self)
--Re-orient the craft at 180 degrees to help rotational AI
if self.RotAngle > math.pi then
self.RotAngle = self.RotAngle - (math.pi * 2);
end
if self.RotAngle < -math.pi then
self.RotAngle = self.RotAngle + (math.pi * 2);
end
end
22 changes: 0 additions & 22 deletions Base.rte/AI/HumanAI.lua
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
dofile("Base.rte/Constants.lua")
require("AI/NativeHumanAI")
require("AI/HumanFunctions")

function Create(self)
self.AI = NativeHumanAI:Create(self);
--You can turn features on and off here
self.armSway = true;
self.automaticEquip = true;
self.alternativeGib = true;
self.visibleInventory = true;
end
function Update(self)
self.controller = self:GetController();

if self.alternativeGib then
HumanFunctions.DoAlternativeGib(self);
end
if self.automaticEquip then
HumanFunctions.DoAutomaticEquip(self);
end
if self.armSway then
HumanFunctions.DoArmSway(self, (self.Health/self.MaxHealth)); --Argument: shove strength
end
if self.visibleInventory then
HumanFunctions.DoVisibleInventory(self, false); --Argument: whether to show all items
end
end
function UpdateAI(self)
self.AI:Update(self);
Expand Down
Loading

0 comments on commit b396c19

Please sign in to comment.