Skip to content

Commit 06946a7

Browse files
committed
Merge branch 'development' into browncoat-mission
2 parents 1de0ea3 + afb20b7 commit 06946a7

File tree

583 files changed

+261867
-10339
lines changed

Some content is hidden

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

583 files changed

+261867
-10339
lines changed

.github/workflows/meson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
echo "::group::Installing pkg-config"
179179
sudo apt install pkg-config
180180
echo "::group::Installing mac deps"
181-
omp install libsdl2 onetbb lz4 libpng minizip luajit flac
181+
omp install libsdl2 libsdl2_image onetbb lz4 libpng minizip luajit flac
182182
echo "OSXCROSS_PKG_CONFIG_PATH=${{env.OSXCROSS_TARGET}}/macports/pkgs/opt/local/libexec/onetbb/lib/pkgconfig" >> $GITHUB_ENV
183183
echo "::endgroup::"
184184
echo "::group::Installing meson"

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"request": "launch",
1414
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/CortexCommand",
1515
"cwd": "${workspaceFolder}",
16-
"preLaunchTask": "meson Build Release",
16+
"preLaunchTask": "Meson: Build all targets",
1717
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
1818
"presentation": {
1919
"group": "unix"

CHANGELOG.md

Lines changed: 16 additions & 2 deletions

Data/Base.rte/AI/SharedBehaviors.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -864,28 +864,28 @@ function SharedBehaviors.GoToWpt(AI, Owner, Abort)
864864

865865
-- test jumping
866866
local JetAccel = Accel + Vector(-jetStrength, 0):RadRotate(Owner.RotAngle+1.375*math.pi+Owner:GetAimAngle(false)*0.25);
867-
local JumpPos = Owner.Head.Pos + PixelVel + JetAccel * (t*t*0.5);
867+
local JumpPos = (Owner.Head and Owner.Head.Pos or Owner.Pos) + PixelVel + JetAccel * (t*t*0.5);
868868

869869
-- a burst add a one time boost to acceleration
870870
if Owner.Jetpack:CanTriggerBurst() then
871871
JumpPos = JumpPos + Vector(-AI.jetBurstFactor, 0):AbsRotateTo(JetAccel);
872872
end
873873

874874
-- check for obstacles from the head
875-
Trace = SceneMan:ShortestDistance(Owner.Head.Pos, JumpPos, false);
876-
local jumpScore = SceneMan:CastObstacleRay(Owner.Head.Pos, Trace, JumpPos, Vector(), Owner.ID, Owner.IgnoresWhichTeam, rte.grassID, 3);
875+
Trace = SceneMan:ShortestDistance((Owner.Head and Owner.Head.Pos or Owner.Pos), JumpPos, false);
876+
local jumpScore = SceneMan:CastObstacleRay((Owner.Head and Owner.Head.Pos or Owner.Pos), Trace, JumpPos, Vector(), Owner.ID, Owner.IgnoresWhichTeam, rte.grassID, 3);
877877
if jumpScore < 0 then -- no obstacles: calculate the distance from the future pos to the wpt
878878
jumpScore = SceneMan:ShortestDistance(Waypoint.Pos, JumpPos, false).Magnitude;
879879
else -- the ray hit terrain or start inside terrain: avoid
880880
jumpScore = SceneMan:ShortestDistance(Waypoint.Pos, JumpPos, false).Largest * 2;
881881
end
882882

883883
-- test falling
884-
local FallPos = Owner.Head.Pos + PixelVel + Accel * (t*t*0.5);
884+
local FallPos = (Owner.Head and Owner.Head.Pos or Owner.Pos) + PixelVel + Accel * (t*t*0.5);
885885

886886
-- check for obstacles when falling/walking
887-
local Trace = SceneMan:ShortestDistance(Owner.Head.Pos, FallPos, false);
888-
SceneMan:CastObstacleRay(Owner.Head.Pos, Trace, FallPos, Vector(), Owner.ID, Owner.IgnoresWhichTeam, rte.grassID, 3);
887+
local Trace = SceneMan:ShortestDistance((Owner.Head and Owner.Head.Pos or Owner.Pos), FallPos, false);
888+
SceneMan:CastObstacleRay((Owner.Head and Owner.Head.Pos or Owner.Pos), Trace, FallPos, Vector(), Owner.ID, Owner.IgnoresWhichTeam, rte.grassID, 3);
889889

890890
if SceneMan:ShortestDistance(Waypoint.Pos, FallPos, false):MagnitudeIsLessThan(jumpScore) then
891891
AI.jump = false;
-698 Bytes
-685 Bytes
-679 Bytes
-680 Bytes
-680 Bytes
-676 Bytes

0 commit comments

Comments
 (0)