Skip to content

Commit

Permalink
cabal01: Fix the issue that the Nod deploy mcv nearby let player capture
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob committed Dec 13, 2024
1 parent 8bfa3c8 commit d62a23d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions mods/sp/maps/cabal-01/map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3769,10 +3769,9 @@ Actors:
Owner: Nod
Facing: 384
Location: 34,-4
NodMcv1: nodmcv
NodMcv1: nodyard
Owner: Nod
Location: 53,22
Facing: 384
Location: 52,21
Reinforcepoint1: waypoint
Owner: Neutral
Location: 161,93
Expand Down
9 changes: 7 additions & 2 deletions mods/sp/maps/cabal-01/mission.lua
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,13 @@ WorldLoaded = function()
if not Mech1.IsDead then
Mech1.GrantCondition("empdisable")
end



-- HACK: Sell the MCV if AI deploy MCV near player
Trigger.AfterDelay(450, function()
for key,unit in ipairs(Nod_AI.GetActorsByType("cabyard")) do
AISell(unit)
end
end)
end

if FindMCVTrigger ~= nil then
Expand Down

0 comments on commit d62a23d

Please sign in to comment.